Skip to main content
POST
Create invitation code

Authorizations

x-app-id
string
header
required

App identifier (App.id, sent as the x-app-id header)

Body

application/json
expiresAt
string<date-time>

Expiration date for the invitation code (ISO 8601 format). Null or omitted means no expiration

Example:

"2025-12-31T23:59:59.000Z"

maxUses
number
default:1

How many times this code can be redeemed before it stops working. Defaults to 1 (single-use).

Required range: 1 <= x <= 1000
Example:

1

Response

201 - application/json
code
string
required
expiresAt
string<date-time> | null
required
maxUses
number
required