Conversions API Gateway for multiple accounts control plane API is a set of GraphQL APIs exposed from the Gateway instance. It allows developers to programmatically manage accounts, data sources and other configurations of a Gateway instance. Partners can integrate the API to build into their advertiser-facing UI and offer their advertisers a seamless onboarding and management flow.
Potential use cases:
Refer to the section below for more details on integration steps.
Conversions API Gateway for multiple accounts control plane API or Gateway are interchangeably used in this document.
Depending on the use case, there can be two integration paths (as shown in the diagram below):
For both integration paths, the partner needs to first complete the steps below:
Step 1: Onboard as a host of Gateway instance
Step 2: Generate API account name and API secret key
Go to:
https://<Conversions API Gateway Endpoint>/hub/
Navigate to the Host settings Tab, select the Manage API accounts Page, and click the Add API account button.
Re-enter your password. Click Continue.
Enter the name of the API account. Click Continue.
The account name can only consist of letters and numbers, and cannot contain spaces. The maximum length is 20.
Copy and save the generated secret key. You will not be able to view it again.
To remove an API account, click Delete API account. Kindly note that the action is not reversible and can potentially cause disruptions to any advertiser’s applications or services using the API.
A use case based on partial integration:
A high-level user flow may look like below:
To achieve the above, the partner can integrate a subset of control plane API, including:
A use case based on full integration:
A high-level user flow may look like below:
For this integration path, partners need to request authorization and get system user access tokens via authentication in order to send events on behalf of the advertisers.
Partners have the following two authentication options for Meta Pixels not managed by them:
Before you start, you need to:
Complete all the requirements for implementing MBE
MBE provides an endpoint to retrieve system user access tokens created in the advertiser’s Business Manager. Partners may follow up to Step 4 of the MBE integration guide. Ensure that you:
CONVERSIONS_API_GATEWAY_ADVERTISER
.external_business_id
, pixel_id
, business_id
and system user access token in your system.With this option, partners may have the advertisers:
pixel_id
, business_id
and system user access token with the partner and save a copy of it.Partners can integrate the complete set of control plane API. Further details are covered in the API Reference.
We are enforcing API and UI parity by exposing the same API endpoints used in the Gateway UI. However, any API endpoint not covered in the API Reference is subject to change in future development. In order to limit the unexpected impact to the minimum, those uncovered API endpoints return Error code: 418. You can still use the API but at your own risk.