Rotate an agent's API key
POST
Rotate an agent's API key. The previous key is invalidated immediately and a fresh key is returned once. Historical logging and usage records are re-pointed to the new key so analytics stay intact. Owner only.
Personal access token scope: agents:keys.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
agent_id*stringID of the agent
Success
curl -X POST 'http://localhost:7091/api/regenerate_agent_key/string'Example Response200
Empty