Conversions API Gateway and Signals Gateway 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 Products” Conversions API Gateway or Signals 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.
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 Conversions API Gateway instance
Step 2: Generate API account name and API secret key
Go to:
https://<Gateway Products 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'll 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:
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.
Provide the API account name and API secret key obtained in Step 2 of the prerequisites to get a short-lived access token for making subsequent control plane API calls. Note that the token expires in 10 hours and will need to be obtained again by calling this API.
Sample Request
curl -X POST \
-F 'client_id={client_id}' \
-F 'client_secret={client_secret}' \
-F 'grant_type=client_credentials' \
'https://<capig_domain>/clients/token'Sample Response
{
"token": <token>
}Available Parameters
| Field | Description |
|---|---|
type: string | Required API account name obtained in Step 2 of prerequisites. |
type: string | Required API secret key obtained in Step 2 of prerequisites. |