Authorizations
Body
application/json
Example:
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"
}Generates a new authentication token for API access.
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"
}Was this page helpful?