Starting from Conversions API Gateway and Signals Gateway v2.2.0, up-to-date versions of the Control Plane API reference docs, including examples with sample data, can be accessed inside your gateway UI. To find these docs:
Onboards a new Meta Pixel to the “Gateway Products” product Conversions API Gateway or Signals Gateway.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation AddNewPixelModalMutation(
$tenantId: ID!
$input: PixelConnectionCreationInput!
) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
setupPixelSignalConfig(input: $input) {
id
domains
connectionId
connectionStatus {
id
accessTokenAvailable
active
connected
eventBridgeActive
publishingEnabled
apiErrorCode
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input PixelConnectionCreationInput {
businessId: String!
pixelId: String!
accessToken: String!
apiVersion: String
externalId: String!
name: String
}
| Field | Description |
|---|---|
| Required Unique identifier of the account |
PixelConnectionCreationInput
| Field | Description |
|---|---|
| Required The business id of the account |
| Required The Pixel id that needs to be integrated |
| Required Access token from MBE setup or manually generated from Events Manager |
| Optional Latest API Version for Graph API |
| Required This should be the same as |
| Optional Name of the Pixel |
| Field | Description |
|---|---|
| Pixel Configurations |
| Code | Description |
|---|---|
400 | Invalid input provided |
401 | User is not authorized to set up Pixel configuration |
500 | Internal server error |
Mutation
mutation AddNewPixelModalMutation(
$tenantId: ID!
$input: PixelConnectionCreationInput!
) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
setupPixelSignalConfig(input: $input) {
id
domains
connectionId
connectionStatus {
id
accessTokenAvailable
active
eventBridgeActive
publishingEnabled
apiErrorCode
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
Variables
{
"tenantId": "IaoreXfj",
"input": {
"pixelId": "18904456377094531",
"businessId": "2840127409433732",
"accessToken": "<accessToken>",
"apiVersion": "v14.0",
"externalId": "633612748410ba6e902"
}
}
{
"data": {
"tenantMutations": {
"signalMutations": {
"setupPixelSignalConfig": {
"id": "SignalConfig:18904456377094531",
"domains": [],
"connectionId": "18904456377094531",
"connectionStatus": {
"id": "ConnectionStatus:18904456377094531",
"accessTokenAvailable": true,
"active": true,
"eventBridgeActive": true,
"publishingEnabled": true,
"apiErrorCode": null,
"pixelID": "18904456377094531",
"pixelName": null,
"lastPublished": 0.0,
"totalEventsPublished": 0.0,
"lastReceived": 0.0,
"totalEventsReceived": 0.0
}
}
}
}
}
}
Deletes an existing Pixel from the Gateway.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation DeleteDataSourceModalMutation(
$id: ID!
$tenantId: ID!
) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
deleteDataSource(id: $id)
}
}
}
_________________________________________________________________________________________________________
id: ID!
_____________________________________________________________________________________________________________
tenantId: ID!
| Field | Description |
|---|---|
| Required The Pixel ID |
| Required |
| Field | Description |
|---|---|
Boolean | Indicates whether the Pixel has been successfully deleted |
| Code | Description |
|---|---|
401 | User is not authorized to remove Pixel configuration. |
404 | Pixel not found. |
500 | Internal server error |
Mutation
mutation DeleteDataSourceModalMutation(
$id: ID!
$tenantId: ID!
) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
deleteDataSource(id: $id)
}
}
}
Variables
{
"id":"18904456377094531",
"tenantId":"IaoreXfj"
}
{
"data": {
"tenantMutations": {
"signalMutations": {
"deleteDataSource": true
}
}
}
}
Get a list of all the Meta Pixel that have been successfully onboarded to the Conversions API Gateway.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
query ConnectionStatusCardQuery(
$tenantId: ID!
$timeWindow: Int
) {
tenantQueries(tenantId: $tenantId) {
account(timeWindowMin: $timeWindow) {
name
status
signalConfigs {
id
connectionId
dataSetType
domains
connectionStatus {
id
accessTokenAvailable
active
targetId
eventBridgeActive
publishingEnabled
apiErrorCode
badToken
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_____________________________________________________________________________________________________________
timeWindow: Int
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Time window in minutes (Default value is 60 minutes) |
Account
| Field | Description |
|---|---|
| Account status |
| List of Meta Pixel configurations |
| Code | Description |
|---|---|
401 | Not authorized to view event metrics |
500 | Internal server error |
Query
query ConnectionStatusCardQuery(
$tenantId: ID!
$timeWindow: Int
) {
tenantQueries(tenantId: $tenantId) {
account(timeWindowMin: $timeWindow) {
name
status
signalConfigs {
id
connectionId
dataSetType
domains
connectionStatus {
id
accessTokenAvailable
active
targetId
eventBridgeActive
publishingEnabled
apiErrorCode
badToken
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
{
"tenantId": "zilSRUW7",
"timeWindow": 60
}
"data": {
"tenantQueries": {
"account": {
"signalConfigs": [
{
"connectionStatus": {
"id": "ConnectionStatus:319279634094583",
"accessTokenAvailable": true,
"active": true,
"eventBridgeActive": true,
"publishingEnabled": true,
"apiErrorCode": null,
"badToken": false,
"targetId": "",
"pixelID": "319279634094583",
"pixelName": "",
"lastPublished": 0.0,
"totalEventsPublished": 0.0,
"lastReceived": 0.0,
"totalEventsReceived": 0.0
},
"id": "SignalConfig:319279634094583",
"dataSetType": "PIXEL"
},
{
"connectionStatus": {
"id": "ConnectionStatus:824710156172809",
"accessTokenAvailable": true,
"active": true,
"eventBridgeActive": true,
"publishingEnabled": true,
"apiErrorCode": null,
"badToken": false,
"targetId": "",
"pixelID": "824710156172809",
"pixelName": "",
"lastPublished": 0.0,
"totalEventsPublished": 0.0,
"lastReceived": 0.0,
"totalEventsReceived": 0.0
},
"id": "SignalConfig:824710156172809",
"dataSetType": "PIXEL"
},
{
"connectionStatus": {
"id": "ConnectionStatus:1429427071255793",
"accessTokenAvailable": true,
"active": true,
"eventBridgeActive": true,
"publishingEnabled": true,
"apiErrorCode": null,
"badToken": false,
"targetId": "",
"pixelID": "1429427071255793",
"pixelName": "",
"lastPublished": 0.0,
"totalEventsPublished": 0.0,
"lastReceived": 0.0,
"totalEventsReceived": 0.0
},
"id": "SignalConfig:1429427071255793",
"dataSetType": "PIXEL"
}
],
"name": "Tenant for test@meta.com"
}
}
}
}
Changes Gateway’s Pixel event receiving status.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateSignalConfigStatusMutation(
$id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
updateSignalConfigEventsStatus(id: $id, input: $input) {
success
connectionStatus {
id
accessTokenAvailable
active
connected
eventBridgeActive
publishingEnabled
apiErrorCode
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
_________________________________________________________________________________________________________
id: ID!
_____________________________________________________________________________________________________________
tenantId: ID!
________________________________________________________________________________________________________
input SignalConfigStatusInput {
status: Int!
}
| Field | Description |
|---|---|
| Required Pixel ID which needs to be configured |
| Required |
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| Required
|
UpdateSignalConfigStatusPayload
| Field | Description |
|---|---|
| Indicates whether the operation on Pixel was successful |
| Pixel connection configuration |
| Code | Description |
|---|---|
401 | Not authorized to perform action on the Pixel |
500 | Internal server error |
Mutation
mutation updateSignalConfigStatusMutation(
$id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
updateSignalConfigEventsStatus(id: $id, input: $input) {
success
connectionStatus {
id
connected
active
eventBridgeActive
publishingEnabled
}
}
}
}
}
Variables
{
"id": "18904456377094531",
"tenantId": "IaoreXfj",
"input": {
"status": 1
}
}
{
"data": {
"tenantMutations": {
"signalMutations": {
"updateSignalConfigEventsStatus": {
"success": true,
"connectionStatus": {
"id": "ConnectionStatus:18904456377094531",
"connected": true,
"active": true,
"eventBridgeActive": true,
"publishingEnabled": true
}
}
}
}
}
}
Changes Pixel’s event publishing status. If deactivated, Gateway will discard received events and not publish them to Meta.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateSignalConfigCapiPublishMutation(
$id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
updateSignalConfigCapiPublish(id: $id, input: $input) {
success
connectionStatus {
id
accessTokenAvailable
active
connected
eventBridgeActive
publishingEnabled
apiErrorCode
pixelID
pixelName
lastPublished
totalEventsPublished
lastReceived
totalEventsReceived
}
}
}
}
}
_________________________________________________________________________________________________________
id: ID!
_____________________________________________________________________________________________________________
tenantId: ID!
________________________________________________________________________________________________________
input SignalConfigStatusInput {
status: Int!
}
| Field | Description |
|---|---|
| Required Pixel ID which needs to be configured |
| Required |
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| Required
|
UpdateSignalConfigStatusPayload
| Field | Description |
|---|---|
| Indicates whether the operation on Pixel was successful |
| Pixel connection configuration |
| Code | Description |
|---|---|
401 | Not authorized to perform action on the Pixel |
500 | Internal server error |
Mutation
mutation updateSignalConfigCapiPublishMutation(
$id: ID!, $tenantId: ID!, $input: SignalConfigStatusInput!) {
tenantMutations(tenantId: $tenantId) {
signalMutations {
updateSignalConfigCapiPublish(id: $id, input: $input) {
success
connectionStatus {
id
active
eventBridgeActive
publishingEnabled
}
}
}
}
}
Variables
{
"id": "18904456377094531",
"tenantId": "IaoreXfj",
"input": {
"status": 0
}
}
{
"data": {
"tenantMutations": {
"signalMutations": {
"updateSignalConfigCapiPublish": {
"success": true,
"connectionStatus": {
"id": "ConnectionStatus:18904456377094531",
"active": false,
"eventBridgeActive": true,
"publishingEnabled": false
}
}
}
}
}
}
Changes Pixel’s event publishing status by event name and Pixel ID. If deactivated, Gateway Products will discard these events and not publish them to Meta.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation EventFilterStatusMutation($tenantId: ID!, $input: UpdateEventFilterInput!) {
tenantMutations(tenantId: $tenantId) {
updateEventFilter(input: $input) {
updatedFilter {
id
eventName
pixelId
filterState
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_____________________________________________________________________________________________________________
input UpdateEventFilterInput {
eventName: String!
pixelIds: [String!]
filterState: EventFilterState!
}
| Field | Description |
|---|---|
| Required |
| Field | Description |
|---|---|
| Required Name of the event to be filtered |
| Optional List of Pixel IDs where the filter needs to be applied. If null is provided, all the Pixels for the account will be updated |
| Required State of the filter |
UpdateEventFilterResult
| Field | Description |
|---|---|
| Updated Event Filter |
| Code | Description |
|---|---|
401 | Not authorized to update event filters |
500 | Internal server error |
Mutation
mutation EventFilterStatusMutation($tenantId: ID!, $input: UpdateEventFilterInput!) {
tenantMutations(tenantId: $tenantId) {
updateEventFilter(input: $input) {
updatedFilter {
eventName
pixelId
filterState
}
}
}
}
Variables
{
"tenantId": "IaoreXfj",
"input": {
"eventName": "AddToCart",
"pixelIds": ["18904456377094531"],
"filterState": "PUBLISH"
}
}
{
"data": {
"tenantMutations": {
"updateEventFilter": {
"updatedFilter": {
"eventName": "AddToCart",
"pixelId": "18904456377094531",
"filterState": "PUBLISH"
}
}
}
}
}
Blocks receiving of events from specific websites.
POST https://{capig_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation useComitDomainFilterChangeMutation($tenantId: ID!, $input: UpdateDomainFilterInput!) {
tenantMutations(tenantId: $tenantId) {
updateDomainFilter(input: $input) {
updatedFilter {
id
domain
pixelId
filterState
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_____________________________________________________________________________________________________________
input UpdateDomainFilterInput {
domain: String!
pixelIds: [String!]
filterState: DomainFilterState!
}
| Field | Description |
|---|---|
| Required |
| Field | Description |
|---|---|
| Required Name of the domain to be filtered Format should be: example.com |
| Optional List of Pixel IDs where the filter needs to be applied |
| Required State of the filter |
UpdateDomainFilterResult
| Field | Description |
|---|---|
| Domain filter object |
| Code | Description |
|---|---|
401 | Not authorized to update domain filters |
500 | Internal server error |
Mutation
mutation useComitDomainFilterChangeMutation($tenantId: ID!, $input: UpdateDomainFilterInput!) {
tenantMutations(tenantId: $tenantId) {
updateDomainFilter(input: $input) {
updatedFilter {
id
domain
pixelId
filterState
}
}
}
}
Variables
{
"tenantId": "IaoreXfj",
"input": {
"domain": "example.com",
"filterState": "DROP"
}
}
"data": {
"tenantMutations": {
"updateDomainFilter": {
"updatedFilter": {
"id": "DomainFilter:example.com:global",
"domain": "example.com",
"pixelId": null,
"filterState": "DROP"
}
}
}
}