API Reference
Debug a token
/v27.0/debug_tokenhttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comReturns the metadata of input_token: app, type (USER, PAGE, SYSTEM_USER), expiry, validity, permissions and granular_scopes (the ad accounts, Pages and businesses each permission covers). Call it with the app token or a token of a developer of the app. An invalid token returns is_valid: false with error {code, subcode, message}.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Query parameters
The token to inspect.
Responses
200OK.
Show child attributes
ID of the app the token belongs to.
Type of the token.
USERPAGESYSTEM_USERAPPName of the app.
UNIX time the data access expires.
UNIX time the token expires; 0 for tokens that never expire (system users).
Whether the token is valid now.
UNIX time the token was issued.
Granted permissions.
Assets each permission covers (ad account ids without act_, Page ids, business ids).
Show child attributes
ID of the user.
Why the token is invalid (code, subcode, message).
400Error in the Graph envelope.
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"