Create a gateway data pipeline in Signals Gateway and return the information of the created pipeline.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation createDataPipelineMutation(
$tenantId: ID!
$name: String!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
createPipeline(name: $name) {
id
name
active
dataSources {
id
type
}
dataDestinations {
id
type
}
dataFilter {
filterStatus
blockedEventTypes
}
pipelineDestinationFilters {
id
destinationId
destinationFilterStatus
destinationFilterBlockedEventTypes
}
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
name: String!
| Field | Description |
|---|---|
| Required |
| Required |
Pipeline
| Field | Description |
|---|---|
| The created data pipeline object contains the ID, name, type, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view event metrics |
500 | Internal server error |
Query
mutation createDataPipelineMutation(
$tenantId: ID!
$name: String!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
createPipeline(name: $name) {
id
name
active
dataSources {
id
type
}
dataDestinations {
id
type
}
dataFilter {
filterStatus
blockedEventTypes
}
pipelineDestinationFilters {
id
destinationId
destinationFilterStatus
destinationFilterBlockedEventTypes
}
}
}
}
}
{
"tenantId": "zilSRUW7",
"name": "Pipeline C7P2ZR"
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"createPipeline": {
"id": "sg_v1_pl_c280b69f-7a8f-486b-a5d0-1018d9bf41bc",
"name": "Pipeline C7P2ZR",
"active": true,
"dataSources": [],
"dataDestinations": []
"dataFilter": {
"filterStatus": false,
"blockedEventTypes": []
},
"pipelineDestinationFilters": []
}
}
}
}
}
Create a Meta Conversions API data pipeline in Signals Gateway by connecting with a Meta pixel, and return the information of the created pipeline.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation CreatePipelineAndConnectMetaCAPIMutation(
$tenantId: ID!
$pipelineName: String
$pixelId: ID!
$businessId: String!
$accessToken: String!
$apiVersion: String
$externalId: String!
$createOB: Boolean
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
createConversionApiGatewayPipeline(pipelineName: $pipelineName, pixelId: $pixelId, businessId: $businessId, accessToken: $accessToken, apiVersion: $apiVersion, externalId: $externalId, createOB: $createOB) {
id
name
active
dataSources {
id
type
}
dataDestinations {
id
type
}
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
name: String
_________________________________________________________________________________________________________
pixelId: String
_________________________________________________________________________________________________________
businessId: String
_________________________________________________________________________________________________________
accessToken: String
_________________________________________________________________________________________________________
apiVersion: String
_________________________________________________________________________________________________________
externalId: String
_________________________________________________________________________________________________________
createOB: Boolean
_________________________________________________________________________________________________________
| Field | Description |
|---|---|
| Required Unique identifier for the account. |
| Name of the data pipeline. Optional field. If not provided, the system will generate a default name. |
| Required The Pixel ID that needs to be integrated. |
| Required The business ID of the account. |
| Required Access token from Meta Business Extension (MBE) setup or manually generated from Meta Events Manager. |
| Latest API Version for Graph API. |
| Required This should be the same as external_business_id in setup object. |
| Whether to create the events routing connection with Meta. Default and recommended to be true. |
Pipeline
| Field | Description |
|---|---|
| The created data pipeline object contains the ID, name, type, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view event metrics |
500 | Internal server error |
Query
mutation CreatePipelineAndConnectMetaCAPIMutation(
$tenantId: ID!
$pipelineName: String
$pixelId: ID!
$businessId: String!
$accessToken: String!
$apiVersion: String
$externalId: String!
$createOB: Boolean
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
createConversionApiGatewayPipeline(pipelineName: $pipelineName, pixelId: $pixelId, businessId: $businessId, accessToken: $accessToken, apiVersion: $apiVersion, externalId: $externalId, createOB: $createOB) {
id
name
active
dataSources {
id
type
}
dataDestinations {
id
type
}
dataFilter {
filterStatus
blockedEventTypes
}
pipelineDestinationFilters {
id
destinationId
destinationFilterStatus
destinationFilterBlockedEventTypes
}
}
}
}
}
{
"tenantId": "IaoreXfj",
"pipelineName": "Conversions API Gateway (258139843760841)",
"pixelId": "258139843760841",
"businessId": "858087751506464",
"accessToken": "EAA2N8HVqMR4BO0KniGrDM7sngbW3OBKBgol1YbfvCDwp9S0UZALO1JgbB8yv3ZBJfYvjjUNpGn1WOVZANfQMZC5mkLZAyfmhu78Kd0GTxgpBs5raaqItv6DyBBddBUUMfkZBVeLC0EkDuZBnlsVxZA8aygZAvdp1MHV3V9Y0aYEEjfjyQDYkPezEtwZCgvgKzoE2bAtKf98FimAxakZA9sf",
"apiVersion": "v17.0",
"externalId": "157f0f83-7d3e-4380-b704-4ff67f03a3de",
"createOB": true
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"createConversionApiGatewayPipeline": {
"id": "sg_v1_pl_ad286034-eeec-469b-a036-72d88e87b8cc",
"name": "Conversions API Gateway (258139843760841)",
"active": true,
"dataSources": [
{
"id": "258139843760841",
"type": "META_PIXEL"
}
],
"dataDestinations": [
{
"id": "sg_v1_dd_cc40dd55-070b-4deb-8f6a-63876c1ab0d7",
"type": "META_CONVERSIONS_API"
}
],
"dataFilter": {
"filterStatus": false,
"blockedEventTypes": []
},
"pipelineDestinationFilters": []
}
}
}
}
}
The query to get the data pipeline with associated data sources, data destination and data filters corresponding to a unique identifier input.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
query DataPipelineQuery(
$tenantId: ID!
$id: ID!
) {
tenantQueries(tenantId: $tenantId) {
pipeline(id: $id) {
id
name
active
type
dataSources {
id
name
type
active
}
dataDestinations {
id
name
type
active
associatedPipelines {
id
name
type
}
metaCAPIConfig {
dataSetId
}
}
dataFilter {
blockedEventTypes
}
pipelineDestinationFilters {
id
destinationId
destinationFilterBlockedEventTypes
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
id: ID!
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Required Unique identifier for the data pipeline |
| Field | Description |
|---|---|
| The data pipeline details fetched by the query |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
query DataPipelineDetailsQuery(
$tenantId: ID!
$id: ID!
) {
tenantQueries(tenantId: $tenantId) {
pipeline(id: $id) {
id
name
active
type
dataSources {
id
name
type
active
}
dataDestinations {
id
name
type
active
associatedPipelines {
id
name
type
}
metaCAPIConfig {
dataSetId
}
}
dataFilter {
blockedEventTypes
}
pipelineDestinationFilters {
id
destinationId
destinationFilterBlockedEventTypes
}
}
}
}
{
"tenantId": "IaoreXfj",
"id": "sg_v1_pl_1a8c443d-9ace-440e-9eb7-147322344723"
}
{
"data": {
"tenantQueries": {
"pipeline": {
"id": "sg_v1_pl_1a8c443d-9ace-440e-9eb7-147322344723",
"name": "Pipeline V2E9XB",
"active": true,
"type": "GATEWAY_PIPELINE",
"dataSources": [
{
"id": "1347507641242739748",
"name": "Gateway-party App SDK Q2EX6D",
"type": "ADVERTISER_HOSTED_SDK",
"active": true
},
{
"id": "8855778841440572825",
"name": "Gateway-party Pixel MZUY4L",
"type": "ADVERTISER_HOSTED_PIXEL",
"active": true
}
],
"dataDestinations": [],
"dataFilter": {
"blockedEventTypes": [
"AchievementUnlocked"
]
},
"pipelineDestinationFilters": []
}
}
}
}
The mutation to update a data pipeline in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateDataPipelineMutation(
$tenantId: ID!
$input: PipelineInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipeline(input: $input) {
id
active
name
}
}
}
}
________________________________________________________________________________________________________
tenantId: ID!
________________________________________________________________________________________________________
input PipelineInput {
id: ID!
name: String
active: Boolean
}
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Required The fields from the data pipeline to update |
| Field | Description |
|---|---|
| Required Unique identifier for the data pipeline |
| Updated name of the data pipeline |
| The status of the data pipeline indicates if the pipeline is active or not |
| Field | Description |
|---|---|
| The data pipeline object |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Mutation
mutation updateDataPipelineMutation(
$tenantId: ID!
$input: PipelineInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipeline(input: $input) {
id
active
name
}
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"id": "sg_v1_pl_ad286034-eeec-469b-a036-72d88e87b8cc",
"active": false
}
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"updatePipeline": {
"id": "sg_v1_pl_ad286034-eeec-469b-a036-72d88e87b8cc",
"active": false,
"name": "Conversions API Gateway (258139843760841)"
}
}
}
}
}
The mutation to delete an existing data pipeline in the Signals Gateway. The request can work for both gateway data pipelines and Meta Conversions API data pipelines.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation useDeleteDataPipelineMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
deletePipeline(id: $id)
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
id: ID!
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Required Unique identifier for the data pipeline |
| Unique identifier for the deleted data pipeline |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation useDeleteDataPipelineMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
deletePipeline(id: $id)
}
}
}
{
"tenantId": "IaoreXfj",
"id": "sg_v1_pl_0fd7ac39-42b7-416f-ab6a-39d923eaa4d8"
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"deletePipeline": "sg_v1_pl_0fd7ac39-42b7-416f-ab6a-39d923eaa4d8"
}
}
}
}
The mutation to update a data pipeline filter to block selected event types in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation AddNewFilterModal_updatePipelineFilterMutation(
$tenantId: ID!
$input: PipelineFilterInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipelineFilter(input: $input) {
filterStatus
blockedEventTypes
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input PipelineFilterInput {
pipelineId: ID!
filterStatus: Boolean
blockedEventTypes: [String]
}
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Required The fields from the data pipeline to update |
| Field | Description |
|---|---|
| Required Unique identifier for the data pipeline. |
| The status of the data pipeline filter indicates if the filter is active or not. |
| A list of event types which will be dropped from the data pipeline. |
| Field | Description |
|---|---|
| The data pipeline object |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation AddNewFilterModal_updatePipelineFilterMutation(
$tenantId: ID!
$input: PipelineFilterInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipelineFilter(input: $input) {
filterStatus
blockedEventTypes
}
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"pipelineId": "sg_v1_pl_1a8c443d-9ace-440e-9eb7-147322344723",
"blockedEventTypes": [
"AchievementUnlocked"
]
}
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"updatePipelineFilter": {
"filterStatus": false,
"blockedEventTypes": [
"AchievementUnlocked"
]
}
}
}
}
}
The mutation to update a data destination which belongs to a specific data pipeline filter to block selected event types.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation AddNewPipelineDestinationFilterModal_updatePipelineDestinationFilterMutation(
$tenantId: ID!
$input: PipelineDestinationFilterInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipelineDestinationFilter(input: $input) {
id
destinationId
destinationFilterStatus
destinationFilterBlockedEventTypes
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input PipelineDestinationFilterInput {
pipelineId: ID!
destinationId: ID!
destinationFilterBlockedEventTypes: [String]
}
| Field | Description |
|---|---|
| Required Unique identifier for the account |
Required The input data to filter the blocked event types |
| Field | Description |
|---|---|
| Required Unique identifier for the data pipeline. |
| The status of the data pipeline filter indicates if the filter is active or not. |
| A list of event types that will be dropped from the data pipeline. |
| Field | Description |
|---|---|
| The data pipeline destination filter object contains a list of blocked event types |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation AddNewPipelineDestinationFilterModal_updatePipelineDestinationFilterMutation(
$tenantId: ID!
$input: PipelineDestinationFilterInput!
) {
tenantMutations(tenantId: $tenantId) {
dataPipelineMutations {
updatePipelineDestinationFilter(input: $input) {
id
destinationId
destinationFilterStatus
destinationFilterBlockedEventTypes
}
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"pipelineId": "sg_v1_pl_48e22997-24c6-4f69-9da7-ae82657f1fdd",
"destinationId": "sg_v1_dd_553fbb56-5348-4553-8215-0ced4a835ff3",
"destinationFilterBlockedEventTypes": [
"AddToCart"
]
}
}
{
"data": {
"tenantMutations": {
"dataPipelineMutations": {
"updatePipelineDestinationFilter": {
"id": "pipelineDestinationFilter:sg_v1_pl_48e22997-24c6-4f69-9da7-ae82657f1fdd:sg_v1_dd_553fbb56-5348-4553-8215-0ced4a835ff3",
"destinationId": "sg_v1_dd_553fbb56-5348-4553-8215-0ced4a835ff3",
"destinationFilterStatus": true,
"destinationFilterBlockedEventTypes": [
"AddToCart"
]
}
}
}
}
}