Streaming

Create a temporary authentication token for Streaming Speech-to-Text

POST
Create a temporary authentication token for Streaming Speech-to-Text

Request

This endpoint expects an object.
expires_in
integerRequired
The amount of time until the token expires in seconds

Response

This endpoint returns an object
token
string
The temporary authentication token for Streaming Speech-to-Text
POST
$curl -X POST https://api.assemblyai.com/v2/realtime/token \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "expires_in": 480
>}'
Response
1{
2 "token": "fe4145dd1e7a2e149488dcd2d553a8018a89833fc5084837d66fd1bcf5a105d4"
3}