Zapier
Capture leads from Facebook Lead Ads, Typeform, Webflow and thousands of other apps via Zapier, step by step, with a screenshot at every step.
Setup
Create a Zap with Facebook Lead Ads as source and Webhooks by Zapier as action.
Create a new Zap
In Zapier, click Create, then Zaps. Rename your Zap at the top of the screen (e.g. Facebook Leads → Capturia).
Configure the Facebook Lead Ads trigger
As the trigger, choose Facebook Lead Ads, event New Lead. Connect your Facebook account, then, in the Configure tab, select the Page and the Form to send to Capturia. In the Test tab, Zapier pulls a test lead from the form.
Add the Webhooks by Zapier action
Add an action and choose the Webhooks by Zapier app. As the Action event, choose POST (not Custom Request, not GET).
Configure the URL and authentication
URL: https://
Payload Type: Json (not Form)
Headers: add an Authorization row with the value Bearer cap_, replacing cap_ with your full Capturia API key.
Leave Wrap Request In Array on No and Unflatten on Yes, their default settings.
Map the fields
In the Data section, each row has two boxes. On the left, the Capturia field name, which you type: phone, full_, email (see the mapping table below). On the right, its value, which you insert from the Facebook lead: click the + at the end of the box, search for the form field and click it. A pill with the Facebook logo appears, showing the test lead's value.
Fixed values, on the other hand, are typed as is: source_ → fb_, utm. → facebook. full_ receives the form's full name: Capturia splits it into first and last name.
Nested fields: for utm and pipeline, write the flat key with a dot, as is: utm., utm., pipeline., pipeline.. Capturia places each key in its block.
Capture SMS consent
Recommended setup: add a custom consent question to your Facebook form (e.g. "Do you agree to receive text messages from us?", answers yes or no). In Data, add the sms_ row and insert the answer to that question with the +. Capturia accepts yes, oui and true; a lead who answers no is rejected (422 missing_), since they did not agree to texts.
Alternative setup: if a custom question isn't possible, type the fixed value true, but keep proof of consent (checkbox on the landing page, archived copy). See the CASL section below.
Test and publish
Click Continue, then test the step in the Test tab: Zapier sends the test lead to Capturia. The Data out tab shows the response: Status is created for a new lead, or existing_ if this contact is already in your pipeline (common when testing with a number Capturia already knows): either way, the connection works. The record is under Prospects. If everything looks right, click Publish.
Field mapping
Recommended mapping for Facebook Lead Ads → Capturia. Every value that comes from the form is inserted with the + (a pill), never by typing its name. Source field names depend on your form.
| Capturia field | Required | Source field | Notes |
|---|---|---|---|
| phone | Yes | phone_number | E.164 (+15145551234), NANP 10 or 11 digits, or formatted (514) 555-1234 / 514-555-1234. 10-digit numbers auto-prefixed with +1. |
| sms_consent | Yes | consent_yes_no (custom question) | Boolean true OR string 'true' / 'yes' / 'oui' / 'vrai' / '1' / 'on' / 'checked' (case-insensitive). Accepted at the body root or inside the customData object (GoHighLevel webhooks). |
| first_name | No | first_name, if your form asks for the first name on its own | Lead's first name |
| last_name | No | last_name, if your form asks for the last name on its own | Last name |
| full_name | No | full_name, if your form asks for the full name (as in the steps) | Full name, when your source doesn't split first and last name: Capturia splits it at the first space. Ignored if first_ or last_ is sent. |
| No | RFC 5322 valid email | ||
| source_label | No | (literal) fb_lead_ads | Free-form tag (e.g. 'webflow_form', 'fb_lead_ads') |
| utm. | No | (literal) facebook | Nested utm object, or the flat key utm. |
| utm. | No | (literal) cpc | Nested utm object, or the flat key utm. |
| utm. | No | campaign_name | Nested utm object, or the flat key utm. |
| tags | No | (literal) tag1, tag2 — or leave empty | Array of strings, or a comma-separated string |
| pipeline. | No | (literal) identifier copied from Capturia | Text identifier of the target pipeline (not its UUID). Copy it in Capturia: Settings, API Keys, "Your pipeline and stage identifiers" section. Without it, the default pipeline is targeted. Nested pipeline object, or flat key. |
| pipeline. | No | (literal) identifier copied from Capturia | Text identifier of the target stage, copied from the same place. Without it, the stage marked "Default stage" next to the identifiers. Sent without pipeline_, it is looked up in your default pipeline. Nested pipeline object, or flat key. |
| qualification_answers. | No | the form question as the key, prefixed (e. | A form answer, one pair per question: qualification_ followed by the question (e.g. qualification_) → the lead's answer. It shows up on the record, question and answer, and the SMS agent knows it. A question written with underscores is shown with spaces. Up to 20 answers, 1,000 characters per answer. Or the qualification_ list of question/answer pairs. |
SMS Consent — CASL / Quebec Law 25
The sms_ field is required. Canada's Anti-Spam Legislation (CASL) and Quebec's Law 25 require explicit consent before any commercial SMS. Capturia stores a timestamped record of this attestation for your legal protection.
Recommended setup — consent captured at source
Add a custom consent question directly in the source form (Facebook form custom question, Typeform field). Map this field to sms_. With GoHighLevel, the form's checkbox filters the trigger and sms_ is sent as the fixed value true (see the GoHighLevel guide). Consent is explicit, dated, and tied to the lead who gave it.
Alternative setup — checkbox on the landing page
If the source form doesn't allow custom questions, add a consent checkbox on the landing page before the ad. Keep a copy of the page (Wayback Machine, dated screenshot) as evidence.
Legal grey area
Writing a fixed sms_ without real lead attestation = legal risk. In case of complaint, Capturia may be required to provide proof of consent. Without proof, liability falls on the business that sends the lead.
Step-by-step test
In Zapier, test the trigger to pull a test lead from Facebook (Meta's Lead Ads Testing Tool creates one), then test the POST action: in Data out, Status is created for a new lead, or existing_ if this contact is already in your pipeline (common when testing with a number Capturia already knows): either way, the connection works. Then check under Prospects that the lead shows up.
Error catalog
| Code | Error | Cause | Fix |
|---|---|---|---|
| 400 | invalid_payload | Empty body or malformed JSON (extra comma, missing quote) | Validate the JSON you send, then send again |
| 401 | missing_api_key | Authorization header absent or malformed | Add the header Authorization: Bearer cap_ |
| 401 | invalid_api_key | Key revoked or mistyped | Check the key in Capturia, generate a new one if needed |
| 401 | expired_api_key | Key past its expiration date | Create a new key in Capturia (API Keys page), then replace the old one in the tool |
| 403 | terms_acceptance_required | API terms of use not accepted (or a new version to accept) | Someone who manages API keys opens the key in Capturia (API Keys page, Permissions tab) and checks the terms attestation |
| 403 | insufficient_scope | Key lacks the leads:capture scope | Create a new key with the "Lead capture" preset |
| 415 | invalid_content_type | Body sent as a form (Form, x-www-form-urlencoded) instead of JSON | Send as JSON (Zapier: Payload Type = Json; Make: Body content type = application/json; GoHighLevel's Webhook action already sends JSON) |
| 422 | invalid_phone | Phone missing or format not recognized | Use E.164 (+15145551234) or NANP 10 digits (5145551234) |
| 422 | invalid_email | Malformed email | Send a valid address, or leave the field out |
| 422 | missing_consent | sms_consent absent, false, or unrecognized value — the field is looked up at the body root AND inside the customData object (GHL) | Map the consent field to sms_consent (true / yes / oui). From GHL: fixed value true, behind the trigger's Terms and Conditions filter (or, for another trigger, an If/Else condition on a checkbox custom field) |
| 422 | invalid_payload | Another field refused (text too long, malformed date, negative value, etc.) — details names the field | Fix the field named in details, then send again |
| 422 | pipeline_not_found | pipeline. matches no pipeline of the account | Copy the pipeline's text identifier again from the API Keys page (it is not its UUID) |
| 422 | stage_not_found | pipeline. matches no stage of the targeted pipeline | Copy the stage's text identifier again from the API Keys page, under the right pipeline |
| 429 | rate_limit_exceeded | The key's request quota is exceeded | Space out sends at the source (the Retry- header gives the delay) |
| 429 | rate_limited_ip | More than 100 requests per minute from the same IP address | Wait for the delay in the Retry- header, then space out sends at the source |
FAQ — common pitfalls
| Symptom | Cause |
|---|---|
| Platform test green (200 OK) but lead doesn't show up in pipeline | The same contact was already sent in the last 5 minutes — response status: idempotent_, no duplicate (tests often reuse the same number). If the contact already existed, it keeps its stage: see the "not in the right pipeline" entry below. |
415 "Unsupported Content-Type." or 400 "The request content is invalid." without details | 415: the tool sends a form instead of JSON (Payload Type set to Form in Zapier, application/x-www-form-urlencoded in Make). 400: the JSON is malformed, often an extra comma or a missing quote around a variable. |
| 200 OK response but no SMS sent to lead | sms_consent: true but AI agent not configured, or SMS AI agent disabled, or no Twilio number provisioned for the client. |
| 200 OK response but the lead is not in the right pipeline or stage | Read ignored_ in the response: it names every received field that was not applied as received. unknown_: the field carries a name the API does not know (pipeline. instead of pipeline., for instance). existing_: the contact already existed and keeps its pipeline and stage. duplicate_: the same field arrived twice (root and Custom Data, for instance) and the other value was kept. unreadable_: the value cannot be read ("[object Object]", or an object where a simple value is expected), a sign that the mapped field points to an object instead of a specific field. Capturia removes that text: what remains readable is kept, otherwise the field stays empty; a tag or a qualification answer that carries this text is discarded entirely. |
| Lead created without UTM tracking | Field sent under a name the API does not know (utm_). Send the nested utm object or the flat key utm.; ignored_ names the field that was not applied. |
| 403 terms_acceptance_required after an update that used to work | A new version of the API terms of use must be accepted: someone who manages API keys accepts it in Capturia, in the key's Permissions tab, and the key works again without a new secret. |
| 422 invalid_phone even though the phone is mapped | The field name was typed as text in the value box (phone_) instead of being inserted. Capturia receives the word, not the number. Clear the box, click the + at its end and choose the form's phone field: a pill must appear. Same for every value that comes from the form. |
| UTM lost despite mapping | The key does not carry a name the API knows (utm_ with a single underscore, for instance). Write utm. (flat key), or utm__ with Unflatten = Yes. Capturia's response names the field that was not applied in ignored_. |