Skip to Content
CerebrumDocs
GuidesAPI referenceTrust & security

Create vID Invite

Related workflow: Invite lifecycle · ID verification flow

POST
/v1/vid/invites

Create a new vID invite for the provided applicant details.

Behavior

  • Reuse: unless forceNewInvite is true, an existing PENDING or STARTED invite without an order for the same package, email (case-insensitive) and organization is reused. It keeps its inviteId, its expiry is renewed from the package's invite period (30 days by default), and supplied names replace the stored ones. Other stored fields, such as metadata, postback URL and phone number, are not changed. inviteData echoes the request.
  • forceNewInvite: true always creates a new invite. Existing invites are left unchanged.
  • organizationId defaults to the package's owning organization.
  • With the default delivery method EMAIL, the invite email is queued; reminder emails are scheduled when the package enables them. Use List vID Invites or Get vID Invite to follow the invite; once the applicant submits, Get vID Invite returns its orderId.

Related: Get vID Invite · List vID Invites · Invite · Event Types

Authorization

apiKey
headerapikey<token>

Request Body

application/json
  1. body
packageId*string

Package ID: the id returned by List Package Sets (a UUID). The package may be owned by your organization or shared with it.

organizationId?string|null

The ID of the organization for the invite. If not provided, the organization from the package will be used.

passTypeId?string

The id of the pass type used for the invite

postbackWebhookUrl?string

The URL that webhooks will be sent to when an order is completed

metadata?object

Additional metadata to include in the invite request. Can be any valid JSON Object

contactInformation*object

Applicant email address & phone number

deliveryMethod*string

The Delivery method used to send an invite to the applicant

Value in"EMAIL""NONE"
web?boolean

This boolean indicates whether to create a web invite or app invite. Default: false

Defaultfalse
onSubmitReturnUrl?string

The url where the user will be redirected after submitting their vID order

forceNewInvite?boolean

Always create a new invite instead of reusing an existing pending invite or voucher.

Defaultfalse
origin?string

The platform that originated this voucher.

Value in"COGNITION""CORTEX""MYCELIUM"

Response Body

Invite created or reused. Retain inviteId: Get, Resend and Cancel vID Invite use it.

application/json
  1. response
inviteId*string

The ID of the newly created invite

packageId*string

The id of the package used for the order

packageName*string

The name of the package

vIDInviteUrl*string

URL of the vID invite

vIDWebInviteUrl*string

URL of the vID Web invite

vIDQRCode*string

QR CODE of the vID invite

vIDShortCode*string

shortcode that can be used in vID to redeem invite

inviteExpiry*string

Date (YYYY-MM-DD) on which the invite expires. Set from the package's invite expiration period: 30 days unless the package is configured otherwise. When an existing pending invite is reused, its expiry is renewed. List vID Invites returns the full timestamp.

inviteData*object

The data that was provided when creating the invite

curl -X POST 'https://api.cerebrum.com/v1/vid/invites' \  -H 'apikey: CEREBRUM_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "packageId": "81eb7401-8ff0-4404-8450-4d7508482c19",  "deliveryMethod": "EMAIL",  "web": true,  "contactInformation": {    "email": "applicant@example.com",    "firstName": "Jordan",    "lastName": "Lee"  },  "metadata": {    "clientReferenceId": "APP-1042"  }}'
Example Response

Store inviteId. Send the applicant vIDWebInviteUrl for a web invite. URL and QR values are shortened placeholders.

{  "inviteId": "8faf4d07-6fec-43b8-a32c-cd549c30b5e9",  "packageId": "81eb7401-8ff0-4404-8450-4d7508482c19",  "packageName": "Standard ID Verification",  "vIDInviteUrl": "https://cerebrum.app.link/EXAMPLE",  "vIDWebInviteUrl": "https://cognition.cerebrum.com/vid/i/EXAMPLE",  "vIDQRCode": "data:image/png;base64,iVBORw0KGgo=",  "vIDShortCode": "ABC123",  "inviteExpiry": "2026-12-02",  "inviteData": {    "contactInformation": {      "email": "applicant@example.com",      "firstName": "Jordan",      "lastName": "Lee"    },    "metadata": {      "clientReferenceId": "APP-1042"    }  }}