Zapier
Create a lead through Zapier.
Changed onSet is_test to true to have the endpoint answer with a sample page URL without importing anything — this is what Zapier calls when the user tests the step while building a Zap.
post/api/external/v1/zapier/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
{
"workspace_id": 55,
"campaign_id": 123,
"linkedin_profile_url": "https://www.linkedin.com/in/williamhgates/",
"company_domain": "example.com",
"email": "test@example.com",
"callback_url": "https://example.com/callback",
"custom_data": {
"key": "value"
}
}Response
Example response
{
"message": "Job started!",
"job_id": "9f1c8b2e-..."
}Changes
- breaking
added
subschema #1subschema #2to the response bodyoneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- breaking
- info
added the non-success response with the status
- info
added the success response with the status
- info