tokens

Token-based Authentication

Changed on

Generates a temporary JSON Web Token (JWT) with a 30-second (by default) TTL and usage::write permission for core voice APIs, requiring an API key with Member or higher authorization. Tokens created with this endpoint will not work with the Manage APIs.

post/v1/auth/grant

Request

  • Base URL
    https://api.deepgram.com
  • Auth
    API key in header Authorization

Request body

ttl_secondsnumber double

Time to live in seconds for the token. Defaults to 30 seconds.

Response

Grant response

access_tokenstring required

JSON Web Token (JWT)

expires_innumber double

Time in seconds until the JWT expires

Changes