rotate_agent_key
Rotate an agent's bearer key to invalidate the previous one; the old key stops working once the new key is claimed. Provide the agent ID to request rotation.
Instructions
Request rotation of an agent's bearer key — the previous key stops working the moment the new one is actually claimed (see claim_bearer_key).
Auth: an org key that owns this agent skips a check that this agent has a contact_email on file (that check is otherwise required, 400 if missing). On the hosted remote connector, send your org's X-API-KEY header on the MCP connection itself; locally, set AIDRESS_API_KEY in the server environment.
TEMPORARY (short-term server-side change): agent_key is currently NEVER returned directly here, even with an org key — the response instead has a claim_link (and agent_key: None) regardless of credentials. Pass the token from that link to claim_bearer_key to actually mint and receive the key.
agent_id — the agent whose bearer key to rotate.
Returns an error (400) if the agent has no contact_email on file and no org key was used, (404) if agent_id doesn't exist, or (429) if a claim link was requested too recently for this agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |