curl --request GET \
--url https://control.ergoly.ai/api/v1/tasks/{id}/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control.ergoly.ai/api/v1/tasks/{id}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://control.ergoly.ai/api/v1/tasks/{id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "a1b2c3d4-e5f6-4708-9a1b-2c3d4e5f6071",
"taskId": "5d6e7f80-91a2-4b3c-8d4e-5f60718293a4",
"startedAt": "2026-03-04T08:00:04.000Z",
"finishedAt": "2026-03-04T08:00:41.000Z",
"success": true,
"stopReason": "end_turn",
"error": null,
"output": "Two threads still open: the invoice import and the SSO rollout.",
"envelopeId": "env_7c1d0b3e9f21",
"threadTs": "1772784004.000200",
"createdAt": "2026-03-04T08:00:04.000Z"
}
],
"page": {
"limit": 50,
"hasMore": true,
"nextCursor": "MjAyNi0wMy0wNFQwOToxNDowMi4wMDBafDhmMWMyZDNlLTlhNGItNGM1ZC04ZTZmLTFhMmIzYzRkNWU2Zg"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}List a job's runs
Newest first, sorted and paged on the run’s own start time. success is null while a run is still in flight — which is not the same as false.
curl --request GET \
--url https://control.ergoly.ai/api/v1/tasks/{id}/runs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://control.ergoly.ai/api/v1/tasks/{id}/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://control.ergoly.ai/api/v1/tasks/{id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "a1b2c3d4-e5f6-4708-9a1b-2c3d4e5f6071",
"taskId": "5d6e7f80-91a2-4b3c-8d4e-5f60718293a4",
"startedAt": "2026-03-04T08:00:04.000Z",
"finishedAt": "2026-03-04T08:00:41.000Z",
"success": true,
"stopReason": "end_turn",
"error": null,
"output": "Two threads still open: the invoice import and the SSO rollout.",
"envelopeId": "env_7c1d0b3e9f21",
"threadTs": "1772784004.000200",
"createdAt": "2026-03-04T08:00:04.000Z"
}
],
"page": {
"limit": 50,
"hasMore": true,
"nextCursor": "MjAyNi0wMy0wNFQwOToxNDowMi4wMDBafDhmMWMyZDNlLTlhNGItNGM1ZC04ZTZmLTFhMmIzYzRkNWU2Zg"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docs": "<string>"
}
}Authorizations
An organization-scoped API key, minted in control under Settings → API keys. Every failure to authenticate answers one identical 401: "Provide a valid organization-scoped API key or an active session." Each operation names the one scope it is filed under, <resource>:<read|write>, where the resource is the first path segment after /api/v1/; a key minted today carries all 22 of them. Scopes are RECORDED — on the key and on every audit row — and are not yet enforced: no request is refused for want of one.
Path Parameters
The task id. A malformed id answers 404, exactly as another organization's well-formed id does.
Query Parameters
Page size. Defaults to 50, clamped at 200. A value that is not a positive integer is a 400.
Opaque keyset cursor from the previous page's page.nextCursor. A cursor this API did not issue is a 400, never a silent page one.

