Create Api Key
create_api_keyCreates a new API key with optional expiration, spend limit, IP whitelist, and reset interval; returns the secret once for the user to store immediately. Requires an admin key.
Instructions
Create a new API key on the account. Its secret is returned ONCE, in this result: tell the user to store it now. Needs an ADMIN key. If key management is turned off on this server, nothing is created and the result gives the dashboard link instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A name for the key | |
| expires_at | No | When the key stops working, YYYY-MM-DD. Optional | |
| spend_limit | No | Spend cap in USD for each reset window. Optional | |
| ip_whitelist | No | IP addresses or CIDR ranges allowed to use the key | |
| reset_interval | No | How often the spend counter resets. Optional |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||