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

# Create Lead Gen Form



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#FACEBOOK_ADS_CREATE_LEAD_GEN_FORM
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#FACEBOOK_ADS_CREATE_LEAD_GEN_FORM:
    post:
      summary: Create Lead Gen Form
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: FACEBOOK_ADS_CREATE_LEAD_GEN_FORM
                parameters:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Name
                    page:
                      type: string
                      description: The Facebook Page that the creative will be uploaded for
                    followUpActionText:
                      type: string
                      description: >-
                        Follow Up Action Text : The displayed label on the
                        follow up action when the user completes the form.
                    followUpActionUrl:
                      type: string
                      description: >-
                        Follow-up Action URL : Set a destination for the Follow
                        Up Action Text when clicked.
                    privacyPolicyUrl:
                      type: string
                      description: >-
                        Privacy Policy URL : Set a destination for the Privacy
                        Policy.
                    contextCard:
                      type: object
                      description: >-
                        Form Greeting/Context Card JSON : Specify a context card
                        to be included at the beginning of this form, using the
                        LeadGenContextCard
                        (https://github.com/nmggithub/fbsdk-ts/blob/master/src/graph-api/types.ts#L2387-L2400)
                        object. (example: "{
                          "title": "",
                          "style": "PARAGRAPH_STYLE",
                          "content": {}
                        }")
                      properties: {}
                    questionJson:
                      type: object
                      description: >-
                        Questions JSON : Specify questions to be included in
                        this form, using the LeadGenQuestion
                        (https://developers.facebook.com/docs/marketing-api/guides/lead-ads/create#adding_questions)
                        object. (example: "[
                            { "type": "EMAIL" },
                            { "type": "CUSTOM" }
                          ]")
                      properties: {}
                  required:
                    - name
                    - page
                    - followUpActionText
                    - followUpActionUrl
                    - privacyPolicyUrl
                    - questionJson
                  x-integration: facebookAds
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````