Skip to Content
Docs

POST /api/agents/{agent_id}/outside_access/take_over

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.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

agent_id*string

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/agents/string/outside_access/take_over'
Example Response200
Empty