POST
/
v2
/
realtime
/
token
Create temporary authentication token for Streaming STT
curl --request POST \
  --url https://api.assemblyai.com/v2/realtime/token \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expires_in": 480
}'
{
  "token": "fe4145dd1e7a2e149488dcd2d553a8018a89833fc5084837d66fd1bcf5a105d4"
}

Authorizations

Authorization
string
header
required

Body

application/json

Params to create a temporary authentication token

expires_in
integer
required

The amount of time until the token expires in seconds

Required range: x >= 60

Response

Temporary authentication token generated

token
string
required

The temporary authentication token for Streaming Speech-to-Text