15. Integrations
15.1 List Integrations
GET /api/v1/integrations
List available integrations.
Response:
[
{
"id": "int-001",
"type": "facebook",
"name": "Facebook Lead Ads",
"status": "connected",
"config": {
"pageId": "123456789",
"formCount": 3
},
"lastSync": "2026-06-05T17:30:00Z"
}
]
15.2 Facebook - Get Pages
GET /api/v1/integrations/facebook/pages
List connected Facebook pages.
Response:
[
{
"id": "page-001",
"name": "Acme Business",
"followers": 5000,
"connected": true,
"formCount": 2
}
]
15.3 Facebook - Sync Leads
POST /api/v1/integrations/facebook/leads/sync
Manually sync Facebook leads.
Request Body:
{
"pageId": "page-001",
"formId": "form-001"
}
Response: 202
{
"syncId": "sync-001",
"status": "processing",
"estimatedCount": 50
}