API Reference
Send events
/v27.0/{dataset_id}/eventshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comSends up to 1,000 server events to a dataset. Requires ads_management and access to the dataset's account (whatsapp_business_manage_events for WhatsApp business-messaging events).
If any event is invalid, the request returns an error; valid events with an event_id are still stored, and resending drops them as duplicates. Unhashed customer data is accepted with a warning in messages and doesn't match.
In Mimicr, each event gets an outcome visible in the console and the control API: matched_click (a ctwa_clid of a sandbox click-to-WhatsApp click, or the fbclid of fbc from a sandbox web click, up to 28 days old), matched_user, unmatched, duplicate or rejected. Matched purchases show up in the ad's insights.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the dataset (pixel, or the WABA dataset).
"100539998049733"Body
application/x-www-form-urlencodedThe events (up to 1,000).
Show child attributes
Standard (Purchase, Lead, …) or custom event name.
"Purchase"UNIX seconds (GMT). More than 7 days in the past (62 for physical_store) fails the whole request (100/2804003); more than 1 h in the future, 100/2804004.
1794028091Your id of the event, used for deduplication (event_name + event_id). In Mimicr, ids starting with rejeitar- are rejected (100/2804050) and nomatch- are stored unmatched.
Where the conversion happened.
emailwebsiteappphone_callchatphysical_storesystem_generatedbusiness_messagingotherRequired for business_messaging.
whatsappmessengerinstagramURL of the page. Required for website.
Customer information. em, ph, fn, ln, ge, db, ct, st, zp, country and external_id must be SHA-256 lowercase hex (one value or an array); the rest is sent as is.
Show child attributes
Email, hashed.
Phone with country code, digits only, hashed.
First name, hashed.
Last name, hashed.
City, hashed.
State, hashed.
Zip code, hashed.
Country, hashed.
Your id for the customer, hashed. Alone it doesn't count as an identifier for WhatsApp events.
Click ID: fb.1.<ms>.<fbclid>.
Browser ID (_fbp cookie).
IP of the browser.
User agent of the browser. Required for website events.
Click ID of a click-to-WhatsApp ad (referral.ctwa_clid). Requires whatsapp_business_account_id.
ID of the WhatsApp Business account of the conversation.
ID of the Page. Required for WhatsApp events without ctwa_clid.
Page-scoped user ID.
currency, value and other custom data. value requires currency.
Show child attributes
["LDU"] with data_processing_options_country and _state.
Code of the Test events tool. Test events are flagged, still counted.
Partner identifier (stored).
Stored.
Stored.
Stored.
Stored.
Responses
200OK.
Number of events received, duplicates included.
Warnings (unhashed fields, …).
400Error in the Graph envelope: 100/2804003 event too old, 100/2804004 event in the future, 100/2804050 insufficient customer information, 100/2804051 WhatsApp event without ctwa_clid and page_id, 100 invalid event.
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"