Capturia measures its ads and site traffic with the Meta pixel and Google Analytics. You can decline at any time. Learn more

FR
Make.comIntegration guide

Make.com

Capture leads from Facebook Lead Ads, Typeform or a custom webhook, through Make's HTTP module, step by step, with a screenshot at every step.

Setup

Create a scenario with your source as trigger and the HTTP > Make a request module as action.

Create a new scenario

In Make, click Create scenario. Add your trigger: for Facebook Lead Ads, the Watch Leads module, with your Page and your Form (a custom webhook or Typeform, depending on your source).

Add the HTTP module

After the trigger, click the +, search for HTTP and choose Make a request. Not the "Webhook response" module: that one is for receiving, not sending.

Configure authentication, URL, method and header

Authentication type: No authentication (the key goes in the header)

URL: https://api.capturia.io/v1/leads/capture

Method: POST

Headers: add a header, Name Authorization, Value Bearer cap_live_xxxxxxxx, replacing cap_live_xxxxxxxx with your full Capturia API key.

Build the JSON body

Body content type: application/json

Body input method: JSON string

In Body content, write the JSON. Each lead value is inserted from the panel that opens when you click in the box: click the field of the Facebook module, and it appears as a pill between your quotes.

{
  "phone": "{{1.phone_number}}",
  "full_name": "{{1.full_name}}",
  "email": "{{1.email}}",
  "sms_consent": "{{1.consent[1]}}",
  "source_label": "make_scenario",
  "utm": {
    "source": "facebook"
  }
}

The {{1.…}} stand for the pills of module 1 (the trigger): insert them, don't type them. full_name receives the full name: Capturia splits it into first and last name. For sms_consent, it's the [1] item of the consent question (step 5).

Capture SMS consent

A custom question from your Facebook form arrives in Make as a list. In the panel, expand the consent question and insert its [1] item, the answer (e.g. oui), not the whole list. Capturia accepts yes, oui and true; a lead who answers no is rejected (422 missing_consent).

If your source has no consent field, write the fixed value "sms_consent": true, but keep external proof (checkbox on the landing page, archived copy). See the CASL section below.

Test and activate

Click Run once, then open the HTTP module's result. In Output, status is created for a new lead, or existing_pipeline_contact if this contact is already in your pipeline (common when testing with a number Capturia already knows): either way, the connection works. Then turn the scenario on with the Inactive switch at the top right.

Field mapping

The mapping below is for a Facebook Lead Ads trigger. For another trigger (Typeform, a custom webhook), adapt the source field names: the Capturia target stays the same.

Capturia fieldRequiredSource fieldNotes
phoneYes{{1.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_consentYesitem [1] of the consent question, or trueBoolean 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_nameNo{{1.first_name}}, if your form asks for the first name on its ownLead's first name
last_nameNo{{1.last_name}}, if your form asks for the last name on its ownLast name
full_nameNo{{1.full_name}}, if your form asks for the full name (as in step 4)Full name, when your source doesn't split first and last name: Capturia splits it at the first space. Ignored if first_name or last_name is sent.
emailNo{{1.email}}RFC 5322 valid email
source_labelNo"make_scenario"Free-form tag (e.g. 'webflow_form', 'fb_lead_ads')
utm.sourceNo"facebook"Nested utm object, or the flat key utm.source
utm.mediumNo"cpc"Nested utm object, or the flat key utm.medium
utm.campaignNo{{1.campaign_name}}Nested utm object, or the flat key utm.campaign
tagsNo[]Array of strings, or a comma-separated string
pipeline.pipeline_slugNo"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.stage_slugNo"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_slug, it is looked up in your default pipeline. Nested pipeline object, or flat key.
qualification_answers.<question>Noone "qualification_answers.<question>" key per question, with {{1.<answer field>}}A form answer, one pair per question: qualification_answers. followed by the question (e.g. qualification_answers.Do you live in Quebec?) → 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_answers list of question/answer pairs.

SMS Consent — CASL / Quebec Law 25

The sms_consent 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_consent. With GoHighLevel, the form's checkbox filters the trigger and sms_consent 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_consent: true 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

Click Run once to run the scenario on the trigger's latest lead, then open the HTTP module's result: in Output, status is created for a new lead, or existing_pipeline_contact if this contact is already in your pipeline (common when testing with a number Capturia already knows): either way, the connection works. Then turn the scenario on with the switch at the top right.

Error catalog

CodeErrorCauseFix
400invalid_payloadEmpty body or malformed JSON (extra comma, missing quote)Validate the JSON you send, then send again
401missing_api_keyAuthorization header absent or malformedAdd the header Authorization: Bearer cap_live_...
401invalid_api_keyKey revoked or mistypedCheck the key in Capturia, generate a new one if needed
401expired_api_keyKey past its expiration dateCreate a new key in Capturia (API Keys page), then replace the old one in the tool
403terms_acceptance_requiredAPI 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
403insufficient_scopeKey lacks the leads:capture scopeCreate a new key with the "Lead capture" preset
415invalid_content_typeBody sent as a form (Form, x-www-form-urlencoded) instead of JSONSend as JSON (Zapier: Payload Type = Json; Make: Body content type = application/json; GoHighLevel's Webhook action already sends JSON)
422invalid_phonePhone missing or format not recognizedUse E.164 (+15145551234) or NANP 10 digits (5145551234)
422invalid_emailMalformed emailSend a valid address, or leave the field out
422missing_consentsms_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)
422invalid_payloadAnother field refused (text too long, malformed date, negative value, etc.) — details names the fieldFix the field named in details, then send again
422pipeline_not_foundpipeline.pipeline_slug matches no pipeline of the accountCopy the pipeline's text identifier again from the API Keys page (it is not its UUID)
422stage_not_foundpipeline.stage_slug matches no stage of the targeted pipelineCopy the stage's text identifier again from the API Keys page, under the right pipeline
429rate_limit_exceededThe key's request quota is exceededSpace out sends at the source (the Retry-After header gives the delay)
429rate_limited_ipMore than 100 requests per minute from the same IP addressWait for the delay in the Retry-After header, then space out sends at the source

FAQ — common pitfalls

SymptomCause
Platform test green (200 OK) but lead doesn't show up in pipelineThe same contact was already sent in the last 5 minutes — response status: idempotent_replay, 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 details415: 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 leadsms_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 stageRead ignored_fields in the response: it names every received field that was not applied as received. unknown_field: the field carries a name the API does not know (pipeline.id instead of pipeline.pipeline_slug, for instance). existing_contact_kept: the contact already existed and keeps its pipeline and stage. duplicate_field: the same field arrived twice (root and Custom Data, for instance) and the other value was kept. unreadable_value: 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 trackingField sent under a name the API does not know (utm_source). Send the nested utm object or the flat key utm.source; ignored_fields names the field that was not applied.
403 terms_acceptance_required after an update that used to workA 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.