Clients
People and companies you serve (clients, patients, customers).
/clientsList clients
Returns a cursor-paginated list of clients in your organization, ordered by document id. Soft-deleted clients are excluded. Pass email or phone to look up a specific client server-side instead of paging the whole list. Requires scope: clients:read.
Parameters
Query
emailphoneResponse 200
Errors
/clientsCreate a client
Creates a client. Provide at least one of firstName, lastName, company, email, or phone. If the contact matches an existing active client (by email, then phone, then secondary phone) that client is updated and returned instead of creating a duplicate - unless the body names a `company` and the matching client carries a different company name, in which case a separate client is created. Requires scope: clients:write.
Request body
uuidtitlefirstNamelastNamecompanyphonesecondaryPhoneemailaddressline1unitcitystatezipcountryleadSourcestatuscustomFieldsorganizationCompanyIdorganizationCompanyNameorganizationCompanyLogoUrlResponse 201
idrequiredobjectrequirednumericIduuidtitlefirstNamelastNamefullNamecompanyphonesecondaryPhoneemailphoneNumbersnumbernormalizedisPrimaryaddressline1unitcitystatezipcountryfullAddressleadSourceleadSourceIdstatuscustomFieldsorganizationCompanyIdorganizationCompanyNameorganizationCompanyLogoUrlcreatedAtupdatedAtErrors
/clients/{id}Retrieve a client
Returns a single client by id. A record belonging to another organization returns 404 rather than 403, so this can never confirm cross-tenant existence. Requires scope: clients:read.
Parameters
Path
idrequiredResponse 200
idrequiredobjectrequirednumericIduuidtitlefirstNamelastNamefullNamecompanyphonesecondaryPhoneemailphoneNumbersnumbernormalizedisPrimaryaddressline1unitcitystatezipcountryfullAddressleadSourceleadSourceIdstatuscustomFieldsorganizationCompanyIdorganizationCompanyNameorganizationCompanyLogoUrlcreatedAtupdatedAtErrors
/clients/{id}Update a client
Updates an existing client. Ownership is verified before the write, so a client belonging to another organization returns 404. Requires scope: clients:write.
Parameters
Path
idrequiredRequest body
uuidtitlefirstNamelastNamecompanyphonesecondaryPhoneemailaddressline1unitcitystatezipcountryleadSourcestatuscustomFieldsorganizationCompanyIdorganizationCompanyNameorganizationCompanyLogoUrlResponse 200
idrequiredobjectrequirednumericIduuidtitlefirstNamelastNamefullNamecompanyphonesecondaryPhoneemailphoneNumbersnumbernormalizedisPrimaryaddressline1unitcitystatezipcountryfullAddressleadSourceleadSourceIdstatuscustomFieldsorganizationCompanyIdorganizationCompanyNameorganizationCompanyLogoUrlcreatedAtupdatedAtErrors
/clients/{id}Delete a client
Soft-deletes a client and revokes any client portal access tokens for that client. Requires scope: clients:write.
Parameters
Path
idrequiredResponse 200
idrequiredobjectrequireddeletedrequired