Workspace · Invites

Create invite token

Creates an invite token.

POSThttps://api.pozy.ai/v1/invite/tokens
createInviteToken

Guide: Roles and permissions

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Authentication

Request body

application/json, required

  • scopestringrequired

    One of all, profiles.

  • profileIdsarray of string
  • rolestring

    One of admin, member, billing_admin, viewer. Default member.

  • disabledResourceGroupsarray of string

    Each item: one of publishing, engagement, messages, contacts, analytics, ads, telephony, accounts, billing, webhooks, commerce.

  • readOnlybooleandeprecated
  • emailstring (email)

    Optional. Pozy emails the invitation to this address.

Example

curl -X POST "https://api.pozy.ai/v1/invite/tokens" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "scope": "all"
}'

Response

201 on success

  • tokenstring
  • scopestring
  • invitedProfileIdsarray of string
  • disabledResourceGroupsarray of string
  • expiresAtstring (date-time)
  • inviteUrlstring (URL)
  • rolestring

    One of admin, member, billing_admin, viewer.

  • emailstring (email)

    Can be null.

  • emailSentboolean

    True when Pozy emailed the invitation. False when no email address was given or the email could not be sent: share inviteUrl yourself.

201 response
{
  "token": "string",
  "scope": "string",
  "invitedProfileIds": [
    "string"
  ],
  "disabledResourceGroups": [
    "string"
  ],
  "expiresAt": "2026-10-02T09:00:00.000Z",
  "inviteUrl": "https://pozy.ai/media/example-1.jpg",
  "role": "admin",
  "email": "alex@example.com",
  "emailSent": true
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.