Sourced
llms.txt
View Markdown

Runs ยท version 0.1.0

List runs for a project

GET/api/projects/{projectId}/runs

Request

cURL
curl -X GET 'https://sourced.sh/api/projects/{projectId}/runs' \
  -H 'Authorization: Bearer $SOURCED_API_KEY'
TypeScript
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();
Python
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

NameTypeRequiredDescription
projectIdstringYesProject identifier.

Responses

200

Runs in the project, newest first.

application/json

Schema
type: object
required: runs
properties:
  runs (required): array
    type: array

401

403

404

Was this helpful?