GET Get GTM coverage

Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.

GET /api/v1/public/gtm/coverage — Get GTM coverage

Read-only operation

Current GTM coverage for active accounts, grouped by offering or segment. Distinct totals; overlapping group rows are not additive. Stakeholders are people at matching accounts, not verified decision participants. No historical attribution.

Use URL path and query parameters; no request body. Query arrays and objects are JSON-encoded where indicated. Workspace scope comes exclusively from the bearer credential. Available to read-only and read/write API credentials.

Parameters

groupBy (query, offering | segment, optional)

query parameter

  • Default: "segment"
skip (query, integer, optional)

query parameter

  • Default: 0
  • Minimum: 0
take (query, integer, optional)

query parameter

  • Default: 20
  • Minimum: 1
  • Maximum: 100
JSON response schema
{
  "type": "object",
  "properties": {
    "groupBy": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "accounts": {
            "type": "number"
          },
          "stakeholders": {
            "type": "number"
          },
          "confirmedMessaging": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "name",
          "accounts",
          "stakeholders",
          "confirmedMessaging"
        ],
        "additionalProperties": false
      }
    },
    "metadata": {
      "type": "object",
      "properties": {
        "count": {
          "type": "number"
        },
        "skip": {
          "type": "number"
        },
        "take": {
          "type": "number"
        }
      },
      "required": [
        "count",
        "skip",
        "take"
      ],
      "additionalProperties": false
    },
    "totals": {
      "type": "object",
      "properties": {
        "accounts": {
          "type": "number"
        },
        "stakeholders": {
          "type": "number"
        },
        "confirmedMessaging": {
          "type": "number"
        },
        "unassignedAccounts": {
          "type": "number"
        },
        "unassignedStakeholders": {
          "type": "number"
        }
      },
      "required": [
        "accounts",
        "stakeholders",
        "confirmedMessaging",
        "unassignedAccounts",
        "unassignedStakeholders"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "groupBy",
    "items",
    "metadata",
    "totals"
  ],
  "additionalProperties": false
}

Responses

200: Operation receipt or read result. Arrays are returned under items; scalar and null results under value.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

400: Invalid operation input or record identifiers.
400 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
401: Bearer credential is missing, expired or invalid.
401 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
402: Insufficient research credits. Add credits before retrying.
402 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
403: Write access or resource permission is required.
403 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
404: Record is not available in the credential workspace.
404 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
405: Use the documented HTTP method.
405 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
409: Revision conflict or a record has dependencies. Refetch and reconcile links before retrying.
409 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
413: Request exceeds the permitted JSON body size.
413 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
429: Rate limit exceeded. Observe Retry-After.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

429 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
500: Internal server error.
500 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
503: Service temporarily unavailable. Observe Retry-After when present.
503 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
504: Execution timed out. A write may have committed; check receipts or progress before retrying.
504 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}

Get GTM coverage

curl "https://server-url-from-token-page.endpoint/api/v1/public/gtm/coverage?groupBy=segment&skip=0&take=20" \
  -H "Authorization: Bearer $DOE_API_TOKEN" \
  -H "Accept: application/json"
Response example
No response example is supplied. See the JSON response schema.