Skip to content

Conversions API Gateway and Signals Gateway Control Plane API: Reference

Updated: Jun 18, 2025

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:

  • Click on Settings
  • Choose API accounts
  • Click the API Reference link at the top of the API accounts page

Account Data Routing Configuration

Get Data Routing

The query to get the current data routing config of a tenant.

Schema

POST https://{capig_domain}/hub/graphql/

---

query DataRoutingQuery(
 $tenantId: ID!
) {
   ingressDomain(tenantId: $tenantId) {
     id
     ingress
     tenantName
     cnameResolveSuccess
  }
}

---

tenantId: ID!

Fields

FieldDescription
tenantId IDRequired Unique identifier for the account

Returns

FieldDescription
IngressDomain IngressDomainIngress domain object

Error Codes

CodeDescription
401Not authorized to view the data routing
500Internal server error

Sample Request

Query

query DataRoutingCardQuery($tenantId: String!) {
      ingressDomain(tenantId: $tenantId) {
        id
        ingress
        tenantName
        cnameResolveSuccess
      }
    }

Variables

{
  "tenantId": "IaoreXfj"
}

Sample Response

{
  "data": {
    "ingressDomain": {
      "id": "IaoreXfj:ingress",
      "ingress": "www.example.com",
      "tenantName": "IaoreXfj",
      "cnameResolveSuccess": false
    }
  }
}

Update Data Routing

Allows defining a first-party domain for the Meta Pixel to communicate with Conversions API Gateway or Signals Gateway. More details here.

Schema

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!
}

Fields

FieldDescription
tenantId StringRequired Unique identifier of the account

IngressDomainInput

FieldDescription
ingress StringRequired New subdomain that needs be updated
targetDomain StringRequired Partner Conversions API Gateway or Signals Gateway Domain

Returns

FieldDescription
IngressDomain IngressDomainIngress domain object

Error Codes

CodeDescription
401Not authorized to upgrade ingress domain
500Internal server error

Sample Request

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"
  }
}

Sample Response

{
   "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
    }
  }

See Also

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About