Syndai Docs

Get a run's narrative

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}/narrative

Replay what a run said and did. Without attempt: the run's attempts, oldest first. With attempt: that attempt's beats, paged by after (the next cursor). A run outside your workspace is a 404. Requires the coding:runs:read scope.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

run_id*string
Formatuuid

Query Parameters

attempt?|null
customer_id?|null
after?integer|null

Response Body

Request fulfilled, document follows

application/json
  1. response
attempt*string
beats*array<>
complete*boolean
next?integer|null
reason?string|null
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/narrative'
Example Response
{  "attempt": "string",  "beats": [    {      "approx_ts": true,      "attempt": "string",      "family": "string",      "hunk": "string",      "id": "string",      "kind": "string",      "label": "string",      "lines_added": 0,      "lines_removed": 0,      "ms": 0,      "ok": true,      "op": "string",      "parent": "string",      "phase": "string",      "ref": "string",      "tail": "string",      "target": "string",      "text": "string",      "tokens": 0,      "ts": "2019-08-24T14:15:22Z",      "wait": "string"    }  ],  "complete": true,  "next": 0,  "reason": "string"}
Was this page helpful?