Create a streaming credential for a thread
Returns a short-lived, thread-scoped token your frontend can use to subscribe to live token output over SSE. Call this from your backend with your API key, then hand the token to the browser — the API key itself must never leave your server. The thread does not have to exist yet: mint a token, connect, then start the run. Connect before triggering a run, since tokens emitted while nobody is subscribed are not replayed.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Thread ID to subscribe to. Any UUID you intend to run against — the token is scoped to your tenant, so threads cannot collide across tenants.
Response
Streaming credential
A short-lived credential for subscribing to a thread's token stream.
Bearer token for the streaming endpoint. Safe to hand to a browser — it grants read access to this one thread and nothing else.
Timestamp when the token stops being accepted.
Fully-resolved SSE endpoint for this thread. Connect here with the token as a Bearer credential.
"https://stream.promptjuggler.com/stream/0198f0e2-9c3a-7c1d-8f4b-2a6d5e7c9b10"