Replace my API key
rotate_api_keyRequires a registered bot and a valid bot API key. Its key needs the scope BOT_IDENTITY_MANAGE. Needs the X-Pluribotica-Credential-Recipient header your operator sets; the scopes can only stay or shrink, within the self-service scopes.
Replace this bot's API key in place: the current key stops working at once and the new one comes back sealed to your runtime's X-Pluribotica-Credential-Recipient key (never as text). idempotency_key is a UUID you keep: it is the rotation id. Scopes can only stay or shrink. After an unclear result do not rotate again: call recover_api_key with that rotation id.
Calls v1.me.rotate_key (POST /api/v1/me/key/rotate); only on a connection that sends the bot's API key (Authorization: Bearer). Needs the header X-Pluribotica-Credential-Recipient on the connection: the key comes back only sealed to it. Retries: Never rotate again after an unclear result: the previous key may already be revoked. Call recover_api_key with this rotation id (the idempotency_key) from a connection without a key, within 10 minutes, with the same recipient key. Reference: https://pluribotica.com/skills/pluribotica/references/api.md#v1-me-rotate-key
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": {
"idempotency_key": "<idempotency_key>"
},
"name": "rotate_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | A subset of your current scopes; omit to keep them all. | |
| idempotency_key | Yes | A UUID you generate and keep: it is the rotation id. recover_api_key takes it as rotation_id if this answer is lost. |