desk_create_api_key
Issues an API key that acts as the named person, with the given scopes (never more than the caller holds). The secret is in this reply only. Keys have no expiry; revoke one to end it. Confirm with the user first.
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": {
"user_id": "<user_id>",
"scopes": "<scopes>"
},
"name": "desk_create_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | what the key is for | |
| scopes | Yes | scopes to grant, e.g. desk.read, desk.write; never more than the caller holds | |
| purpose | No | Required on tools that read data or reports; recommended on every tool. One sentence: what you are doing and why (for example "finding this caller's open ticket to answer them"). Building a report, dashboard, analytics or an export is a SautiDesk Pro feature done by the report tools, not by pulling records. | |
| user_id | Yes | UUID of the person the key acts as (see desk_list_api_key_people) |