Syndai Docs

Get a run's trace

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/external/coding/runs/{run_id}/trace

Read every attempt, turn, tool call, check and review of a run, each with its time and credits. A run outside your workspace is a 404. Requires the coding:runs:usage scope.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

run_id*string
Formatuuid

Query Parameters

customer_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
charged_usd*number
live*boolean
rows*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/trace'
Example Response
{  "charged_usd": 0,  "live": true,  "rows": [    {      "credits_usd": 0,      "ended_at": "2019-08-24T14:15:22Z",      "error": "string",      "id": "string",      "kind": "string",      "minutes": 0,      "name": "string",      "paid_by": "string",      "parent_id": "string",      "started_at": "2019-08-24T14:15:22Z",      "status": "string",      "summary_in": "string",      "summary_out": "string",      "tokens_in": 0,      "tokens_out": 0    }  ]}
Was this page helpful?