API reference

API reference · Account

A project's progress

GET/api/studio/projects/{id}/eventsSigned in session

A JSON page after ?after= (limit up to 500), or with Accept: text/event-stream (or ?stream=true) Server-Sent Events, each with id: the event's id and event: its type, resumed after the larger of ?after and Last-Event-ID and closed after about 270 seconds; reconnect to resume. Types: plan.created, plan.completed, plan.cancelled, shot.started, shot.completed, shot.failed, shot.cancelled, asset.stored. The signed in account.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe project's id, stp_ followed by hex.
after (query)string
limit (query)integer
stream (query)string

Answer 200

The events.

Fields of the 200 answer
FieldTypeWhat it is
objectstringOne of "list".
dataarray of object
data[].objectstringOne of "studio.event".
data[].idintegerThe stream's event id; resume with Last-Event-ID.
data[].typestringOne of "plan.created", "plan.completed", "plan.cancelled", "shot.started", "shot.completed", "shot.failed", "shot.cancelled", "asset.stored".
data[].created_atinteger
data[].dataobject
has_moreboolean
last_idstring or null

Errors

  • 401OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Request headers it reads (1)
Request headers
FieldTypeWhat it is
Last-Event-IDstring
Antimatter