Create an API key
create_api_keyCreate scoped API keys with only the permissions your integration needs, plus optional expiration and spend limits to prevent unauthorized use. The secret is shown once, so share it securely right away.
Instructions
Mint a new scoped key. The secret is returned ONCE in the result and cannot be retrieved again: hand it to the user immediately and do not log it elsewhere. A key cannot grant scopes the calling key does not hold (scope_escalation). Grant only what the integration needs; billing:write authorises spending money.
Requires scope api_keys:write.
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>",
"scopes": "<scopes>"
},
"name": "create_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | For the user's reference, e.g. "production backend". | |
| scopes | Yes | No wildcard; agents:write does not imply agents:read. | |
| expires_at | No | ISO 8601 timestamp, UTC, e.g. "2026-09-01T12:00:00.000Z". | |
| spend_limit_micros | No | Guardrail in micro-USD, enforced within about a minute. Not a hard cap. |