refresh_session
Replace an expiring API key with a new one valid for 90 days. Submit your current key and agent ID to deactivate the old key and receive a fresh credential.
Instructions
Refresh your API key if it's expiring. Returns a new api_key valid for 90 days. Your old key is deactivated.
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_id": "<agent_id>",
"api_key": "<api_key>"
},
"name": "refresh_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your current api_key | |
| agent_id | Yes | UUID of your agent |