Organizations and members
POST/v1/invites

Create invite

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/invites" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"email":"owner@example.com","role":"finance"}'

Invites a person by email with a role (approvers also need a team). Console session or API key with members:manage; only grantable roles are accepted (403 ROLE_NOT_GRANTABLE) and the invite expires after 7 days.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/invitesBase 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
email*Email
role*Role
team_id?|

Team id (team_...).

Response Body

Success.

application/json
  1. response
id*Id
email*Email
role*Role
dev_link?string|null
[key: string]?any