API reference
Answer an approval stop
Approve, cancel or revise a video that is waiting at a stop.
POST https://app.cookstudio.ai/api/v1/videos/{id}/decision
Request
curl https://app.cookstudio.ai/api/v1/videos/6f1c…/decision -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"stop": "script", "decision": "revise", "note": "Shorter intro, end on the open question."}'Response
{"id": "6f1c…", "object": "video", "status": "running", "decision": "revise", "revision_round": 1, "revision_credits": 30, "balance": 1060, …}Body: stop (the video's waiting_stop), decision (approve · cancel · revise), note (3-1000 characters, required for revise). See Approval stops.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing, unknown or out of range. message names the field and the allowed values. |
| 404 | not_found | No such video or generation on this account. |
| 409 | conflict | The action does not fit the job's current state (for example a decision for a stop it is not waiting at). |
| 503 | service_unavailable | Production is paused or unreachable. Nothing was charged; retry in a few minutes. |
All errors share one shape; see Errors.