Skip to content

Create Stream Token

POST /runs/{run_id}/stream-token

Mint a short-lived credential for one run (annex 15 §5, annex 04 §4).

The run is resolved first, so a token is never minted for something the caller cannot read — a token whose audience names a run the holder has no access to would still be refused at connect time, but only after telling the caller the run exists.

NameInTypeNotes
run_idpathstring (uuid)required—
StatusDescriptionBody
200Successful ResponseStreamToken
422Validation ErrorHTTPValidationError
Terminal window
curl -X POST https://your-deployment.example.com/runs/{run_id}/stream-token \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
tokenstringrequired—
expires_inintegerrequired—