n8n-nodes-pilot-status 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `n8n-nodes-pilot-status`.
|
|
4
4
|
|
|
5
|
+
## 2.5.0 - 2026-10-08
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **Lead resource** (Meta Lead Ads — Facebook / Instagram Instant Forms). Read-only, and
|
|
10
|
+
requires a **number-scoped API key**: a lead belongs to the number whose Page is linked in
|
|
11
|
+
the dashboard.
|
|
12
|
+
- **Get Many** — `GET /v1/leads`, newest first by when the person submitted the form.
|
|
13
|
+
Filters: **Form ID**, **Ad ID**, **Page ID** (exact match), **Start Date** /
|
|
14
|
+
**End Date** (Meta's `created_time`, not when Pilot Status received the lead), **Page**,
|
|
15
|
+
**Page Size** (max 100). Answers `{ leads, total, page, pageSize, totalPages, notice? }`.
|
|
16
|
+
- **Get** — `GET /v1/leads/{id}`, by the Pilot Status `id` (= `data.leadId` on the
|
|
17
|
+
`lead.received` webhook, **not** Meta's `leadgenId`). A lead of another number is
|
|
18
|
+
`404 LEAD_NOT_FOUND`.
|
|
19
|
+
- On a **RELAY_ONLY** number a lead keeps its ids, attribution and status but comes back
|
|
20
|
+
with `redacted: true` and no name, e-mail, phone or answers; the response carries
|
|
21
|
+
`notice`. `consentGiven: null` means **unknown**, never a refusal.
|
|
22
|
+
- **Lead Received** (`lead.received`) in the trigger's event list, on **every** provider:
|
|
23
|
+
the whole lead under `data`. The number field is **`whatsappNumberId`, not `numberId`**;
|
|
24
|
+
`leadgenId` is Meta's id (use it to deduplicate), `leadId` is the one **Lead → Get**
|
|
25
|
+
takes. `fields` values are always a list.
|
|
26
|
+
|
|
5
27
|
## 2.4.0 - 2026-10-05
|
|
6
28
|
|
|
7
29
|
### Added
|
package/README.md
CHANGED
|
@@ -74,6 +74,7 @@ The API never returns the secret — not even in the `201` of the create call
|
|
|
74
74
|
- **Number Created / Connected / Disconnected / Removed / Restored** (`number.created`, `number.connected`, `number.disconnected`, `number.removed`, `number.restored`): Lifecycle of a WhatsApp number in your account. `number.restored` means a deleted number was brought back within its 30-day window — it returns disconnected and must be reconnected.
|
|
75
75
|
- **Call Ringing / Connected / Ended / Missed / Permission Updated** (`call.ringing`, `call.connected`, `call.ended`, `call.missed`, `call.permission_updated`): WhatsApp Business Calling events (`call.*`) — Meta Cloud API **and web (Pilot Status) numbers** (`call.permission_updated` is Meta-only). Payloads are **flat** (fields next to `event`, no `data` wrapper): `{ event, callId, externalCallId?, direction, status, from, to, timestamp, duration? }`; `duration` (seconds) appears on `call.ended` only when the call was answered. `externalCallId` is the provider call id (Meta `wacid...` or Evolution GO CallID).
|
|
76
76
|
- **Flow Response Received** (`flow.response_received`): Triggered when someone SUBMITS a WhatsApp Flow form — the answers arrive here. **META numbers only.** Wrapped in `data`: `{ event, data: { event, flowId, metaFlowId, flowToken, messageId, whatsappNumberId, from, receivedAt, response, responseRaw, flowMedia, submitted } }`. Four things to know. The number field is **`whatsappNumberId`, not `numberId`** — same value, different name on the wire. **`response` and `responseRaw` are mutually exclusive**: `response` holds what your own Flow endpoint returned, already parsed, and `responseRaw` is `null`; if the parse failed it is the other way round, and the raw string is the only copy of the answer there is. **On a Flow with a `data_exchange` endpoint `response` is EMPTY even on a number that stores everything** — Meta's completion payload carries only the `flow_token` — and what the person typed is in **`submitted`**: one entry per `data_exchange` screen, `{ screen, at, data, omitted }`, in order, where `omitted` (`DATA_TOO_LARGE`, `LIMIT_REACHED` or `UNREADABLE`) says why a `data` is `null`. `flowMedia` holds the files attached inside the form: `{ field, fileName, mimeType, status, url }`. Both are `null` and **never `[]`** when empty, so a node testing for an empty array never fires; `GET /v1/flows/{id}/responses` publishes the same two lists as arrays, under `media` and `submitted`. And picking this event for a **non-Meta** number fails SILENTLY: the API filters a webhook's events down to what the number's provider can emit, so the subscription is created with an empty event list, returns `201`, and never fires.
|
|
77
|
+
- **Lead Received** (`lead.received`): A lead from a **Meta Lead Ads Instant Form** (Facebook / Instagram), delivered on the WhatsApp number whose Page is linked in the dashboard — **any provider**, not only Meta numbers. Wrapped in `data`: `{ event, data: { leadId, leadgenId, whatsappNumberId, pageId, pageName, formId, formName, adId, adsetId, campaignId, adName, adsetName, campaignName, platform, isOrganic, createdAt, fullName, email, phone, fields, consentGiven, conversationId } }`. The number field is **`whatsappNumberId`, not `numberId`**. `leadId` is the Pilot Status id (the one **Lead → Get** takes); `leadgenId` is Meta's, unique per lead — use it to deduplicate. `createdAt` is when the person **submitted** the form. `fields` holds every answer as `{ key, label?, values }`, and `values` is **always a list**, even for a single answer. `label` is absent when it could not be resolved; on **Lead → Get** / **Get Many** it is always present, falling back to the key. `consentGiven` is `true`/`false` only when the form has a consent checkbox configured; `null` means **unknown**, never a refusal.
|
|
77
78
|
|
|
78
79
|
Webhook payload notes:
|
|
79
80
|
- Customer webhook payloads do not include: `projectSlug`, `lastMessageId`. Optional `correlationId` (same as HTTP 202 when present) may appear on outbound status events and on `message.reply` / `message.received` when correlated to a prior send.
|
|
@@ -137,6 +138,15 @@ The **Pilot Status** node provides several resources and operations to manage yo
|
|
|
137
138
|
### 5. Service Window
|
|
138
139
|
- **Get:** Whether the Meta 24h customer-service window is open for a contact. ⚠️ Branch on `windowType`, not on `open`: on a **META** number `windowType` is `META_24H` and `open` is a real constraint (outside the window only an approved template goes through); on a **web/unofficial** number `windowType` is `NONE` and `open` is **always** `true`, because the Meta rule does not exist there.
|
|
139
140
|
|
|
141
|
+
### 8. Lead (Meta Lead Ads — Facebook / Instagram Instant Forms)
|
|
142
|
+
|
|
143
|
+
Read-only, and requires a **number-scoped API key**: a lead belongs to the number whose Page is linked in the dashboard.
|
|
144
|
+
|
|
145
|
+
- **Get Many:** `GET /v1/leads` — the number's leads, newest first by the time the person **submitted** the form. Filters: **Form ID**, **Ad ID**, **Page ID** (exact match), **Start Date** / **End Date** (Meta's `created_time`, not when Pilot Status received the lead), **Page**, **Page Size** (max 100). Answers `{ leads, total, page, pageSize, totalPages, notice? }`.
|
|
146
|
+
- **Get:** `GET /v1/leads/{id}` — one lead by its Pilot Status `id` (= `data.leadId` on the `lead.received` webhook, **not** Meta's `leadgenId`). Answers `{ lead, notice? }`; a lead of another number is `404 LEAD_NOT_FOUND`.
|
|
147
|
+
|
|
148
|
+
Each lead: `{ id, leadgenId, whatsappNumberId, pageId, pageName, formId, formName, adId, adName, adsetName, campaignName, platform, isOrganic, createdAt, fullName, email, phone, fields, consentGiven, conversationId, autoSendStatus, autoSendReason, source, redacted }`, with `fields` as `{ key, label, values }`. ⚠️ `consentGiven: null` means **unknown** (no consent checkbox configured, or not answered) — never read it as a refusal. On a **RELAY_ONLY** number a lead keeps its ids, attribution and status but comes back with `redacted: true` and no name, e-mail, phone or answers, and the response carries `notice: "PII_RELAY_ONLY"`.
|
|
149
|
+
|
|
140
150
|
### 7. Phone Line (identity verification + activation audio)
|
|
141
151
|
|
|
142
152
|
Requires a **workspace (tenant-scoped) API key** — a number-scoped key is refused. The verification operations need the **OWNER** role (`phone_lines:purchase`); the audio needs `phone_lines:read`. Errors come back as `{ error, code }`.
|
|
@@ -297,6 +297,7 @@ class PilotStatus {
|
|
|
297
297
|
{ name: 'Newsletter', value: 'newsletter' },
|
|
298
298
|
{ name: 'Analytics', value: 'analytics' },
|
|
299
299
|
{ name: 'Service Window', value: 'serviceWindow' },
|
|
300
|
+
{ name: 'Lead', value: 'lead' },
|
|
300
301
|
{ name: 'Remote Pairing', value: 'remotePairing' },
|
|
301
302
|
{ name: 'Call', value: 'call' },
|
|
302
303
|
{ name: 'Phone Line', value: 'phoneLine' },
|
|
@@ -1800,6 +1801,145 @@ class PilotStatus {
|
|
|
1800
1801
|
routing: { send: { type: 'query', property: 'destinationNumber' } },
|
|
1801
1802
|
},
|
|
1802
1803
|
// ----------------------------------
|
|
1804
|
+
// Lead Operations (Meta Lead Ads Instant Forms — Facebook / Instagram)
|
|
1805
|
+
// ----------------------------------
|
|
1806
|
+
// Read-only. Leads belong to the number whose Page is linked in the dashboard, so these
|
|
1807
|
+
// routes require a NUMBER-scoped API key (a workspace key is refused), like Get History.
|
|
1808
|
+
{
|
|
1809
|
+
displayName: 'Operation',
|
|
1810
|
+
name: 'operation',
|
|
1811
|
+
type: 'options',
|
|
1812
|
+
noDataExpression: true,
|
|
1813
|
+
displayOptions: { show: { resource: ['lead'] } },
|
|
1814
|
+
options: [
|
|
1815
|
+
{
|
|
1816
|
+
name: 'Get Many',
|
|
1817
|
+
value: 'getAll',
|
|
1818
|
+
description: 'List the leads captured from Meta Lead Ads Instant Forms (Facebook / Instagram) of the Pages linked to the key\'s number, newest first by the time the person SUBMITTED the form. Answers {leads, total, page, pageSize, totalPages, notice?}. ⚠️ consentGiven is three-state: null means UNKNOWN (no consent checkbox configured, or not answered) — never a refusal. On a RELAY_ONLY number a lead keeps its ids and attribution but comes back with redacted=true and no name, email, phone or answers, and the page carries notice=PII_RELAY_ONLY. Requires a number-scoped API key.',
|
|
1819
|
+
action: 'Get many leads',
|
|
1820
|
+
routing: { request: { method: 'GET', url: '/leads' } },
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
name: 'Get',
|
|
1824
|
+
value: 'get',
|
|
1825
|
+
description: 'One lead by its Pilot Status id — the `id` of Get Many, and the `leadId` of the lead.received webhook (NOT Meta\'s leadgenId). Answers {lead, notice?}. A lead of another number answers 404 LEAD_NOT_FOUND. Requires a number-scoped API key.',
|
|
1826
|
+
action: 'Get a lead',
|
|
1827
|
+
routing: { request: { method: 'GET', url: '=/leads/{{$parameter.leadId}}' } },
|
|
1828
|
+
},
|
|
1829
|
+
],
|
|
1830
|
+
default: 'getAll',
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
displayName: 'Lead ID',
|
|
1834
|
+
name: 'leadId',
|
|
1835
|
+
type: 'string',
|
|
1836
|
+
displayOptions: { show: { resource: ['lead'], operation: ['get'] } },
|
|
1837
|
+
default: '',
|
|
1838
|
+
required: true,
|
|
1839
|
+
description: 'Pilot Status lead id — `id` from Get Many or `data.leadId` from the lead.received webhook. Not Meta\'s leadgenId.',
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
displayName: 'Form ID',
|
|
1843
|
+
name: 'leadFormId',
|
|
1844
|
+
type: 'string',
|
|
1845
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1846
|
+
default: '',
|
|
1847
|
+
description: 'Only leads from this Meta Instant Form (exact match)',
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
displayName: 'Ad ID',
|
|
1851
|
+
name: 'leadAdId',
|
|
1852
|
+
type: 'string',
|
|
1853
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1854
|
+
default: '',
|
|
1855
|
+
description: 'Only leads attributed to this Meta ad (exact match)',
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
displayName: 'Page ID',
|
|
1859
|
+
name: 'leadPageId',
|
|
1860
|
+
type: 'string',
|
|
1861
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1862
|
+
default: '',
|
|
1863
|
+
description: 'Only leads from this Facebook Page (exact match)',
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
displayName: 'Start Date',
|
|
1867
|
+
name: 'leadStartDate',
|
|
1868
|
+
type: 'dateTime',
|
|
1869
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1870
|
+
default: '',
|
|
1871
|
+
description: 'Only leads submitted at or after this instant. Compared against Meta\'s created_time (when the person submitted the form), not when Pilot Status received it.',
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
displayName: 'End Date',
|
|
1875
|
+
name: 'leadEndDate',
|
|
1876
|
+
type: 'dateTime',
|
|
1877
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1878
|
+
default: '',
|
|
1879
|
+
description: 'Only leads submitted at or before this instant. Must not precede Start Date.',
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
displayName: 'Page',
|
|
1883
|
+
name: 'leadPage',
|
|
1884
|
+
type: 'number',
|
|
1885
|
+
typeOptions: { minValue: 1 },
|
|
1886
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1887
|
+
default: 1,
|
|
1888
|
+
routing: { send: { type: 'query', property: 'page' } },
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
displayName: 'Page Size',
|
|
1892
|
+
name: 'leadPageSize',
|
|
1893
|
+
type: 'number',
|
|
1894
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
1895
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1896
|
+
default: 30,
|
|
1897
|
+
description: 'Items per page (max 100)',
|
|
1898
|
+
routing: { send: { type: 'query', property: 'pageSize' } },
|
|
1899
|
+
},
|
|
1900
|
+
// Empty filters are omitted rather than sent as `?formId=`, and the dates are converted
|
|
1901
|
+
// to ISO 8601 — the n8n date picker hands over another format.
|
|
1902
|
+
{
|
|
1903
|
+
displayName: 'Form ID',
|
|
1904
|
+
name: 'leadFormIdNormalized',
|
|
1905
|
+
type: 'hidden',
|
|
1906
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1907
|
+
default: '={{ $parameter.leadFormId || undefined }}',
|
|
1908
|
+
routing: { send: { type: 'query', property: 'formId' } },
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
displayName: 'Ad ID',
|
|
1912
|
+
name: 'leadAdIdNormalized',
|
|
1913
|
+
type: 'hidden',
|
|
1914
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1915
|
+
default: '={{ $parameter.leadAdId || undefined }}',
|
|
1916
|
+
routing: { send: { type: 'query', property: 'adId' } },
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
displayName: 'Page ID',
|
|
1920
|
+
name: 'leadPageIdNormalized',
|
|
1921
|
+
type: 'hidden',
|
|
1922
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1923
|
+
default: '={{ $parameter.leadPageId || undefined }}',
|
|
1924
|
+
routing: { send: { type: 'query', property: 'pageId' } },
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
displayName: 'Start Date',
|
|
1928
|
+
name: 'leadStartDateNormalized',
|
|
1929
|
+
type: 'hidden',
|
|
1930
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1931
|
+
default: '={{ $parameter.leadStartDate ? new Date($parameter.leadStartDate).toISOString() : undefined }}',
|
|
1932
|
+
routing: { send: { type: 'query', property: 'startDate' } },
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
displayName: 'End Date',
|
|
1936
|
+
name: 'leadEndDateNormalized',
|
|
1937
|
+
type: 'hidden',
|
|
1938
|
+
displayOptions: { show: { resource: ['lead'], operation: ['getAll'] } },
|
|
1939
|
+
default: '={{ $parameter.leadEndDate ? new Date($parameter.leadEndDate).toISOString() : undefined }}',
|
|
1940
|
+
routing: { send: { type: 'query', property: 'endDate' } },
|
|
1941
|
+
},
|
|
1942
|
+
// ----------------------------------
|
|
1803
1943
|
// Remote Pairing Operations
|
|
1804
1944
|
// ----------------------------------
|
|
1805
1945
|
{
|
|
@@ -171,6 +171,13 @@ class PilotStatusTrigger {
|
|
|
171
171
|
// where the choice is made.
|
|
172
172
|
description: 'Answers of a submitted WhatsApp Flow. META numbers only: on any other number this subscribes to nothing and the Trigger never fires, with no error at activation. The data wrapper names the number whatsappNumberId, NOT numberId. On a Flow with a data_exchange endpoint the answers are in data.submitted, NOT in data.response — see the payload notice below before mapping anything.',
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
name: 'Lead Received',
|
|
176
|
+
value: 'lead.received',
|
|
177
|
+
// Offered on EVERY provider: the lead arrives on the Facebook PAGE, not through
|
|
178
|
+
// the number's provider, and is routed to the number its Page is linked to.
|
|
179
|
+
description: 'A lead from a Meta Lead Ads Instant Form (Facebook / Instagram), delivered on the number whose Page is linked in the dashboard — any provider. The data wrapper names the number whatsappNumberId, NOT numberId, and the lead id is data.leadId (the id GET /v1/leads/{id} takes), NOT Meta\'s leadgenId. consentGiven null means UNKNOWN, not a refusal.',
|
|
180
|
+
},
|
|
174
181
|
],
|
|
175
182
|
default: '*',
|
|
176
183
|
description: 'The event to listen to',
|
|
@@ -195,7 +202,7 @@ class PilotStatusTrigger {
|
|
|
195
202
|
name: 'payloadNotice',
|
|
196
203
|
type: 'notice',
|
|
197
204
|
default: '',
|
|
198
|
-
description: 'The full JSON body is passed through (event + data). Phones are E.164 with a leading "+"; message.* events carry from/to/numberId/id/messageId/type/createdAt and may include an optional correlationId. message.reply adds contentReplied and quotedMessageId. call.* events (WhatsApp Business Calling — Meta Cloud API and web/Pilot Status numbers; call.permission_updated is Meta-only) are FLAT — fields sit next to event with no data wrapper: { event, callId, externalCallId?, direction, status, from, to, timestamp, duration? }. externalCallId is the provider call id (Meta wacid or Evolution GO CallID). On every number.* event, data.numberId is the WhatsApp NUMBER id — the same id GET /v1/numbers returns and the other number operations take. It used to carry the underlying instance id on number.created/connected/removed, so a workflow that stored that value and matched later events against it never matched. flow.response_received (Meta numbers only) carries the submitted Flow answers under data: { event, flowId, metaFlowId, flowToken, messageId, whatsappNumberId, from, receivedAt, response, responseRaw, flowMedia, submitted }. Its number field is whatsappNumberId, NOT numberId — same value, different name, so a mapping copied from a message.* branch reads undefined. response and responseRaw are mutually exclusive: response holds what YOUR OWN Flow endpoint returned, already parsed, and responseRaw carries the raw bytes from Meta ONLY when that parse failed. On a Flow with a data_exchange endpoint response is EMPTY even on a number that stores everything — Meta\'s completion payload carries only the flow_token — and WHAT THE PERSON TYPED IS IN submitted: one entry per data_exchange screen, { screen, at, data, omitted }, in order, where omitted (DATA_TOO_LARGE, LIMIT_REACHED or UNREADABLE) says why a data is null. flowMedia holds the files attached inside the form: { field, fileName, mimeType, status, url }. Both submitted and flowMedia are null and NEVER [] when empty, so a node testing for an empty array never fires; GET /v1/flows/{id}/responses publishes the same two lists as arrays, under media and submitted.',
|
|
205
|
+
description: 'The full JSON body is passed through (event + data). Phones are E.164 with a leading "+"; message.* events carry from/to/numberId/id/messageId/type/createdAt and may include an optional correlationId. message.reply adds contentReplied and quotedMessageId. call.* events (WhatsApp Business Calling — Meta Cloud API and web/Pilot Status numbers; call.permission_updated is Meta-only) are FLAT — fields sit next to event with no data wrapper: { event, callId, externalCallId?, direction, status, from, to, timestamp, duration? }. externalCallId is the provider call id (Meta wacid or Evolution GO CallID). On every number.* event, data.numberId is the WhatsApp NUMBER id — the same id GET /v1/numbers returns and the other number operations take. It used to carry the underlying instance id on number.created/connected/removed, so a workflow that stored that value and matched later events against it never matched. flow.response_received (Meta numbers only) carries the submitted Flow answers under data: { event, flowId, metaFlowId, flowToken, messageId, whatsappNumberId, from, receivedAt, response, responseRaw, flowMedia, submitted }. Its number field is whatsappNumberId, NOT numberId — same value, different name, so a mapping copied from a message.* branch reads undefined. response and responseRaw are mutually exclusive: response holds what YOUR OWN Flow endpoint returned, already parsed, and responseRaw carries the raw bytes from Meta ONLY when that parse failed. On a Flow with a data_exchange endpoint response is EMPTY even on a number that stores everything — Meta\'s completion payload carries only the flow_token — and WHAT THE PERSON TYPED IS IN submitted: one entry per data_exchange screen, { screen, at, data, omitted }, in order, where omitted (DATA_TOO_LARGE, LIMIT_REACHED or UNREADABLE) says why a data is null. flowMedia holds the files attached inside the form: { field, fileName, mimeType, status, url }. Both submitted and flowMedia are null and NEVER [] when empty, so a node testing for an empty array never fires; GET /v1/flows/{id}/responses publishes the same two lists as arrays, under media and submitted. lead.received (Meta Lead Ads, any provider) carries the whole lead under data: { leadId, leadgenId, whatsappNumberId, pageId, pageName, formId, formName, adId, adsetId, campaignId, adName, adsetName, campaignName, platform, isOrganic, createdAt, fullName, email, phone, fields, consentGiven, conversationId }. leadId is the Pilot Status id (the one GET /v1/leads/{id} takes); leadgenId is Meta\'s, unique per lead — use it to deduplicate. createdAt is when the person SUBMITTED the form. fields holds every answer as { key, label?, values } and values is ALWAYS a list, even for one answer. consentGiven is true/false only when the form has a consent checkbox configured; null means UNKNOWN, never a refusal.',
|
|
199
206
|
},
|
|
200
207
|
],
|
|
201
208
|
};
|