List a client's contacts
curl --request GET \ --url 'https://example.com/api/v1/clients/example/contacts?page=1&perPage=100&sort=name' \ --header 'Authorization: Bearer <token>'Lists a client’s contacts, the users of the company as its Users tab shows them: q matches every word against the first name, last name or email, and sort orders them by name A–Z (the default), Z–A or most recently added, the primary contact always first. Search, order and pagination run in the database; perPage defaults to 100. A contact is the person and always has a portal account, identified by memberId; portalInvitation says how the last portal invitation or welcome email to them fared (pending, sent, delivered, failed, bounced or marked as spam) and why the provider refused it. Requires the clients.view permission. A client outside the caller’s assignments returns 404 unless the caller has clients.view_all.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Each whitespace-separated word must match the first name, last name or email.
Each whitespace-separated word must match the first name, last name or email.
name (A–Z, the default), name-desc (Z–A) or newest (recently added first). The primary contact always comes first.
name (A–Z, the default), name-desc (Z–A) or newest (recently added first). The primary contact always comes first.
Responses
Section titled “Responses”One page of the client’s contacts.
object
A person attached to a client company.
object
Data-scope attribute of the person: OWNER, BILLING, LEAD, MEMBER or COLLABORATOR (tickets only: the person reaches just the tickets they opened or were added to and gets no company notices).
WorkspaceMember id of the person’s portal account.
E.164 phone, e.g. +13055551234, or null when none is saved.
The last portal invitation or welcome email tried for this contact, or null when none is recorded. Returned by the contact list; absent from create and update responses.
The delivery of the last portal invitation or welcome email tried for a contact.
object
When the outcome last changed.
PENDING while handed to the provider, SENT once accepted, FAILED when it never left, then DELAYED, DELIVERED, BOUNCED or COMPLAINED (marked as spam) as the provider reports.
Why the provider refused or bounced it, when it said.
Explicit portal project-scope switch. False means the contact sees everything its client sees.
Pagination metadata for list responses.
object
Example
{ "data": [ { "portalInvitation": { "outcome": "PENDING" }, "roles": [ "TICKETS" ], "source": "manual" } ]}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" }}Client 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