Queue first portal invitations for pending client members
curl --request POST \ --url https://example.com/api/v1/clients/portal-invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientIds": [ "example" ] }'Queues one first portal invitation per client member still waiting for one, spaced about one second apart so the mail provider is never hit in a burst. A member already queued is left alone. Requires the clients.edit permission. clientIds limits the invite to specific clients – every id must be one the caller’s scope reaches, or the request is refused with 404; omit it to cover every reachable active client.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Client IDs to queue invitations for. Every id must be a client the caller’s scope reaches, or the request is refused. Omit to cover every pending member across every client the caller’s scope reaches.
Example generated
{ "clientIds": [ "example" ]}Responses
Section titled “Responses”How many invitations were queued and how many were already waiting.
object
object
Pending members that already had an invitation waiting in the queue.
Invitations newly enqueued by this call.
Example generated
{ "data": { "alreadyQueued": 1, "queued": 1 }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}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" }}One or more clients 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.
Failed to queue portal invitations.
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" }}Chelsea is operated by Arepa Labs LLC