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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"00092","cryptographic_key":"\u003cstring\u003e","cryptographic_algorithm":"\u003cstring\u003e","created_time":"\u003cinteger\u003e"}