Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

Create a Project Key

POST/v1/projects/{project_id}/keysCreate a Project Key

Creates a new API key with specified settings for the project

Parameters

project_idstringpathrequired

The unique identifier of the project

Request body

API key settings

application/json
valueCreateKeyV1Request

CreateKeyV1Request

oneOf · 2 options
Option 1value

Any type

Option 2value

Any type

Example request
null

Responses

200API key created successfullyapplication/json
objectCreateKeyV1Response

CreateKeyV1Response

API key created

api_key_idstring

The unique identifier of the API key

commentstring

A comment for the API key

expiration_datestring · date-time

The expiration date of the API key

keystring

The API key

scopesarray of string

The scopes for the API key

Show child attributes
tagsarray of string

The tags for the API key

Show child attributes
Example response
{
  "api_key_id": "string",
  "comment": "string",
  "expiration_date": "2026-06-09T00:00:00Z",
  "key": "string",
  "scopes": [
    "string"
  ],
  "tags": [
    "string"
  ]
}
400Invalid Requestapplication/json
valueErrorResponse

ErrorResponse

oneOf · 3 options
Option 1stringErrorResponseTextError

ErrorResponseTextError

Option 2objectErrorResponseLegacyError

ErrorResponseLegacyError

err_codestring

The error code

err_msgstring

The error message

request_idstring

The request ID

Option 3objectErrorResponseModernError

ErrorResponseModernError

categorystring

The category of the error

detailsstring

A description of the error

messagestring

A message about the error

request_idstring

The unique identifier of the request

Example response
{
  "err_code": "string",
  "err_msg": "string",
  "request_id": "string"
}
Documentation menu