Upsert (update or create) a single lead.
This endpoint is used to upsert a single lead.
The "values" object requires at least one of the following fields, otherwise it will throw an error:
- first_name
- company_name
- company_domain
- linkedin_profile_url
Request body
Example request
{
"from": "MyCompanyName",
"campaign_id": 1,
"audience_id": 1,
"callback_url": "https://example.com/callback",
"is_generate_ai_analysis": true,
"lead_id": 16,
"genpage_url": "https://myworkspace.genpa.ge/aws-john",
"values": {
"first_name": "John",
"email": "john@aws.com",
"company_name": "Amazon Web Services",
"linkedin_profile_url": "https://www.linkedin.com/in/john-doe-1234567890"
}
}Response
Example response
{
"job_id": "9f1c8b2e-..."
}Changes
Changed in 2 of the 3 revisions of this API.18
- ○
the request property
frombecame optionalrequest-property-became-optional
- ○
- ●
removed the optional property
genpage_urlfrom the response with the200statusresponse-optional-property-removed
- ○
added the new optional request property
audience_idnew-optional-request-property
- ○
added the new optional request property
enrich_datanew-optional-request-property
- ○
added the new optional request property
generate_ai_variablesnew-optional-request-property
- ○
added the new optional request property
send_emailnew-optional-request-property
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
removed the non-success response with the status
503response-non-success-status-removed
- ○
added the optional property
job_idto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●