Skip to main content
POST
TypeScript

Autorisaties

Authorization
string
header
vereist

An Account API key, an App API key, an account access token, or an account-scoped user token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

membership:create

Headers

Idempotency-Key
string

A unique key that makes this request safe to retry. See Idempotent requests.

Maximum string length: 255
Voorbeeld:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Voorbeeld:

"2026-11-17"

Body

application/json
user_id
string
vereist

Recipient user ID, prefixed user_. Pass exactly one of user_id or email.

Voorbeeld:

"user_xxxxxxxxxxxxxx"

variant_id
string
vereist

Free variant whose membership the recipient is invited to, prefixed plan_.

Voorbeeld:

"plan_xxxxxxxxxxxxxx"

email
string<email>

Recipient email address. Pass exactly one of user_id or email.

Voorbeeld:

"marcus@shinetime.example"

Respons

invitation accepted for delivery

invitation_sent
boolean
vereist
Voorbeeld:

true