Runs ยท version 0.1.0
List runs for a project
GET
/api/projects/{projectId}/runsRequest
curl -X GET 'https://sourced.sh/api/projects/{projectId}/runs' \
-H 'Authorization: Bearer $SOURCED_API_KEY'
const response = await fetch("https://sourced.sh/api/projects/{projectId}/runs", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.SOURCED_API_KEY}`,
},
});
const data = await response.json();
import os
import requests
response = requests.request(
"GET",
"https://sourced.sh/api/projects/{projectId}/runs",
headers={"Authorization": f"Bearer {os.environ['SOURCED_API_KEY']}"},
)
data = response.json()
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project identifier. |
Responses
200
Runs in the project, newest first.
application/json
type: object
required: runs
properties:
runs (required): array
type: array