Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Authenticating

Deepgram’s API uses API keys to authenticate requests. You can view and manage your API keys in the Deepgram Console or through the Deepgram API.

Your API keys grant many privileges, so be sure to keep them secure. Do not share your secret API keys in publicly accessible areas such as GitHub or client-side code.

For best results, use different API keys for testing and production. To help filter usage, you can also use different API keys for different consumers or teams at your organization.

If you still need an API key, you can sign up to Deepgram today for free!

Once you have created an API key, you can use it as credentials to call Deepgram’s API.

Send requests to the API with an Authorization header that references your project’s API key:

Authorization: Token YOUR_DEEPGRAM_API_KEY

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests made without authentication will also fail.

A quick test to see if your key is validating correctly, is to make a request to the /auth/token endpoint on our API. This will return an invalid credentials error if your key is invalid, and a JSON response with details about your key if it’s valid.

Bash
curl https://api.deepgram.com/v1/auth/token \
  -H "Authorization: Token YOUR_DEEPGRAM_API_KEY"

To create additional API keys, be sure that the API key you are using to authenticate your request has been assigned either the administrator role or the following permissions: keys:read, keys:write.

Make sure you are sending API requests over HTTPS. Calls made over plain HTTP will fail. API requests made without authentication will also fail.


Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu