API referenceOperations
List Operations
The operations on one target, newest first: a scene's step history,
a session's turn history, a project's generations — receipts, not
content. Requires the read scope.
Authorization
apiKey AuthorizationBearer <token>
First-party API key (sbk_live_…), presented as a Bearer token.
In: header
Query Parameters
target_id*Target Id
A scene, session or project id.
Format
uuidkind?|null
status?|null
limit?Limit
Items per page
Range
1 <= value <= 100Default
20cursor?|
The next_cursor of the previous page; omit for the first page.
Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/operations?target_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "scene_step", "status": "queued", "target": { "type": "scene", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "input": {}, "progress": {}, "result": {}, "error": { "code": "string", "message": "string", "retryable": false }, "credits_charged": 0, "model": { "id": "string", "hosting": "scenebrew", "billing": "credits" }, "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4", "created_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "finished_at": "2019-08-24T14:15:22Z", "cancel_requested_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string", "total": 0}