Claim the next job
Claims the oldest queued job of the worker kinds. The claim token in the answer goes into X-Claim-Token on every later call for the job.
Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.
Claims the oldest queued job of the worker kinds. The claim token in the answer goes into X-Claim-Token on every later call for the job.
WorkerTokenX-Worker-Token<token>Per-worker token returned once by worker registration.
application/json- body
[key: string]?not (unknown)A job was claimed
application/json- response
job*The claimed job.
curl -X POST "https://example.com/api/v1/pipeline/jobs/next" \ -H "Content-Type: application/json" \ -d '{ "property1": null, "property2": null }'{ "job": { "id": "string", "kind": "string", "params": { "property1": null, "property2": null }, "attempt": 0, "maxAttempts": 0, "claimToken": "string", "input": { "url": "string", "name": "string", "mimeType": "string", "size": 0 } }}Demo try-it session POST
Public demo instances only (SHOTSTASH_DEMO_MODE): a 60-minute session of the read-only demo viewer for the docs try-it console. It never slides; every write with it is refused. Rate limited to 10 per hour per IP. A browser Origin must be the instance itself or listed in SHOTSTASH_CORS_ORIGINS. 404 on every other instance.
Complete the job POST
Turns the uploaded output into a processed version of the file. Upload the output first.