advertising
List leads for a single form
Returns leads for one form. Serves persisted leads (ingested via the leadgen webhook) when available, falling back to a live Graph read.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
formIdstring
Query Parameters
accountIdstring
limit?integer
Default
25Range
1 <= value <= 100cursor?string
since?integer
Unix seconds.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.ads.listFormLeads({ path: { formId: 'form_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"status": "success",
"leads": [
{
"id": "string",
"createdTime": "string",
"adId": "string",
"formId": "string",
"fields": {
"property1": "string",
"property2": "string"
},
"fieldData": [
{}
]
}
],
"pagination": {
"hasMore": true,
"cursor": "string"
}
}{
"error": "Unauthorized"
}Archive a lead form DELETE
Meta has no hard delete for forms; this archives the form (status=ARCHIVED).
List submitted leads GET
Returns persisted Meta Lead Gen leads for your team, newest-first, with keyset pagination on `cursor`. Leads are ingested in real time from the `leadgen` webhook. Requires the Ads add-on.