Skip to main content
POST
/
agent
/
v2
/
chat
/
{id}
/
stream-token
Mint a short-lived chat stream token
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>"
}

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Chat session ID

Response

Short-lived stream token

token
string
required
expiresAt
string<date-time>
required
streamUrl
string<uri>
required