Zapier

Create a lead through Zapier (no callback required).

Same as upsert-lead, but the callback URL is optional: use this when the Zap does not need GenPage to call back once the page has been generated.

post/api/external/v1/zapier/upsert-lead-basic

Request body

workspace_idinteger required

The workspace to add the lead to.

campaign_idinteger required

The campaign to add the lead to.

is_testboolean nullable

Accepted for parity with upsert-lead; this endpoint ignores it.

callback_urlstring nullable

Called with the generated page once the import finishes.

generate_ai_variablesboolean nullable

Generate AI variable values for the lead. Defaults to true for this endpoint.

linkedin_profile_urlstring nullable

One of linkedin_profile_url, company_domain or email is required.

company_domainstring nullable

One of linkedin_profile_url, company_domain or email is required.

emailstring nullable

One of linkedin_profile_url, company_domain or email is required.

custom_dataobject nullable

Key/value pairs stored as variables on the lead.

Example request

{
  "workspace_id": 55,
  "campaign_id": 123,
  "callback_url": "https://example.com/callback",
  "generate_ai_variables": true,
  "linkedin_profile_url": "https://www.linkedin.com/in/williamhgates/",
  "company_domain": "example.com",
  "email": "test@example.com",
  "custom_data": {
    "key": "value"
  }
}

Response

messagestring
job_idstring

Example response

{
  "message": "Job started!",
  "job_id": "9f1c8b2e-..."
}

Changes