Returns a short-lived token that allows browser clients to connect directly to the agent chat SSE stream without exposing the underlying org API key.
curl --request POST \
--url https://api.case.dev/agent/v2/chat/{id}/stream-token \
--header 'Authorization: Bearer <token>'{
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"streamUrl": "<string>"
}Was this page helpful?
curl --request POST \
--url https://api.case.dev/agent/v2/chat/{id}/stream-token \
--header 'Authorization: Bearer <token>'{
"token": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"streamUrl": "<string>"
}