Organizations and members
GET/v1/invites/roles

List grantable roles

View as .md
curl -X GET "https://api.52-28-238-205.sslip.io/v1/invites/roles" \  -H "Cookie: <console session cookie>"

Lists the roles the caller may grant in invites and role changes, given its role and the organization kind. Console session or API key with members:manage.

Server URLhttps://api.52-28-238-205.sslip.io
GET/v1/invites/rolesBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
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)

Response Body

Success.

application/json
  1. response
inviter_role?string|null
data*array<>
[key: string]?any