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 lead to the workspace client role automatically.
Prerequisites
- ✅ API key generated from Workspace Config → API Key
Create new leads
Endpoint
Headers
Request body
The request body is a JSON array — you can create one or more leads in a single call.string
required
The lead type. Allowed values:
individual, leadCompanyMember.string
required
The lead’s email address. It must be valid and should be unique within your workspace.
string
required
The lead’s pipeline status. Allowed values:
New, Contacted, Qualified, Working, Proposal Sent, Negotiation.string
Optional password for the lead. If provided, it must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character.
string
The lead’s first name. Optional.
string
The lead’s last name. Optional.
string
The lead’s phone number. Optional. Defaults to an empty string if omitted.
string
The lead’s country. Optional.
string
The lead’s city. Optional.
string
The lead’s state or region. Optional.
string
The lead’s ZIP or postal code. Optional.
string
The lead’s address. Optional.
string[]
Optional array of category or label IDs. Each ID must exist in the workspace.
string
The lead’s company name. Optional.
boolean
Whether to send an invitation email. Optional. Defaults to
true.string
How you acquired this lead. Optional. Example values:
website, referral, social.string
The estimated value of the lead. Optional.
string
The lead’s website. Optional.
string
Optional assigned agent ID.
string
Optional date for when the lead was last contacted.
string[]
Optional array of file IDs attached to the lead.
string
Optional profile image URL or file reference.
array
Optional custom field responses for lead custom fields.
string
Optional currency code for a closed-won deal amount.
number
Optional closed-won deal amount. Can be
null or an empty string.string
Optional date of the lead’s last engagement.
string
Optional last engagement type. Allowed values:
Email, Phone, One-to-One, Online Meeting.string
Optional date of the first outreach.
string
Optional disqualification reason. Can be
null or an empty string.number
Optional email activity count. Can be
null or an empty string.string
Optional date of the last activity.
number
Optional meeting count. Can be
null or an empty string.number
Optional message thread count. Can be
null or an empty string.number
Optional outreach activity count. Can be
null or an empty string.Full payload example
Onlytype, email, and status are required. Every other field shown here is optional.
Example request
cURL
Success response
boolean
Indicates whether the request was processed successfully.
array
Leads that were created successfully.
string
The unique ID of the newly created lead. Store this if you need to reference the lead in subsequent API calls.
string
The full name of the lead (firstName + lastName).
string
The pipeline status of the lead as stored.
array
Leads that were not created. Each item includes the submitted
email, a reason, and sometimes the existing lead object.
