Skip to main content
POST
/
ws
/
token
Create Realtime Ws Token
curl --request POST \
  --url https://api.capout.ai/ws/token
const options = {method: 'POST'};

fetch('https://api.capout.ai/ws/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.capout.ai/ws/token"

response = requests.post(url)

print(response.text)
{
  "token": "<string>",
  "organization_id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "ws_url": "/ws/status",
  "sse_url": "/sse/status"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Headers

capout-api-key
string | null

Response

Successful Response

Response body for POST /ws/token.

token
string
required

Short-lived realtime token for query-param auth

organization_id
string
required

Organization bound to this realtime token

expires_at
string<date-time>
required

UTC expiration time for the realtime token

ws_url
string
default:/ws/status

WebSocket path to connect to with ?token=<token>

sse_url
string
default:/sse/status

SSE path to connect to with ?token=<token>