Invite a user to the portal
curl --request POST \ --url https://example.com/api/v1/client-members/example/portal-invitation \ --header 'Authorization: Bearer <token>'Invites one user to the portal as the Users page row action does, with or without a company. A person never invited is queued through their silent contacts, or invited through their first live company; an invited one gets it again; a revoked one has access restored through every company the caller reaches. A person with no company is invited on their own account, which answers failed once it was closed. A user who can already sign in is skipped. Requires the clients.view and clients.edit permissions and the same reach as GET /client-members; anyone else answers 404. No request body is needed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”WorkspaceMember id of the client person.
WorkspaceMember id of the client person.
Responses
Section titled “Responses”What the invitation did.
object
object
Pending members that already had an invitation waiting in the queue.
Invitations that did not leave or were refused, such as for a person with no company whose account was closed.
Invitations newly enqueued by this call.
Invitations or welcomes sent right away.
Example generated
{ "data": { "alreadyQueued": 1, "failed": 1, "queued": 1, "sent": 1 }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Client person not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC