Sends client portal invitations for one client: either every eligible contact (all_eligible) or a named subset (contact_ids) validated against the client in the path. Invitations go out one at a time, so a contact that cannot be invited never costs the rest of the batch theirs; the response reports each contact's outcome and the request is a 200 even when some were skipped or failed.
Address the invitation went to, when the contact has one.
statusstringRequired
sent: an invitation email went out. skipped: the contact is not invitable as it stands (no email, invalid email, already a portal user, shared mailbox, not in this client). failed: the invitation could not be delivered.
Enum: sentskippedfailed
invitation_idstring
portal_invitations.invitation_id of the invitation created.
error_codestring
Stable code for a skip or failure, e.g. USER_EXISTS_FOR_CONTACT.
messagestring
metaobject
Response codes
200
Per-contact invitation outcomes.
400
Invalid payload, no targets selected, more than 500 contacts, or the tenant is not configured to send invitations.