{
  "opencollection": "1.0.0",
  "info": {
    "name": "Meta Marketing API - Lead Ads Bulk Leads API",
    "version": "v22.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.facebook.com/v22.0/dialog/oauth",
      "accessTokenUrl": "https://graph.facebook.com/v22.0/oauth/access_token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Leads",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List leads captured by a form",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v22.0/:form-id/leads",
            "params": [
              {
                "name": "form-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of fields to return."
              },
              {
                "name": "filtering",
                "value": "",
                "type": "query",
                "description": "JSON-encoded filter list, e.g. by time_created."
              }
            ]
          },
          "docs": "List leads captured by a form"
        },
        {
          "info": {
            "name": "List leads for an ad",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v22.0/:ad-id/leads",
            "params": [
              {
                "name": "ad-id",
                "value": "",
                "type": "path"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Comma-separated list of fields to return."
              }
            ]
          },
          "docs": "List leads for an ad"
        }
      ]
    }
  ],
  "bundled": true
}