Skip to main content
Trigger an invitation email that lets a person join your community. You can also place the invitee in a specific group when they accept. Before you start, read the API overview for how authentication, headers, pagination and errors work.

Trigger an invitation

Send an invitation on behalf of an existing user.
string
The full name of the person you’re inviting.
string
The email address of the person you’re inviting.
string
The email address of the user sending the invitation. This user must have the abilities needed to send invitations.
string
The URL of the content to send the invitee to after they complete the invitation process.
string
The UUID of the group to add the user to when they accept the invitation. You can find the UUID in the group’s settings in your community.
Trigger an invitation
POST https://your-community.zapnito.com/api/v1/invitations
  • 200 OK: the invitation was triggered.
  • 401 Unauthorized: your API token isn’t recognised or is badly formatted. See authentication.
  • 403 Forbidden: the user in invited_by_email doesn’t have permission to send the invitation. Without group_uuid they need the create_invitation ability. With group_uuid they need the create_invitation_with_group ability.
  • 404 Not Found: no group matches group_uuid, or no user matches invited_by_email. The messages read Group not found for provided UUID '...' and User account for sender ... not found.
  • 422 Unprocessable Entity: the invitee’s email address isn’t a valid format.