Shotstash
API referenceREST referencePipeline

Upload the job output

The raw bytes of the one output; streamed. Content-Type is its media type (video/mp4) and X-Output-Ext its extension (mp4). The size limit is SHOTSTASH_PIPELINE_MAX_OUTPUT_MB.

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.

PUT
/api/v1/pipeline/jobs/{id}/output

The raw bytes of the one output; streamed. Content-Type is its media type (video/mp4) and X-Output-Ext its extension (mp4). The size limit is SHOTSTASH_PIPELINE_MAX_OUTPUT_MB.

Authorization

WorkerToken
headerX-Worker-Token<token>

Per-worker token returned once by worker registration.

Path Parameters

id*string

Job id (UUID).

Header Parameters

X-Claim-Token*string

Claim token from the claim answer.

X-Output-Ext*string

Extension of the output, such as mp4.

Request Body

body*stringapplication/octet-stream

Raw bytes, streamed.

Response Body

Output stored

application/json
  1. response
versionId*string

Id of the stored output (it becomes a processed version on complete).

size*number

Bytes stored.

mimeType*string

Media type of the output.

curl -X PUT "https://example.com/api/v1/pipeline/jobs/string/output" \  -H "X-Claim-Token: string" \  -H "X-Output-Ext: string" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "versionId": "string",  "size": 0,  "mimeType": "string"}