POST https://{signals_gateway_domain}/capig/graphql/
mutation useCreateDataSourceForPipelineMutation(
$tenantId: ID!
$id: ID
$name: String!
$type: DataSourceType!
$pipelineId: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
createDataSourceForPipeline(
dataSourceId: $id,
name: $name,
dataSourceType: $type,
pipelineId: $pipelineId
) {
id
name
type
active
}
}
}
}
tenantId: ID!
name: String!
dataSourceType: DataSourceType
pipelineId: ID
dataSourceId: ID
| Field | Description |
|---|---|
tenantIDID | Required Unique identifier for the account |
nameString | Required Name of the gateway data source |
Required Data source type | |
pipelineIdID | Required Unique identifier for the data pipeline which contains the data source |
dataSourceIdString | Optional data source identifier |
| Field | Description |
|---|---|
The created data source object contains the ID, name, type, status, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view event metrics |
500 | Internal server error |
mutation createDataSourceForPipelineMutation(
$tenantId: ID!
$id: ID
$name: String!
$type: DataSourceType!
$pipelineId: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
createDataSourceForPipeline(dataSourceId: $id, name: $name, dataSourceType: $type, pipelineId: $pipelineId) {
id
name
type
active
}
}
}
}
{
"tenantId": "zilSRUW7",
"id": null,
"name": "Signals Gateway Pixel 2JP0NH",
"type": "ADVERTISER_HOSTED_PIXEL",
"pipelineId": "sg_v1_pl_91c615ad-eea2-4151-93f7-daf89cd16154"
}
{
"data": {
"tenantMutations": {
"dataSourceMutations": {
"createDataSourceForPipeline": {
"id": "2898835581810297486",
"name": "Signals Gateway Pixel 2JP0NH",
"type": "ADVERTISER_HOSTED_PIXEL",
"active": true
}
}
}
}
}
POST https://{signals_gateway_domain}/capig/graphql/
query dataSourceTableQuery(
$tenantId: ID!
) {
tenantQueries(tenantId: $tenantId) {
dataSourcesQuery {
id
name
active
type
associatedPipelines {
id
name
type
}
}
}
}
tenantId: ID!
| Field | Description |
|---|---|
tenantIdID | Required Unique identifier for the account |
| Field | Description |
|---|---|
A list of data source objects contains the ID, name, type, status, etc |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
query dataSourceTableQuery(
$tenantId: ID!
) {
tenantQueries(tenantId: $tenantId) {
dataSourcesQuery {
id
name
active
type
associatedPipelines {
id
name
type
}
}
}
}
{
"tenantId": "IaoreXfj"
}
{
"data": {
"tenantQueries": {
"dataSourcesQuery": [
{
"id": "1347507641242739748",
"name": "First-party App SDK Q2EX6D",
"active": true,
"type": "ADVERTISER_HOSTED_SDK",
"associatedPipelines": [
{
"id": "sg_v1_pl_1a8c443d-9ace-440e-9eb7-147322344723",
"name": "Pipeline V2E9XB",
"type": "GATEWAY_PIPELINE"
}
]
},
{
"id": "1369557203321383366",
"name": "First-party Pixel KFLU08",
"active": true,
"type": "ADVERTISER_HOSTED_PIXEL",
"associatedPipelines": [
{
"id": "sg_v1_pl_69816497-e27a-4cea-ac29-6f6014754ce7",
"name": "Pipeline E9BHG6",
"type": "GATEWAY_PIPELINE"
}
]
},
{
"id": "1493309064652337",
"name": "Meta Pixel (1493309064652337)",
"active": true,
"type": "META_PIXEL",
"associatedPipelines": [
{
"id": "sg_v1_pl_0d10d8d7-ff05-4d1e-9935-6e0f7ff9e15e",
"name": "Conversions API Gateway({1493309064652337})",
"type": "META_CAPI_PIPELINE"
}
]
}
]
}
}
}
POST https://{signals_gateway_domain}/capig/graphql/
mutation updateDataSourceMutation(
$tenantId: ID!
$input: DataSourceInput!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
updateDataSource(input: $input) {
id
name
active
}
}
}
}
tenantId: ID!
id: ID
name: String
dataSourceType: DataSourceType
active: Boolean
| Field | Description |
|---|---|
tenantIdID | Required Unique identifier for the account. |
idID | Required Unique identifier for the data source. |
nameString | The updated name of the gateway data source. |
Data source type. | |
activeBoolean | The updated status of the gateway pixel indicates if it is active or not. |
| Field | Description |
|---|---|
The updated data source object contains the ID, name, type, status, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
mutation useUpdateDataSourceMutation(
$tenantId: ID!
$input: DataSourceInput!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
updateDataSource(input: $input) {
id
name
active
}
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"id": "2898835581810297486",
"name": "Signals Gateway Pixel 2JP0NH",
"type": "ADVERTISER_HOSTED_PIXEL",
"active": false
}
}
{
"data": {
"tenantMutations": {
"dataSourceMutations": {
"updateDataSource": {
"id": "2898835581810297486",
"name": "Signals Gateway Pixel 2JP0NH",
"active": false
}
}
}
}
}
POST https://{signals_gateway_domain}/capig/graphql/
mutation deleteDataSourceMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
deleteDataSource(id: $id)
}
}
}
tenantId: ID!
id: ID!
| Field | Description |
|---|---|
tenantIdID | Required Unique identifier for the account |
idID | Required Unique identifier for the data source |
idID | Unique identifier for the deleted data source |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
mutation deleteDataSourceMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
deleteDataSource(id: $id)
}
}
}
{
"tenantId": "IaoreXfj",
"id": "2898835581810297486"
}
{
"data": {
"tenantMutations": {
"dataSourceMutations": {
"deleteDataSource": "2898835581810297486"
}
}
}
}
POST https://{signals_gateway_domain}/capig/graphql/
mutation generateGatewayPixelHeaderCode (
$tenantId: ID!
$dataSourceId: ID!
) {
tenantMutations(tenantId: $tenantI) {
dataSourceMutations {
createGatewayPixelHeaderCode(
dataSourceId: $dataSourceId
)
}
}
}
tenantId: ID!
dataSourceId: ID!
| Field | Description |
|---|---|
tenantIdID | Required Unique identifier for the account |
dataSourceIdID | Required Unique identifier for the Signals Gateway Pixel |
| Field | Description |
|---|---|
stringString | The Signals Gateway Pixel header code snippet |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
mutation generateGatewayPixelHeaderCode (
$tenantId: ID!
$dataSourceId: ID!
) {
tenantMutations(tenantId: $tenantI) {
dataSourceMutations {
createGatewayPixelHeaderCode(
dataSourceId: $dataSourceId
)
}
}
}
{
"tenantId": "IaoreXfj",
"dataSourceId": "2898835581810297486"
}
{
"data": {
"tenantMutations": {
"dataSourceMutations": {
"createGatewayPixelHeaderCode": "<!-- Signals Gateway Pixel Code -->\n<script>\n!function(a,h,e,v,n,t,s)\n {if(a.cbq)return;n=a.cbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!a._cbq)a._cbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=h.createElement(e);t.async=!0;\n t.src=v;s=h.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://test.com/sdk/2898835581810297486/events.js');\n cbq('setHost', 'https://LocalHost/');\n cbq('init', '3779427875530335532');\n cbq('track', 'PageView');\n</script>\n<!-- End Signals Gateway Pixel Code -->"
}
}
}
}
POST https://{signals_gateway_domain}/capig/graphql/
mutation gatewayPixelDataSourceConfigMutation(
$tenantId: ID!
$id: String!
$config: GatewayPixelConfigurationInput
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
updateGatewayPixelConfig(pixelId: $id, config: $config) {
id
name
enabledStatus
plugins
aamFields
}
}
}
}
tenantId: ID!
input GatewayPixelConfigurationInput {
enabledStatus: Boolean
enableAam: Boolean
enableFirstPartyCookie: Boolean
aamFields: [String!]
enableAutomaticForkMetaPixelEvent: Boolean
enableContactDataHash: Boolean
customIntegrityScript: String
}
| Field | Description |
|---|---|
tenantIdID | Required Unique identifier for the account |
The updatable fields for the Signals Gateway Pixel |
| Field | Description |
|---|---|
enabledStatusBoolean | The status of the Signals Gateway Pixel indicates if it is active or not. |
enableAamBoolean | Indicate if the advanced matching is enabled for the Signals Gateway Pixel. |
enableFirstPartyCookieBoolean | Indicate if the first party cookie is enabled for the Signals Gateway Pixel. |
aamFields[String] | The enabled advanced matching fields. |
enableAutomaticForkMetaPixelEventBoolean | Indicate if the automatic fork is enabled for the Signals Gateway Pixel. |
enableContactDataHashBoolean | Indicate if the data hash is enabled for the Signals Gateway Pixel. |
customIntegrityScriptString | The custom integrity script applied to the Signals Gateway Pixel. |
| Field | Description |
|---|---|
The Signals Gateway Pixel configuration after the update. |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
mutation gatewayPixelDataSourceConfigMutation(
$tenantId: ID!
$id: String!
$config: GatewayPixelConfigurationInput
) {
tenantMutations(tenantId: $tenantId) {
dataSourceMutations {
updateGatewayPixelConfig(pixelId: $id, config: $config) {
id
name
enabledStatus
plugins
aamFields
}
}
}
}
{
"tenantId": "IaoreXfj",
"id": "2898835581810297486",
"config": {
"enabledStatus": true,
"enableAam": true,
"enableAutomaticForkMetaPixelEvent": false,
"aamFields": [
"em",
"fn",
"ln",
"ph",
"ge",
"ct",
"st",
"zp",
"country",
"db",
"external_id"
],
"enableContactDataHash": true
}
}
{
"data": {
"tenantMutations": {
"dataSourceMutations": {
"updateGatewayPixelConfig": {
"id": "2898835581810297486",
"name": "Signals Gateway Pixel 2JP0NH",
"enabledStatus": true,
"plugins": [
"FIRST_PARTY_COOKIE",
"AUTOMATIC_ADVANCED_MATCHING"
],
"aamFields": [
"em",
"fn",
"ln",
"ph",
"ge",
"ct",
"st",
"zp",
"country",
"db",
"external_id"
]
}
}
}
}
}