Invites a user to your organization, a specific website, or a group. Use invite_method: "direct" to add the user immediately without sending any email — if the email has no existing account, a new user account is created automatically. Use invite_method: "email" to create a pending invite and send an invitation email that the recipient must accept. Group invites require a global API key.
Documentation Index
Fetch the complete documentation index at: https://docs.athenahq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request body for creating an invite
The type of invite. 'organization' grants org-wide access, 'website' grants access to a single website, 'group' grants access to all websites in a group. Group invites require a global API key.
organization, website, group "organization"
How to invite the user. 'direct' adds the user to the resource immediately without sending any email — if no account exists for the email, a new user account is created automatically (with emailVerified=false) and the membership is added. 'email' creates a pending invite record and sends an invitation email via Postmark; the user must accept the invite to gain access.
direct, email "email"
Email address of the user to invite
"user@example.com"
The role to assign to the invited user
admin, viewer "viewer"
Required when type is 'website'. The ID of the website to grant access to
"123e4567-e89b-12d3-a456-426614174000"
Required when type is 'group'. The ID of the group to grant access to. Requires a global API key.
"456e7890-e89b-12d3-a456-426614174000"
Optional first name of the invited user. Used when creating a new user account for 'direct' invites or populating the invite record for 'email' invites.
"John"
Optional last name of the invited user. Used when creating a new user account for 'direct' invites or populating the invite record for 'email' invites.
"Doe"
User added or invitation sent successfully
Response from creating an invite
Whether the operation was successful
true
A message describing the result
"Invitation sent"
The ID of the created invite (only present for email invites)
"123e4567-e89b-12d3-a456-426614174000"
The ID of the user the invite targets. Present only for direct invites (the user is looked up or created immediately). Never returned for email-method invites to prevent cross-tenant account-existence enumeration.
"abc12345-e89b-12d3-a456-426614174000"