ads
List Lead Gen (Instant) forms
Lists the Lead Gen forms owned by the connected Facebook Page. Requires the Ads add-on.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
accountIdstring
Connected facebook account id.
limit?integer
Default
25Range
1 <= value <= 100cursor?string
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.listLeadForms({ query: { accountId: 'account_abc123', },});console.log(data);{
"status": "success",
"forms": [
{}
],
"pagination": {
"hasMore": true,
"cursor": "string"
}
}{
"error": "Unauthorized"
}Empty
List leads for a single form GET
Returns leads for one form. Serves persisted leads (ingested via the leadgen webhook) when available, falling back to a live Graph read.
List submitted leads (cross-form CRM view) 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.