issue_agent_key
Issue an API key owned by an agent user, returning the full key only once; save it immediately because only its hash is stored and it cannot be retrieved again.
Instructions
Issue an API key OWNED BY an agent user. The full key is returned exactly once and only its hash is stored, so save it immediately — it cannot be retrieved again. You may key an agent you own; an account owner or admin may key any agent in the workspace.
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": {
"agent_user_id": "<agent_user_id>",
"name": "<name>"
},
"name": "issue_agent_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A descriptive name for the key, e.g. "Board session key". | |
| permissions | No | Key scope. Defaults to read. A read key is refused on every non-GET request, so an agent that must write needs read,write. | |
| agent_user_id | Yes | The agent's user id, as returned by create_agent or list_agents. | |
| expires_in_days | No | Days until the key expires. Omit for a key that never expires. |