putty
API ReferenceEngine

List a project's runs

Returns the project's runs, newest first, with their token and sandbox-time counters. Use it to render run history; use the events endpoint for what happened inside one run.

GET
/projects/{projectId}/runs

Returns the project's runs, newest first, with their token and sandbox-time counters. Use it to render run history; use the events endpoint for what happened inside one run.

Path Parameters

projectId*string

The project whose runs to list.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/string/runs"
{  "runs": [    {      "id": "string",      "projectId": "string",      "status": "queued",      "prompt": "string",      "model": "string",      "recipeId": "string",      "steps": 0,      "tokensIn": 0,      "tokensOut": 0,      "sandboxMs": 0,      "error": "string",      "startedAt": "string",      "finishedAt": "string",      "createdAt": "string"    }  ]}