> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adstellar.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# The Meta Instant Forms (lead forms) on a Facebook Page, live from Meta: id, name, lead count and whether the form has a privacy policy link (Meta refuses lead ads whose form has none). Use for Leads campaigns with conversionLocation INSTANT_FORMS: pass the chosen form's id as leadFormId to build_campaign. pageId comes from get_launch_options; it is optional when the ad account has exactly one Page.

> The Meta Instant Forms (lead forms) on a Facebook Page, live from Meta: id, name, lead count and whether the form has a privacy policy link (Meta refuses lead ads whose form has none). Use for Leads campaigns with conversionLocation INSTANT_FORMS: pass the chosen form's id as leadFormId to build_campaign. pageId comes from get_launch_options; it is optional when the ad account has exactly one Page.



## OpenAPI

````yaml /openapi.json post /tools/list_lead_forms
openapi: 3.1.0
info:
  title: AdStellar API
  version: 1.0.0
  description: >-
    Public REST API for AdStellar — creative generation, video generation,
    campaign management, and analytics. Every endpoint maps 1:1 to an AdStellar
    MCP tool.
servers:
  - url: https://app.adstellar.ai/api/v1
security: []
paths:
  /tools/list_lead_forms:
    post:
      summary: >-
        The Meta Instant Forms (lead forms) on a Facebook Page, live from Meta:
        id, name, lead count and whether the form has a privacy policy link
        (Meta refuses lead ads whose form has none). Use for Leads campaigns
        with conversionLocation INSTANT_FORMS: pass the chosen form's id as
        leadFormId to build_campaign. pageId comes from get_launch_options; it
        is optional when the ad account has exactly one Page.
      description: >-
        The Meta Instant Forms (lead forms) on a Facebook Page, live from Meta:
        id, name, lead count and whether the form has a privacy policy link
        (Meta refuses lead ads whose form has none). Use for Leads campaigns
        with conversionLocation INSTANT_FORMS: pass the chosen form's id as
        leadFormId to build_campaign. pageId comes from get_launch_options; it
        is optional when the ad account has exactly one Page.
      operationId: list_lead_forms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                adAccountId:
                  type: string
                  minLength: 1
                  description: Meta ad account id from list_ad_accounts (e.g. act_123).
                pageId:
                  description: >-
                    Facebook Page id from get_launch_options. Optional when the
                    account has one Page.
                  type: string
                workspaceId:
                  description: >-
                    Workspace to act in (must be granted to this credential).
                    Omit for the primary workspace.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
              required:
                - adAccountId
              additionalProperties: false
      responses:
        '200':
          description: Tool result
        '401':
          description: Missing or invalid API key
        '403':
          description: Missing required scope
        '429':
          description: Rate limit exceeded
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: AdStellar API key (ast_live_...)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.