API Reference
Subscribe the app to webhooks
/v27.0/{app_id}/subscriptionshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comSubscribes the app to a webhook object. Meta first sends GET {callback_url}?hub.mode=subscribe&hub.challenge=<int>&hub.verify_token=…; your endpoint must answer the challenge. Notifications of page/leadgen are sent only when the Page also installed the app (POST /{page_id}/subscribed_apps). Use the app token.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the app (the sandbox app id).
Body
application/x-www-form-urlencodedObject type. Mimicr supports page and ad_account.
pagead_accountYour HTTPS endpoint. It must answer the verification request.
Comma-separated fields: leadgen for page; field_changed, with_issues_ad_objects, in_process_ad_objects for ad_account.
Token echoed in hub.verify_token of the verification request.
Responses
200OK.
true when the change was applied.
400Error in the Graph envelope: 2200 callback verification failed, 15 not an app token.
Show child attributes
Description of the error.
"(#100) The parameter special_ad_categories is required"OAuthException for most codes (the Marketing API uses it for validation too), GraphMethodException for unknown objects, FacebookApiException for transient errors. In Mimicr, routes outside the integration core answer MimicrNotSimulated with HTTP 501.
"OAuthException"Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).
100Error subcode with more detail (1885272 budget too low, 463 token expired, …).
1885272Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.
Title of the error, to show to people.
Message of the error, to show to people.
Extra data. blame_field_specs lists the params that caused a validation error.
Show child attributes
Internal support identifier of the request.
"AbCdEf12345"