Invites a user to multiple websites OR multiple groups in a single request. Provide exactly one of website_ids or group_ids — the two are mutually exclusive. Each target is processed independently, so some may succeed while others fail (e.g., if the user is already a member). In ‘email’ mode a single consolidated invitation email is sent. 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 inviting a user to multiple websites or multiple groups. Provide exactly one of website_ids or group_ids — the two are mutually exclusive. A single consolidated invitation email is sent in 'email' mode.
How to invite the user. 'direct' adds the user to each target immediately without sending any email — if no account exists for the email, a new user account is created automatically (with emailVerified=false). 'email' creates pending invite records and sends a single consolidated invitation email.
direct, email "direct"
Email address of the user to invite
"user@example.com"
The role to assign to the invited user on each target
admin, viewer "viewer"
Array of website IDs to invite the user to (1-50). Mutually exclusive with group_ids.
1 - 50 elements[
"123e4567-e89b-12d3-a456-426614174000",
"987e6543-e21b-12d3-a456-426614174000"
]Array of group IDs to invite the user to (1-50). Mutually exclusive with website_ids. Requires a global API key.
1 - 50 elements[
"456e7890-e89b-12d3-a456-426614174000",
"789e0123-e89b-12d3-a456-426614174000"
]Optional first name of the invited user. Used when creating a new user account for 'direct' invites or populating invite records for 'email' invites.
"John"
Optional last name of the invited user. Used when creating a new user account for 'direct' invites or populating invite records for 'email' invites.
"Doe"
Bulk invite processed. Check individual results for per-target outcomes.