proxmox_create_token
Create a Proxmox VE API token for a user and return its secret once. Requires confirm:true; with privsep enabled, grant token access separately via ACLs.
Instructions
Create an API token for a user (POST /access/users/{userid}/token/{tokenid}). Returns the secret ONCE - it cannot be retrieved later. With privsep (default), grant it access separately via proxmox_set_acl. Tier-2 write; requires confirm:true.
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": {
"userid": "<userid>",
"tokenid": "<tokenid>",
"confirm": "<confirm>"
},
"name": "proxmox_create_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expire | No | Expiry as a Unix timestamp (0 = never). | |
| userid | Yes | Owning user, e.g. 'automation@pve'. | |
| comment | No | Token comment. | |
| confirm | Yes | Must be true to write. Tier-2 safe-write gate. | |
| privsep | No | Privilege separation (default true): the token gets only ACLs granted to it directly. | |
| tokenid | Yes | New token name (the part after '!'). |