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
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
run_id*stringFormat
uuidattempt?|nullcustomer_id?|nullafter?integer|nullRequest fulfilled, document follows
application/json- response
attempt*stringbeats*array<>complete*booleannext?integer|nullreason?string|nullcurl -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"}