api_key_generate
Create a new Perplexity API key using your existing environment key. Returns the new auth token and creation timestamp, with an optional token name.
Instructions
Generate a new Perplexity API key (POST /generate_auth_token). Returns the new auth_token, creation timestamp, and optional token_name. Note: This uses the PERPLEXITY_API_KEY set in your environment to authenticate.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "api_key_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_name | No | Optional human-readable name for the new API key. |