api_tokens_create
Create a new Remnawave API token with a name, expiration in days, and scopes. Requires an admin JWT; API-key access is forbidden.
Instructions
Create a new API token. This endpoint is forbidden to use via "API-key". It can only be used with an admin JWT-token.
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 | Name of the API token | |
| scopes | No | Scopes of the API token | |
| expiresInDays | Yes | Expiration days of the API token |