Create invite link
Invite a new user to the organization and create an invite link for them. If the email already belongs to a pending user, a new invite link is generated for them. Only available to organization admins.
Authentication: personal access token. The spec defines an api_key security
scheme — send an Authorization: ApiKey <your-personal-access-token> header
(value format: ApiKey <your key>). A session_cookie scheme (connect.sid)
exists for browser sessions. Operations in this spec declare security: [], an
artifact of the upstream spec generator — authentication is still enforced by the
server.
Request body
{
"purpose": "member",
"role": "member",
"expiresAt": "2024-01-01T00:00:00.000Z",
"email": "string"
}Responses
201 — Created
{
"results": {
"purpose": "member",
"email": "string",
"userUuid": "string",
"organizationUuid": "string",
"inviteUrl": "string",
"inviteCode": "string",
"expiresAt": "2024-01-01T00:00:00.000Z"
},
"status": "ok"
}default — Error
{
"error": {
"data": "string",
"message": "string",
"name": "string",
"statusCode": 0
},
"status": "error"
}