Organizations and members
POST/v1/teams
Create team
curl -X POST "https://api.52-28-238-205.sslip.io/v1/teams" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"name":"Example"}'Creates a team with an optional budget and approver. Console session or API key with members:manage; names are unique per organization (409) and the budget must fit under the organization budget.
Server URL
https://api.52-28-238-205.sslip.ioPOST/v1/teamsBase URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Body
application/json · required. Fields are listed under Request body below.
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)
application/json- body
name*Namebudget_base_units?|Budget in integer base units, carried as a string.
approver_user_id?string|nullSuccess.
application/json- response
team*[key: string]?anyGETList teams
Lists the organization's teams with member and agent counts, budget and team approver. Console session only.
PATCHUpdate 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).