Create a client contact
curl --request POST \ --url https://example.com/api/v1/clients/example/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "accessLevel": "OWNER", "email": "hello@example.com", "firstName": "example", "isPrimary": true, "lastName": "example", "phone": "example", "projectIds": [ "example" ], "projectScopeEnabled": true, "roles": [ "TICKETS" ] }'Adds a person to a client as a client member: a user, a client workspace member and the linked contact, silent (no email or notification) until invited unless the person can already sign in. The email is normalized (trimmed, lowercased) before the duplicate check and the write. phone must carry its country code (+1 305 555 1234) and is stored in E.164; a number without one is refused with 400. Setting isPrimary: true clears any other primary contact of the same client. accessLevel is a data-scope attribute, never a permission source; the reserved COLLABORATOR is rejected. projectScopeEnabled and projectIds set the portal project scope — the switch is explicit, and an enabled scope with no projects shows nothing. Requires the clients.edit permission. Every API-created contact has source: "manual" — provenance values like invite/lead_conversion are stamped only by the internal flows that own them.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Replaces the contact’s scoped project set. Every id must be a project of this client.
Explicit portal project-scope switch; omitted leaves it off (the default).
What the contact receives for the company; omitted gives every role.
Responses
Section titled “Responses”The created contact.
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.
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" }}The email already belongs to this client, to a member of another client, or to a team member.
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