Skip to main content

List Facebook Lead Ads Pages

GET 

/api/integrations/:integration_id/facebook_leadads/pages

List Facebook pages for a connected Facebook Lead Ads integration.

This endpoint fetches all Facebook pages that the user has authorized during OAuth. Use this endpoint in Flow Builder dropdowns when configuring Lead Ads trigger to allow users to select which specific page to monitor for lead form submissions.

Args: integration_id: The ID of the Facebook Lead Ads integration

Returns: List of pages with id, name, and access_token

Example: GET /api/integrations/abc-123/facebook_leadads/pages Returns: [ {"id": "123456", "name": "My Business Page", "access_token": "page_token_..."}, {"id": "789012", "name": "Another Page", "access_token": "page_token_..."} ]

Flow Builder Usage:

  1. User selects "Facebook Lead Ads" as trigger in Flow Builder
  2. Flow Builder calls this endpoint to populate "Select Page" dropdown
  3. User selects a page
  4. Flow Builder then calls the lead_forms endpoint for that page

Request

Responses

Successful Response