Create lead ads subscription

POST {{baseUrl}}/ad_accounts/:ad_account_id/leads/subscriptions

Create a lead ads webhook subscription. - Only requests for the OWNER or ADMIN of the adaccount will be allowed. - Advertisers can set up multiple integrations using adaccountid + leadform_id but only one integration per unique records.

This endpoint is currently in beta and not available to all apps. Learn more.

Request Body

{"webhook_url"=>"<string>", "lead_form_id"=>"04746525", "partner_access_token"=>"<string>", "partner_refresh_token"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;00092&quot;,&quot;cryptographic_key&quot;:&quot;\u003cstring\u003e&quot;,&quot;cryptographic_algorithm&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_time&quot;:&quot;\u003cinteger\u003e&quot;}