GET Get targeting summary
Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.
GET /api/v1/public/targeting-summary — Get targeting summary
Read-only operation
Returns workspace targeting cohort sizes, media reach summaries, status buckets, and account/stakeholder distributions. Supply ownerId as one comma-separated value to limit the summary to accounts assigned to selected owners.
This endpoint supports GET only and does not accept a request body. Authentication is accepted only through Authorization: Bearer <token>; the bearer token determines the workspace.
Unknown, nested, object-valued, or unexpectedly repeated scalar query parameters are rejected. Successful responses omit null-valued properties and null array entries.
GET URLs can appear in client and intermediary logs. Never place credentials or secrets in query parameters. Responses are marked Cache-Control: private, no-store.
Parameters
ownerId(query, string[], optional)Restricts results to one or more account-owner ids. At most 25 unique ids are accepted. Supply multiple values as one comma-separated query value, for example
ownerId=507f1f77bcf86cd799439011,507f1f77bcf86cd799439012.- Maximum items: 25
- Items must be unique
- Send multiple values as one comma-separated query value
X-Request-Id(header, string, optional)Optional caller correlation id. The server generates one when omitted and always returns the resolved value.
X-Trace-Id(header, string, optional)Optional distributed trace id for cross-system request correlation.
X-Client-Name(header, string, optional)Optional caller-defined client label for request diagnostics.
JSON response schema
{
"$ref": "#/components/schemas/PublicTargetingSummaryResponse",
"components": {
"schemas": {
"PublicTargetingSummaryResponse": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"accountsInTargetingCount": {
"type": "integer",
"minimum": 0
},
"stakeholdersInTargetingCount": {
"type": "integer",
"minimum": 0
},
"targetingStartDate": {
"type": "string",
"format": "date-time"
},
"lastMediaUpdateDate": {
"type": "string",
"format": "date-time"
},
"stakeholdersMediaSummary": {
"type": "array",
"items": {
"type": "object",
"properties": {
"impact": {
"type": "array",
"items": {
"type": "string"
}
},
"title": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 0
}
},
"required": [
"title",
"count"
],
"additionalProperties": false
}
},
"stakeholdersGroupMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"accountsStatusSummary": {
"type": "array",
"items": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"title": {
"type": "string"
},
"count": {
"type": "integer",
"minimum": 0
},
"reachSummary": {
"$ref": "#/components/schemas/PublicReachSummary"
}
},
"required": [
"title",
"reachSummary"
],
"additionalProperties": false
}
},
"accountsHQCountryMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"accountsTargetingCountryMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"accountsTargetSegmentMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"accountsProgramMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
}
},
"accountsTypeMap": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PublicGroupCount"
},
"deprecated": true,
"description": "Deprecated response alias for accountsProgramMap."
}
},
"required": [
"accountsInTargetingCount",
"stakeholdersInTargetingCount"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false
},
"PublicGroupCount": {
"type": "object",
"properties": {
"group": {
"type": "string"
},
"count": {
"type": "number",
"format": "double"
}
},
"required": [
"group",
"count"
],
"additionalProperties": false
},
"PublicReachSummary": {
"type": "object",
"properties": {
"reached": {
"type": "integer",
"minimum": 0
},
"notReached": {
"type": "integer",
"minimum": 0
},
"engaged": {
"type": "integer",
"minimum": 0
},
"notEngaged": {
"type": "integer",
"minimum": 0
}
},
"required": [
"reached",
"notReached",
"engaged",
"notEngaged"
],
"additionalProperties": false
}
}
}
}Responses
200: Successful response. Repeated entity context is returned through reference maps where applicable.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
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
200 response example
{
"data": {
"accountsInTargetingCount": 10,
"stakeholdersInTargetingCount": 25,
"accountsHQCountryMap": [
{
"group": "SE",
"count": 6
}
],
"accountsProgramMap": [
{
"group": "Prospect",
"count": 10
}
]
}
}400: Invalid targeting input.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
400 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}400 response example
{
"message": "The targeting request is invalid.",
"code": "INVALID_RESOURCE_REQUEST"
}401: Missing, invalid, expired, or unauthorized credential.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
401 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}401 response example
{
"message": "Unauthorized request",
"code": "UNAUTHENTICATED"
}403: Authenticated workspace scope mismatch.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
403 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}403 response example
{
"message": "The authenticated credential is not authorized for this resource.",
"code": "SPACE_SCOPE_MISMATCH"
}405: Only GET is supported for this endpoint.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
405 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}405 response example
{
"message": "Method not allowed",
"code": "METHOD_NOT_ALLOWED"
}429: Rate limit exceeded.
Retry-After(header, integer, optional)Seconds to wait before retrying.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
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
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}429 response example
{
"message": "Too many requests. Please try later.",
"code": "RATE_LIMIT_EXCEEDED"
}500: Unexpected server failure.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
500 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}500 response example
{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR"
}503: The Public API is temporarily unavailable.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
503 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}503 response example
{
"message": "Service unavailable",
"code": "PUBLIC_RESOURCE_UNAVAILABLE"
}504: The request exceeded the time limit.
X-Request-Id(header, string, optional)Request correlation id supplied by the caller or generated by the server.
Cache-Control(header, private, no-store, optional)Prevents browsers and shared intermediaries from storing authenticated report data.
504 response schema
{
"$ref": "#/components/schemas/ErrorResponse",
"components": {
"schemas": {
"ErrorResponse": {
"type": "object",
"required": [
"message",
"code"
],
"properties": {
"message": {
"type": "string"
},
"code": {
"type": "string"
}
},
"additionalProperties": false
}
}
}
}504 response example
{
"message": "The resource request timed out.",
"code": "PUBLIC_RESOURCE_TIMEOUT"
}Get targeting summary
curl "https://server-url-from-token-page.endpoint/api/v1/public/targeting-summary" \
-H "Authorization: Bearer $DOE_API_TOKEN" \
-H "Accept: application/json" \
-H "X-Request-Id: postman-{{$guid}}" \
-H "X-Client-Name: postman-public-api"Response example
{
"data": {
"accountsInTargetingCount": 10,
"stakeholdersInTargetingCount": 25,
"accountsHQCountryMap": [
{
"group": "SE",
"count": 6
}
],
"accountsProgramMap": [
{
"group": "Prospect",
"count": 10
}
]
}
}