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:
The query to get the current data routing config of a tenant.
POST https://{capig_domain}/hub/graphql/
_________________________________________________________________________________________________________________
query DataRoutingQuery(
$tenantId: ID!
) {
ingressDomain(tenantId: $tenantId) {
id
ingress
tenantName
cnameResolveSuccess
}
}
_________________________________________________________________________________________________________
tenantId: ID!
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Field | Description |
|---|---|
| Ingress domain object |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
query DataRoutingCardQuery($tenantId: String!) {
ingressDomain(tenantId: $tenantId) {
id
ingress
tenantName
cnameResolveSuccess
}
}
{
"tenantId": "IaoreXfj"
}
{
"data": {
"ingressDomain": {
"id": "IaoreXfj:ingress",
"ingress": "www.example.com",
"tenantName": "IaoreXfj",
"cnameResolveSuccess": false
}
}
}
Allows defining a first-party domain for the Meta Pixel to communicate with Conversions API Gateway or Signals Gateway. More details here.
POST https://{capig_domain}/hub/graphql/
_________________________________________________________________________________________________________________
mutation IngressEditingModalMutation(
$tenantId: ID!
$input: IngressDomainInput
) {
upsertIngressDomain(input: $input) {
id
tenantName
ingress
tenant1pDomain
tenant1pDomainStatus
cnameResolveSuccess
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_______________________________________________________________________________________________________
input IngressDomainInput {
ingress: String!
targetDomain: String!
}
| Field | Description |
|---|---|
| Required Unique identifier of the account |
IngressDomainInput| Field | Description |
|---|---|
| Required New subdomain that needs be updated |
| Required Partner Conversions API Gateway or Signals Gateway Domain |
| Field | Description |
|---|---|
| Ingress domain object |
| Code | Description |
|---|---|
401 | Not authorized to upgrade ingress domain |
500 | Internal server error |
Mutation
mutation IngressEditingModalMutation(
$tenantId: ID!
$input: IngressDomainInput
) {
upsertIngressDomain(input: $input, tenantId: $tenantId) {
id
ingress
cnameResolveSuccess
}
}
Variables
{
"tenantId": "IaoreXfj",
"input": {
"ingress": "capig.advertiser.com",
"targetDomain": "capig.targetDomain.com"
}
}
{
"data": {
"upsertIngressDomain": {
"id": "admin:ingress",
"tenantName": "Tenant for test@meta.com",
"ingress": "capig.advertiser.com",
"tenant1pDomain": "capig.advertiser.com",
"tenant1pDomainStatus": "DOMAIN_NOT_SELECTED",
"cnameResolveSuccess": false
}
}