api_tokens_create
Create a scoped API token by specifying its name, scopes, and lifetime. Omit scopes to grant full access.
Instructions
Create a new API token (API 3.x: tokens are scoped)
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>",
"expiresInDays": "<expiresInDays>"
},
"name": "api_tokens_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Token name | |
| scopes | No | Token scopes (see api_tokens_scopes_list); omit for full access | |
| expiresInDays | Yes | Token lifetime in days |