cURL
curl --request POST \ --url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#FACEBOOK_ADS_CREATE_LEAD_GEN_FORM' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "FACEBOOK_ADS_CREATE_LEAD_GEN_FORM", "parameters": { "name": "<string>", "page": "<string>", "followUpActionText": "<string>", "followUpActionUrl": "<string>", "privacyPolicyUrl": "<string>", "questionJson": {}, "contextCard": {} } } '
Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
Name
The Facebook Page that the creative will be uploaded for
Follow Up Action Text : The displayed label on the follow up action when the user completes the form.
Follow-up Action URL : Set a destination for the Follow Up Action Text when clicked.
Privacy Policy URL : Set a destination for the Privacy Policy.
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" } ]")
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": {} }")
Success
Was this page helpful?