POST /api/agents/{agent_id}/outside_access/take_over
Become the person who pays for a team agent's outside access (its API key, public link and webhook). Needs the Admin role in the team; not available on a personal agent, whose owner pays. Returns {success, outside_access, changed}; changed is false when the caller already pays. Refusals: 404 agent_not_found, 403 workspace_role_required, 409 take_over_team_only, 409 no_outside_access.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
agent_id*stringSuccess
curl -X POST 'http://localhost:7091/api/agents/string/outside_access/take_over'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](/API/personal-access-tokens) scope: `agents:keys`.
Share or unshare an agent PUT
Share or unshare an agent. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.