Leads
Upsert (update or create) a single lead.
Changed onThis 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
post/api/external/v1/leads/upsert-lead
Request
- Base URLhttps://backend.genpage.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- info
the request property
became optional
- info
- warning
removed the optional property
from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the optional property
to the response with the status
- warning