Create Client

This endpoint creates a new client for the company.

Important Notes

  • At least one of last_name, email, or phone is required by business logic.
  • Email is normalized to lowercase.
  • Phone must follow E.164 format.
  • second_phone is stored as sent (no E.164 normalization); photo must be an absolute
    http(s) URL; can_book defaults to true.

Errors Dictionary

StatusErrorDetailDescription
400invalid_bodyexpected_objectRequest body is not a JSON object.
400invalid_photo—photo is not an absolute http(s) URL (max 2048 characters).
400invalid_can_book—can_book is not a boolean.
400client_missing_contact_info—None of last_name, email, phone was sent.
400client_invalid_email—email is malformed.
401unauthorizedinvalid_api_keyMissing or invalid Bearer token.
401unauthorizedapi_config_inactiveAPI access is inactive for this company.
403forbiddenscope_deniedAPI key lacks clients:write scope.
403cross_company_custom_attributes—A custom attribute belongs to another company.
429rate_limitedburst_limit_exceededPer-minute request limit exceeded.
429rate_limiteddaily_quota_exceededDaily request quota exceeded.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Request body for creating a client.

string
required
length ≤ 255

Client first name.

string
length ≤ 255

Client last name.

string
length ≤ 255

Client email.

string
length ≤ 255

National identification number.

string
length ≤ 255

Phone number in E.164 format.

string
length ≤ 255

Street address.

string
length ≤ 255

District or neighborhood.

string
length ≤ 255

City.

string
length ≤ 255

Region or state.

integer
≥ 1

Client age.

integer
enum

Gender: 0 = other, 1 = female, 2 = male.

Allowed:
integer
≥ 1

Day of birth.

integer
≥ 1

Month of birth.

integer
≥ 1

Year of birth.

string

Client record number (unique per company).

string | null

Secondary phone, stored as sent (no E.164 normalization).

uri | null

Absolute http(s) URL of the client photo. An empty string stores null.

boolean | null

Whether the client may book. Defaults to true; null also means true.

custom_attributes
array of objects

Custom attribute values to set.

custom_attributes
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json