Organizations and members
POST/v1/teams

Create team

View as .md
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 URLhttps://api.52-28-238-205.sslip.io
POST/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.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
name*Name
budget_base_units?|

Budget in integer base units, carried as a string.

approver_user_id?string|null

Response Body

Success.

application/json
  1. response
team*
[key: string]?any