Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Create a new lead gen form on a Facebook page
POST https://services.leadconnectorhq.com/ad-publishing/facebook/page/{pageId}/forms

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

pageId
string
default:"103456789012345"
required
Facebook page identifier

Body

type
string
default:"MORE_VOLUME"
required
Lead form type Posibles valores: ‘MORE_VOLUME’, ‘HIGHER_INTENT’
name
string
default:"Contact Form"
required
Lead form name
locationId
string
default:"loc_abc123"
required
Account identifier
greetingCard
object
Greeting card config
questions
object[]
required
List of questions displayed on the lead form
questionPageHeadline
string
default:"Tell us about yourself"
Question page headline
Privacy policy URL
privacyPolicyText
string
default:"We respect your privacy"
Privacy policy text
customDisclaimer
object
Custom disclaimer config
thankYouPage
object
required
Thank you page config

Respuestas

{}
{}
{}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/ad-publishing/facebook/page/YOUR_pageId/forms' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "MORE_VOLUME",
  "name": "Contact Form",
  "locationId": "loc_abc123",
  "questions": [
    {
      "key": "full_name",
      "type": "FULL_NAME",
      "options": []
    },
    {
      "key": "email_address",
      "type": "EMAIL",
      "options": []
    },
    {
      "key": "are_you_interested",
      "label": "Are you interested?",
      "type": "CUSTOM",
      "options": [
        {
          "value": "Yes"
        },
        {
          "value": "No"
        }
      ]
    }
  ],
  "questionPageHeadline": "Tell us about yourself",
  "privacyPolicyLink": "https://example.com/privacy",
  "privacyPolicyText": "We respect your privacy"
}'