API reference · API
A project's plans
GET/v1/studio/projects/{id}/plansAPI key
Newest first. A 404 while video and sound jobs are switched off. An API key with the read scope. Rate limited per key at the key's own requests a minute, in a window of its own. An agent's key is refused (403 policy_violation). Every /v1/studio door is a 404 while video and sound jobs are switched off.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | string | The project's id, stp_ followed by hex. |
| limit (query) | integer | |
| after (query) | string | The last_id of the previous page. |
Answer 200
The plans.
| Field | Type | What it is |
|---|---|---|
| object | string | One of "list". |
| data | array of object | |
| data[] | string | |
| data[] | string | One of "studio.plan". |
| data[] | string | |
| data[] | string | One of "running", "completed", "cancelled". |
| data[] | integer | The total the balance was checked against. |
| data[] | integer | Settled shots' charges plus running shots' holds. |
| data[] | object | |
| data[] | array of object | |
| data[] | string | |
| data[] | string | One of "studio.shot". |
| data[] | integer | |
| data[] | string or null | |
| data[] | string | |
| data[] | string | One of "waiting", "starting", "running", "completed", "failed", "cancelled". |
| data[] | integer | The quote while it waits, the job's hold while it runs, the charge once done. |
| data[] | string or null | |
| data[] | object or null | The shot's job, as /api/studio/jobs answers it. |
| data[] | object or null | |
| data[] | string | |
| data[] | string | |
| data[] | integer | |
| data[] | integer or null | |
| data[] | integer or null | |
| data[] | integer | |
| data[] | integer or null | |
| has_more | boolean | |
| last_id | string or null |
Errors
- 401OpenAI shaped error.
- 403OpenAI 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.