Organizations and members
DEL/v1/teams/{team_id}
Delete team
curl -X DELETE "https://api.52-28-238-205.sslip.io/v1/teams/{team_id}" \ -H "Cookie: <console session cookie>"Deletes an empty team and its unused budget. Console session or API key with members:manage; a team with members, agents or recorded spend can't be deleted (409).
Server URL
https://api.52-28-238-205.sslip.ioDEL/v1/teams/{team_id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
team_idstringrequiredTeam id (team_...).
Requires permissionmembers:manage
Held by
owner, admin, operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
team_id*Team IdTeam id (team_...).
Success.
application/json- response
ok*Okid*Id[key: string]?anyPATCHUpdate team
Renames a team or assigns a member with the Approver role as its approver. Console session or API key with members:manage; names are unique per organization (409).
POSTPause or resume all agents
Turns the organization's pause switch on or off; while on, every agent payment is denied. Console session or API key with org:kill_switch; a console session needs a passkey step-up within the last 5 minutes.