Skip to main content
POST
PromptJuggler PHP SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

thread
string<uuid>
required

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.

token
string
required

Bearer token for the streaming endpoint. Safe to hand to a browser — it grants read access to this one thread and nothing else.

expiresAt
string<date-time>
required

Timestamp when the token stops being accepted.

url
string
required

Fully-resolved SSE endpoint for this thread. Connect here with the token as a Bearer credential.

Example:

"https://stream.promptjuggler.com/stream/0198f0e2-9c3a-7c1d-8f4b-2a6d5e7c9b10"