OpenAPI 3.1.02026-08-193894215.9 MB
23dfbe1a0d1f
Memberships
Invite to a Membership
Sends an email inviting one recipient to join the account through a free plan. Identify the recipient by exactly one of user_id or email. The invitation is bound to that recipient; after signing in, accepting it immediately grants the membership without checkout. This Experimental endpoint is available only to accounts enabled for membership invitations.
post/memberships/invite
Headers
Idempotency-Keystring
Example:d9105228-4a08-46b1-8b91-42fed586d383
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"plan_id": "plan_xxxxxxxxxxxxxx",
"user_id": "user_xxxxxxxxxxxxxx",
"email": "marcus@shinetime.example"
}Response
invitation accepted for delivery
Example response
{
"invitation_sent": true
}