Clients API
POST/api/v1/clients/{id}/portal-invitations
Product availabilityAlgaPSAAlgaDesk

Invite a client's contacts to the client portal

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.

RBAC · user

Path parameters

idstring <uuid>Required
Client UUID from clients.client_id.

Request body

Content type: application/json · schema ClientPortalInvitationRequest

contact_idsarray of string
Contacts to invite. Ids that do not belong to the client in the path come back as skipped, never invited.
min items 1 · max items 500
itemsstring <uuid>
all_eligibleboolean
Invite every active contact of the client that has no client portal user yet. Ignored when contact_ids is given.

Response body

Success response 200 · schema BulkPortalInvitationEnvelope

dataobjectRequired
totalintegerRequired
Contacts considered by this request.
sentintegerRequired
skippedintegerRequired
failedintegerRequired
resultsarray of PortalInvitationResultRequired
itemsobject
contact_idstringRequired
contacts.contact_name_id.
emailstring
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.
401
API key missing/invalid or key user not found.
403
Permission denied for user invite.
500
Unexpected invitation failure.