AdnovaDocs
Ad Launcher

List lead-gen forms

Active lead-gen forms attached to a Facebook Page. Pass the form id into a launch payload's ads[].leadGenFormId for lead-gen ads.

GET
/meta/ad-accounts/{adAccountId}/leadgen-forms

Authentication

authentication
api-key<token>

Create an API key from the Adnova dashboard (Account integrations). Pass the key value in the api-key request header on every call.

In: header

Path Parameters

adAccountId*string
Length1 <= length

Query Parameters

facebookPageId*string

Facebook Page whose lead-gen forms you want to list. Get this from List ad profiles.

Length1 <= length

Header Parameters

x-workspace-id*string

Workspace the request operates in. Get it from List workspaces.

Length1 <= length
x-org-id*string

Organization context (required on every endpoint). For lookup endpoints the org is derived from the ad account in the URL, so any org id you have access to is accepted.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.adnova.ai/ad-launcher/v1/meta/ad-accounts/string/leadgen-forms?facebookPageId=string" \  -H "x-workspace-id: string" \  -H "x-org-id: string"
{
  "forms": [
    {
      "id": "8888888888888888",
      "name": "string",
      "status": "string"
    }
  ],
  "hasPermission": true,
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}
{
  "error": {
    "code": "string",
    "message": "string"
  },
  "message": "string"
}