Skip to main content
POST
/
generate_auth_token
Generate Auth Token
curl --request POST \
  --url https://api.perplexity.ai/generate_auth_token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "token_name": "Production API Key"
}'
{
  "auth_token": "pplx-1234567890abcdef",
  "created_at_epoch_seconds": 1735689600,
  "token_name": "Production API Key"
}

Authorizations

Authorization
string
header
required

Body

application/json
token_name
string
Example:

Response

200 - application/json
auth_token
string
required
Example:
created_at_epoch_seconds
number
required
Example:
token_name
string
Example: