Skip to navigation

Generate auth token

Generates a short-lived auth token for authenticating Text to Speech requests from client-side code, without exposing your API key. Speech to Text does not accept auth tokens; authenticate it with your API key from a server.

Headers

api-keystringRequired

Response

Ok
expiryInEpochMillislongOptional

The timestamp at which the generated token will expire - in Unix time.

tokenstringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
503
Service Unavailable Error