GET Get GTM entity summaries

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

GET /api/v1/public/gtm/entity-summaries — Get GTM entity summaries

Read-only operation

Read active Offering and Segment links for up to 500 accounts. Empty contexts mean the account is unassigned. These explicit relationships are the source of truth; do not use legacy Market segment.

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

input (query, object, required)

JSON-encoded query value.

  • Send one JSON-encoded query value
input query schema
{
  "type": "object",
  "properties": {
    "entity": {
      "type": "string",
      "enum": [
        "ACCOUNT"
      ]
    },
    "entityIds": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-f\\d]{24}$"
      },
      "minItems": 0,
      "maxItems": 500
    }
  },
  "required": [
    "entity",
    "entityIds"
  ],
  "additionalProperties": false
}
entity (query, ACCOUNT, required)

See the JSON schema for this field’s contract.

entityIds (query, string[], required)

See the JSON schema for this field’s contract.

  • Minimum items: 0
  • Maximum items: 500
JSON response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "contexts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "offeringId": {
                  "type": "string"
                },
                "offeringName": {
                  "type": "string"
                },
                "segmentId": {
                  "type": "string"
                },
                "segmentName": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "offeringId",
                "offeringName",
                "segmentId",
                "segmentName"
              ],
              "additionalProperties": false
            },
            "description": "Active Offering and Segment links for this account."
          }
        },
        "required": [
          "id",
          "contexts"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "items"
  ]
}

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 entity summaries

curl "https://server-url-from-token-page.endpoint/api/v1/public/gtm/entity-summaries?input=%7B%22entity%22%3A%22ACCOUNT%22%2C%22entityIds%22%3A%5B%22507f1f77bcf86cd799439011%22%5D%7D" \
  -H "Authorization: Bearer $DOE_API_TOKEN" \
  -H "Accept: application/json"
Response example
No response example is supplied. See the JSON response schema.