OverviewProductsPlatformsAPI ReferenceResources
Invites

Create invite token

POSThttps://zernio.com/api/v1/invite/tokens

Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use.

Returns 403 when a requested profile is not found or not owned, or when called with a restricted (zrk_) API key: invite management is admin-plane.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

scopestringRequiredOne of all | profiles

'all' grants access to all profiles, 'profiles' restricts to specific profiles

Optional parameters4 fields
profileIdsarray of strings

Required if scope is 'profiles'. Array of profile IDs to grant access to.

rolestringDefault memberOne of admin | member | billing_admin | viewer

Org role granted to the invitee. Defaults to 'member'.

  • 'admin': manages the team (invite/remove members, change roles and access) and billing, but not ownership transfer or account deletion.
  • 'billing_admin' (displayed as Billing Manager): manages billing only.
  • 'viewer': a read-only member who can view everything in their profile scope but cannot perform any content mutation (publish, edit, delete, connect accounts).
disabledResourceGroupsarray of strings

Resource groups the invitee may not use once they join (the same groups as restricted API keys). Omitted or empty means full access.

Their dashboard hides those sections, and every API request into a disabled group, with any credential they hold, is refused with 403. Groups the caller lacks themselves are always added.

readOnlyDeprecatedboolean

Deprecated. Use role 'viewer' instead. When true, the invite is created with role 'viewer'. Cannot be combined with role 'billing_admin' or 'admin'.

Responses

Success· the request worked

Errors· the request failed

POST/v1/invite/tokens
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.invites.createInviteToken({  body: {    scope: 'all',  },});console.log(data);
{  "token": "inv_abc123def456ghi789",  "scope": "profiles",  "invitedProfileIds": [    "64f0a1b2c3d4e5f6a7b8c9d0",    "64f0a1b2c3d4e5f6a7b8c9d1"  ],  "disabledResourceGroups": [],  "expiresAt": "2024-11-08T10:30:00Z",  "inviteUrl": "https://zernio.com/invite/inv_abc123def456ghi789"}
OpenAPI specification
Was this page helpful?