Onboards a new Meta Pixel to the Conversions API 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 accessKey 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 } } } }
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 accessKey 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 accessKey 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 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" } } } }