This guide is designed to support Business Messaging Partners in completing the technical integration for the Conversions API for WhatsApp, Messenger or Instagram on behalf of their clients. It covers:Documentation Index
Fetch the complete documentation index at: https://meta-preview.mintlify.io/llms.txt
Use this file to discover all available pages before exploring further.
- Pre-integration requirements
- Integration steps
- Sending events via the Conversions API
- Verifying events with Events Manager
Note: The Conversions API also enables advertisers to send website, app, offline (including physical store) and CRM events to Meta. Currently, Business Messaging Partners that have integrated with the Conversions API for other use cases still need to go through the following steps for integration with the Conversions API for Business Messaging.
Ads That Click to Messenger
Pre-integration Requirements
Before getting started with any integration, it’s necessary to ensure the right technical foundations are established and relevant access is granted for specific assets and platforms.Create a Facebook developer app
If you don’t already have one, follow the instructions to create one.Integrate with the Messenger API
Have advanced access to:
page_eventspermission- You will need to apply for advanced access for
page_eventspermission in the “Permissions and Features” section of the developer App Dashboard. If you already have advanced access forpages_messagingpermission, your app should be automatically approved forpage_eventspermission after you apply.
- You will need to apply for advanced access for
- “Ads Management Standard Access” feature. Extra guidance is included here.
- To be eligible for the Advanced Access feature, you need to make a total of 1500 successful Marketing API calls with an error rate of less than 10% in the past 15 days. This includes calls made through the Conversions API by a user with a role on the app.
Integration Steps
1. Get Access Token In order to call the Dataset API and the Conversions API, you need an access token with the necessary permissions:page_events
page_id and access_token to create a dataset by making a POST call to the Dataset API. If there is already an existing dataset_id associated with the page, it will return that id. Sample call below:
dataset_id. Using this and the access token from Facebook Login for Business, you can now call the Conversions API to send messaging events to Meta.
Note: If the Page is associated with a business account and the
business_management permission is granted on the business account, the dataset will show up under the business account. Otherwise, it will be hidden from the advertiser.PSID) is an identifier that represents the user in a user<>business conversation. This identifier is exposed via the Messages webhook and used throughout the send/receive API. This is also used in the Conversions API when sending conversion events mapped to a particular user (PSID).
Make sure you know the PSID for the Page you want to report signals for.
Send Events via the Conversions API
In the final stage of integration, it is now possible to send events via the Conversions API with all information (access_token, page_id, dataset_id, PSID) obtained in the previous steps.
During the campaign period, as events happen in real time, notify Meta of these events via the Conversions API using the dataset_id and access_token. Make a POST request to this API:
Verifying Events with Events Manager
After an event has been sent to Meta over the Conversions API successfully, you should be able to see that event reflected in Events Manager for the particular dataset. You can learn more about Events Manager and its usage here.Note: If you are a partner, you will need to instruct your advertiser on how to access their dataset in their Events Manager in order to verify that the events are received.
Ads That Click to WhatsApp
Pre-integration Requirements
Before getting started with any integration, it’s necessary to ensure the right technical foundations are established and relevant access is granted for specific assets and platforms.Create a Facebook developer app
If you don’t already have one, follow the instructions to create one.Have advanced access to:
whatsapp_business_managementpermission- “Ads Management Standard Access” feature to allow your app to access the Marketing API. Extra guidance is included here.
- To be eligible for the Advanced Access feature, you need to make a total of 1500 successful Marketing API calls with an error rate of less than 10% in the past 15 days. This includes calls made through the Conversions API by a user with a role on the app.
Be integrated with one of the two WhatsApp Business Platform integration options:
- Cloud API, hosted by Meta (recommended)
- On-Premises API (*Biz API version: 2.45.1):
ctwa_clid, which is a required field for sending events over the Conversions API, is only available in the messages webhook on Biz API versions 2.45.1 and beyond. Note: WhatsApp Business Platform is fully transitioning to our next-generation Cloud API over the next 2 years. The final supported version of the On-Premise API client will expire on October 23, 2025. Learn more.
Integration Steps
1. Get Access Token In order to call Dataset API and the Conversions API, you need an access token with the necessary permission:whatsapp_business_management
waba_id) can be obtained on completion of Embedded Signup flow. See details.
3. Set Up Dataset API
When sharing event data to Meta via the Conversions API, Meta needs to know the source that is associated with those events. Datasets allow Meta Business Solutions Partners to connect and manage event data from different sources — such as a client’s website, mobile app, physical store location or business chats — in one place. You can learn more about datasets here. Datasets are owned by the client, and can be accessed by Meta Business Solutions Partners with necessary permissions.
You can use the whatsapp_business_account_id and access_token to create a dataset by making a POST call to the Dataset API. If there is already an existing dataset_id associated with the Whatsapp Business Account, it will return that ID. Sample call below:
GET call to the Dataset API with the whatsapp_business_account_id and access_token. Sample call below:
dataset_id. We now have the dataset set up and ready for use. Next, you will need to retrieve the ctwa_clid that’s required to make a Conversions API call to send an event.
4. Retrieve Click-to-WhatsApp Click ID
The Click-to-WhatsApp Click ID (ctwa_clid) is a personal identifier, unique per click, that is exposed to the business when the user entering the conversation originated from a click to WhatsApp ad. This identifier needs to be sent back to Meta via the Conversions API call (see below section for reference).
The ctwa_clid field is obtained from the referral object under Messages webhook (Cloud API | On Premise).
Upon receiving the ctwa_clid, store it with the conversation. When a conversion has happened within a conversation, send the corresponding ctwa_clid via the Conversions API. Here’s a sample received message with a referral object containing a ctwa_clid:
Send Events via the Conversions API
In the final stage of integration, it is now possible to send events via the Conversions API with all information (waba_id, dataset_id, ctwa_clid) obtained in the previous steps.
During an advertiser’s campaign period, events happen in real time. Notify Meta of these events via the Conversions API using dataset_id and access token. Make a POST request to this API:
Verifying Events with Events Manager
After an event has been sent to Meta over the Conversions API successfully, you should be able to see that event reflected in Events Manager for the particular dataset. You can learn more about Events Manager and its usage here.Note: If you are a partner, you will need to instruct your advertiser on how to access their dataset in their Events Manager in order to verify that the events are received.
Ads That Click to Instagram Direct
Pre-integration Requirements
Before getting started with any integration, it’s necessary to ensure the right technical foundations are established and relevant access is granted for specific assets and platforms.Create a Facebook developer app
If you don’t already have one, follow the instructions to create one.Integrate with the Messenger API
Have advanced access to:
instagram_manage_eventspermission- You will need to apply for advanced access for
instagram_manage_eventspermission in the “Permissions and Features” section of the developer App Dashboard. If you already have advanced access forinstagram_manage_messagespermission, your app should be automatically approved forinstagram_manage_eventspermission..
- You will need to apply for advanced access for
- “Ads Management Standard Access” feature. Extra guidance is included here.
- To be eligible for the Advanced Access feature, you need to make a total of 1500 successful Marketing API calls with an error rate of less than 10% in the past 15 days. This includes calls made through the Conversions API by a user with a role on the app.
Integration Steps
1. Get Access Token In order to call the Dataset API and the Conversions API, you need an access token with the necessary permissions:instagram_manage_events
instagram_user_id for the Instagram account you want to report events for.
3. Set Up Dataset
When sharing event data to Meta via the Conversions API, Meta needs to know the source that is associated with those events. Datasets allow you to connect and manage event data from different sources–such as your website, mobile app, physical store location or business chats–in one place. You can learn more about datasets here.
Datasets are created either through a partner platform or directly on Events Manager. The business owns the dataset, and if the business is working with a partner, access to the dataset will also be granted to the partner.
Use the instagram_user_id and access_token to create a dataset by making a POST call to the Dataset API. If there is already an existing dataset_id associated with the IG user, it will return that ID. Sample call below:
dataset_id. Using this and the access token from Facebook Login for Business, you can now call the Conversions API to send messaging events to Meta.
4. Retrieve Instagram-scoped ID (IGSID)
Instagram-scoped ID (IGSID) is an identifier that represents the user in a user<>business conversation. This identifier is exposed via the Messages webhook and used throughout the send/receive API. This is also used in the Conversions API when sending conversion events mapped to a particular user (IGSID) (see next section for details).
Make sure you know the IGSID for the Instagram account you want to report events for.
Send Events via the Conversions API
In the final stage of integration, you can now send events via the Conversions API with all information (dataset_id, access token, instagram_user_id, IGSID) obtained in the previous steps.
During the campaign period, as events happen in real time, notify Meta of these events via the Conversions API using dataset_id and access token. Make a POST request to this API:
Verifying Events with Events Manager
After an event has been sent to Meta over the Conversions API successfully, you should be able to see that event reflected in Events Manager for the particular dataset. You can learn more about Events Manager and its usage here.Note: If you are a partner, you will need to instruct your advertiser on how to access their dataset in their Events Manager in order to verify that the events are received.
Frequently Asked Questions
What type of messaging events does the Conversions API for Business Messaging support? A: The Conversions API for Business Messaging now supports the following types of events for business messaging:- Purchase
- LeadSubmitted
- InitiateCheckout
- AddToCart
- ViewContent
- OrderCreated
- OrderShipped
- OrderDelivered
- OrderCanceled
- OrderReturned
- CartAbandoned
- QualifiedLead
- RatingProvided
- ReviewProvided