Before using this endpoint, complete the Getting Started guide to obtain your API key. You do not need to send a company ID or role ID. AgencyHandy assigns the client to the workspace client role automatically.
Prerequisites
- ✅ API key generated from Workspace Config → API Key
Endpoint
Headers
Request body
The request body is a JSON array. You can create one or more clients in a single request.The client’s email address. It must be valid and should be unique within your workspace.
The client’s first name.
The client’s last name.
The client’s status. The only accepted value for this endpoint is
Client.Optional password for the client. If provided, it must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character.
The client’s phone number. Optional. Defaults to an empty string if omitted.
The client’s country. Optional.
The client’s city. Optional.
The client’s state or region. Optional.
The client’s ZIP or postal code. Optional.
The client’s address. Optional.
Optional array of category or label IDs. Each ID must exist in the workspace.
The client’s company name. Optional.
Whether to send an invitation email. Optional. Defaults to
true.How you acquired this client. Optional. Example values:
website, referral, social.The estimated value associated with the client. Optional.
The client’s website. Optional.
Optional assigned agent ID.
Optional date for when the client was last contacted.
Optional array of file IDs attached to the client.
Optional profile image URL or file reference.
Optional custom field responses for client custom fields.
Full payload example
Onlyemail, firstName, lastName, and status are required. Every other field shown here is optional.
The custom field ID when sending a custom field response.
Optional string response value.
Optional number response value.
Optional date response value.
Optional boolean response value.
Optional array response value. Each item can include
value and label.Optional file response value. Each file item must include
_id, link, sizeInBytes, s3Key, type, company, and isVersion.Example request
cURL
Success response
Indicates whether at least one client was added.
Clients that were created, restored, or converted from existing leads.
Unique ID of the newly created client. Use this ID when assigning the client to orders or invoices via the API.
The full name of the client (firstName + lastName).
The status of the client as stored.
Clients that were not created. Each item includes the submitted
email and a reason, such as Client already exists or One or more category not found.
