create_api_key
Generate an API key with specified scopes and optional expiry; show the returned one-time secret to the user and avoid repeating it elsewhere.
Instructions
Create an API key (the key is returned once).
The result contains a secret that is shown only once; show it to the user and do not repeat it elsewhere.
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 | ||
| scopes | Yes | ||
| expiresAt | No | Omit or null for no expiry |