List All Runs
Every run the team has made, last executed first.
By when it last ran rather than when it was made: an instance is forked, edited and only then
executed, so the two orders differ. Includes runs somebody deleted, which are exactly the ones
asked about afterwards. A cursor carries the order it was issued under, so a page token does
not survive sort or order changing.
GET
/api/v1/runsAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredQuery parameters
statusRunStatus[] | anyOnly runs in these states; repeat for several
ownerstring[] | anyClerk user ids of whoever started them
daysintegerHow far back to look
min 1 · max 365 · default: 7
sortRunSortWhich column orders the feed
Allowed:
created_atstarted_atcredits_totalstatusgraph_nameowner_nameduration_secondsorderSortOrderWhich way that field runs
Allowed:
ascdesclimitintegermin 1 · max 100 · default: 50
afterstring | anyThe `next_cursor` of the page before this one
Responses
200Successful Response
successbooleandefault: true
dataRunMonitorList | anyShow propertiesHide properties
Any of:
RunMonitorList
rowsRunMonitorRow[]requiredShow propertiesHide properties
Array of
RunMonitorRowidstringrequiredgraph_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anygraph_namestringdefault: ""
owner_idstringrequiredowner_namestringrequiredowner_image_urlstring | anyShow propertiesHide properties
Any of:
string
stringany
anytask_namestring | anyShow propertiesHide properties
Any of:
string
stringany
anystatusRunStatusrequiredAllowed:
draftqueuedrunningawaiting_inputsucceededfailedcancelledcreated_atstring<date-time>requiredstarted_atstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anyfinished_atstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anycredits_totalnumberdefault: 0
errorstring | anyShow propertiesHide properties
Any of:
string
stringany
anynode_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anyexported_atstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anydeleted_atstring<date-time> | anyShow propertiesHide properties
Any of:
string<date-time>
string<date-time>any
anyownersRunOwner[]Show propertiesHide properties
Array of
RunOwneridstringrequirednamestringrequiredimage_urlstring | anyShow propertiesHide properties
Any of:
string
stringany
anynext_cursorstring | anyShow propertiesHide properties
Any of:
string
stringany
anyany
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/runs" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/runs", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/runs",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": {
"rows": [
{
"id": "string",
"graph_id": "string",
"graph_name": "",
"owner_id": "string",
"owner_name": "string",
"owner_image_url": "string",
"task_name": "string",
"status": "draft",
"created_at": "2019-08-24T14:15:22Z",
"started_at": "2019-08-24T14:15:22Z",
"finished_at": "2019-08-24T14:15:22Z",
"credits_total": 0,
"error": "string",
"node_id": "string",
"exported_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"owners": [
{
"id": "string",
"name": "string",
"image_url": "string"
}
],
"next_cursor": "string"
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}