Meta Conversions API (CAPI) Explained for Small Businesses
What the Meta Conversions API does, the four ways to set it up (including the Gateway), how to generate an access token, and how it works for WhatsApp chats.

The Meta Conversions API (CAPI) sends the actions customers take, such as a lead, a sign-up or a purchase, from your server, shop platform, CRM or messaging tool straight to Meta, so your ads can be measured and optimised even when a browser pixel misses them. You can switch it on in one click for a website that already has the pixel, connect it through a partner, run Meta’s Conversions API Gateway in your own cloud account, or have a developer build it.
This guide explains what CAPI is for, compares the four setup routes, shows how to generate the access token, and covers the version that matters most for WhatsApp sellers: Conversions API for business messaging.
Key takeaways
- CAPI is a server-to-server connection. Meta says its data is less affected than the pixel by browser loading errors, connectivity issues and ad blockers.
- There are four routes: Meta-enabled Conversions API (one click, web only), partner integrations, the Conversions API Gateway (no code, your own AWS or Google Cloud account) and a direct integration built by a developer.
- The access token comes from Events Manager: open your dataset, go to Settings and click Generate access token. You need developer privileges on the business to see the link.
- For WhatsApp chats, events go to a dataset linked to your WhatsApp Business Account, with
action_sourceset tobusiness_messaging, and the token needs thewhatsapp_business_manage_eventspermission. - A direct integration can send up to 1,000 events per request, and Meta refuses a request if any event is more than 7 days old.
What the Conversions API does
Meta describes the Conversions API as a direct connection between your marketing data and the systems that optimise ad targeting, lower cost per result and measure outcomes. The data can come from your server, a website platform, an app or a CRM, and it can cover four kinds of event: website, app, offline (in a shop, on a call) and business messaging (in a Messenger, Instagram or WhatsApp chat).
For a small business, the practical gains are these, as Meta lists them:
- Fewer missed events. A pixel runs in the visitor’s browser, so ad blockers and slow pages can stop it. CAPI sends from your side.
- Later steps count. A sale confirmed on the phone, a subscription renewed or an order paid in a chat can be reported, not just the click.
- Better matching. You can add customer details, hashed, that help Meta link an event to a person who saw your ad. Meta scores this as Event Match Quality, out of 10, currently for web events only.
CAPI doesn’t bypass privacy rules. Meta says it isn’t designed to get around the iOS App Tracking Transparency framework or European rules such as the ePrivacy Directive, so the consent you need for the pixel still applies. If you’re new to all this, set up the pixel first with our Meta Pixel guide, which also covers how the pixel and CAPI differ.
Four ways to set up the Meta Conversions API
Meta’s Help Centre compares the options by cost, effort and what they can send. Here’s the short version:
| Route | What it is | Effort and cost (per Meta) | Events it can send |
|---|---|---|---|
| Meta-enabled Conversions API | A server-side copy of your pixel events, switched on from Events Manager | One click, free; needs a Meta Pixel | Website only |
| Partner integration | Your shop platform, tag manager, CRM or messaging platform sends the events | Depends on the partner; commerce platforms such as Shopify or WooCommerce take a few clicks at no extra cost | Depends on the partner |
| Conversions API Gateway | Meta’s no-code server package, run in your own AWS or Google Cloud account | Self-serve; Meta says under 30 minutes, with cloud fees from $30 a month that vary by region and traffic | Website |
| Direct integration | Your developer posts events to Meta’s API | 2 to 4 weeks for a new build, per Meta; you pay for development and upkeep | Website, app, offline, CRM and business messaging |
Two rules of thumb follow from Meta’s own guidance. If your website runs on a commerce platform that supports CAPI, use that partner first, because it’s the simplest. And if you want app or in-store events through CAPI, a direct integration is the only option at the moment.
For a partner integration, follow the partner’s steps in Events Manager. Meta notes that some partners are set up inside Events Manager and others on the partner’s own website.
How to generate a Meta Conversions API access token
Every direct call to the API carries an access token. Most partner integrations create their own, so you only need this if you or a developer are building the connection, or a tool asks you to paste one. Meta’s recommended way:
- Open Meta Events Manager and choose the pixel or dataset you want to send events to.
- Select the Settings tab.
- In the Conversions API section, under Set up manually, click Generate access token and follow the pop-up.
- Copy the token and store it somewhere safe, such as your server’s secret settings. Treat it like a password.
Meta notes that the Generate access token link only shows for people with developer privileges on the business. If you can’t see it, ask an admin of your business portfolio. Behind the scenes Meta creates a Conversions API app and a system user, and you don’t need App Review or extra permissions.
The other route is your own system user: in Business Settings, assign the pixel to a system user, select that user and click Generate Token. Meta adds that tokens made in Events Manager are no longer tied to the newest Graph API version; since v12.0 they work with every available version.
Meta Conversions API Gateway: is it worth it?
The Gateway sits in the middle of the table above. You choose it under data connection platforms in Events Manager, it creates a server in a cloud account your business owns, and your pixel sends events to both Meta and that server. No code is needed, though you’ll set up a web address (DNS) for it. Meta lists these benefits: quick setup, automatic deduplication between browser and server events, automatic updates, and support for several businesses from one setup.
Meta says the Gateway suits you when all of these are true:
- You already use the Meta Pixel.
- You don’t send web events through the Conversions API yet.
- You spend more than $300 a month on campaigns that optimise for web events.
- You aren’t on a commerce platform such as Shopify, WooCommerce or BigCommerce. If you are, use that partner’s integration instead.
If your ads open WhatsApp rather than a website, the Gateway doesn’t help much: it handles website events, and a Click-to-WhatsApp customer never loads your pages.
What a direct integration sends
If you hand this to a developer, these are the facts from Meta’s developer guide they’ll work with:
- Endpoint:
POST https://graph.facebook.com/v27.0/<PIXEL_ID>/eventswith your access token. - Body: a
dataarray of events. Each hasevent_name(for examplePurchase),event_timein Unix seconds,action_source(for examplewebsite),user_datawith customer details, and optionalcustom_datasuch asvalueandcurrency. - Batching: up to 1,000 events in one request.
- Timing:
event_timecan be up to 7 days in the past. If any event in a request is older, the whole request fails. Meta recommends sending within an hour of the action. - Hashing: some customer details, such as email and phone, must be hashed before sending. Meta’s Business SDKs do this for you.
- Testing: add a
test_event_codefrom the Test events tab and watch events arrive. Remove it afterwards. Meta says you should see events within about 20 minutes.
If the pixel and the server both send the same purchase, Meta needs to know it’s one sale. Give both the same event_name and the same event ID (eventID in the pixel, event_id in CAPI). Meta discards the later copy when they arrive within 48 hours of the first. The Gateway and the one-click Meta-enabled setup handle this for you.
Conversions API for WhatsApp chats
Meta has a version of CAPI for business messaging, built for ads that click to WhatsApp, Messenger or Instagram. It’s how a lead or a sale that happens inside a WhatsApp chat gets back to Ads Manager. It differs from the website setup in a few ways:
| Website events | WhatsApp chat events | |
|---|---|---|
| Where events go | Your pixel or dataset | A dataset linked to your WhatsApp Business Account |
action_source | website | business_messaging, plus messaging_channel set to whatsapp |
| How Meta matches the person | Hashed details, cookies such as fbp and fbc | The ad’s click ID (ctwa_clid) from the first message, with a hashed-details fallback in some countries |
| Token permissions | Created by Events Manager or a system user | whatsapp_business_management and whatsapp_business_manage_events |
| Duplicates | Meta deduplicates pixel and server copies | Meta doesn’t; the sender must avoid duplicates |
Meta also says messaging events should only describe things that happened in the chat. A purchase on your website goes through the website setup, even if the customer first came through WhatsApp. The list of messaging event names, such as LeadSubmitted and Purchase, is in our Facebook ads standard events guide, and the click ID is explained in how to track which ads bring WhatsApp customers.
In practice, you rarely build this yourself. Meta’s guide is written for messaging partners, which connect your WhatsApp account and send the events for you.
Setting up the Conversions API in Automate AI
Automate AI is one of those messaging platforms. Under Integrations › Conversions API, an owner or manager can connect it in a few steps:
- Dataset: click Fetch / create dataset. It finds the Click-to-WhatsApp dataset of your connected WhatsApp Business Account, or creates one if you don’t have it. You can also paste a dataset ID from Events Manager.
- Token: click Use WhatsApp connection to reuse your WhatsApp connection’s token, or choose a manual token generated in Events Manager under your dataset’s Settings › Conversions API, or a system-user token with
whatsapp_business_manage_events. A pasted token is stored encrypted and shown masked. - Events: turn on the ones you want: Lead / conversation started (when a Click-to-WhatsApp contact first messages you), Purchase (Shopify orders) (a paid Shopify order matched to that contact), Custom flow events (a Conversion Event step in a chatbot flow) and Status change events (a contact moves into a status you’ve mapped to a Meta event in Settings › Statuses).
- Options: a default currency, an attribution window for Purchase and status-change events (7 days unless you change it, up to 90; the Lead is sent at the click itself), and Include hashed customer info, which adds SHA-256 hashed email and phone. It’s off by default, and you need your customers’ consent to use it.
- Test: paste a code from Test events in Events Manager, click Send test event, then switch Enabled on and save.
Events are only sent for contacts who have messaged you from a Click-to-WhatsApp ad, so contacts who never came from an ad are never reported. Purchase and status events also need the ad click to be inside your attribution window. The page shows the connection’s health, deliveries in the last 7 days and recent events, including the error Meta returned if it refused one. Shopify and chatbot flows are part of the AI + Automation Plan and Series 4 on the pricing page. The ad builder itself is on the Click-to-WhatsApp Ads feature page, and every connection is listed on Integrations.
Which route should you pick?
| Your situation | Start with |
|---|---|
| Website on Shopify, WooCommerce, Wix or similar | That platform’s Meta integration |
| Custom website with the pixel, no developer | Meta-enabled Conversions API, or the Gateway if you spend enough to justify cloud fees |
| Ads that open WhatsApp | Your WhatsApp platform’s Conversions API connection |
| App or in-store sales | A direct integration |
Whichever you choose, check Test events in Events Manager before you rely on the numbers, and change one thing at a time so you can tell what moved your results. All our Meta ads guides are on the Meta Ads hub.
Frequently asked questions
Is the Meta Conversions API free?
It depends on the route. Meta lists the one-click Meta-enabled setup as free, and says commerce platform integrations come at no additional cost. The Gateway costs whatever your cloud account charges, and a direct integration costs developer time.
Where do I find my Conversions API access token?
In Meta Events Manager, open your pixel or dataset, go to Settings, and under Conversions API click Generate access token. The link only shows if you have developer privileges on the business.
Do I need the pixel if I use the Conversions API?
For website events, Meta recommends using both, with matching event names and IDs so a sale isn’t counted twice. For WhatsApp chats there’s no pixel; events come only through the Conversions API.
What is the Conversions API Gateway?
A no-code option in Events Manager that runs a small server in your own AWS or Google Cloud account and sends your pixel’s website events to Meta from that server too.
How old can an event be?
Up to 7 days. If any event in a request is older, Meta rejects the whole request, so send events as soon as they happen.
Can the Conversions API report sales from WhatsApp chats?
Yes, through Conversions API for business messaging, using the click ID from the ad. Automate AI sends these events from Integrations › Conversions API once you connect a dataset.
Sources
- Meta Business Help Centre: About Conversions API
- Meta Business Help Centre: Compare Conversions API setup options
- Meta Business Help Centre: About Conversions API Gateway
- Meta for Developers: Get started with the Conversions API
- Meta for Developers: Using the Conversions API
- Meta for Developers: Handling duplicate pixel and server events
- Meta for Developers: Conversions API for Business Messaging
WhatsApp rules and prices change. We check these guides against Meta’s documentation, but always confirm current terms with Meta before you rely on them. Questions? Message us on WhatsApp at +91 836 977 8812.


