zumpo/docs
Dashboard
Skip to content
reviews / API reference
GETlistInboxReviews

List reviews

Reads reviews live from every eligible connected account in one request. Omit accountId to fan out across all eligible accounts; supply it to read a single account. Only Google Business has a shipped review pipeline today, so an account on any other platform is skipped rather than reported as a failure. A per-account failure does not fail the request: it is counted in meta.accountsFailed and named in meta.failedAccounts, and the remaining accounts are still returned.

TEST MODE ONLY TODAY. No Google Business adapter is composed into the live registry, so no Google Business account can be connected in live mode and none is eligible for this fan-out there. In live mode this operation reads zero accounts and returns 200 with an empty data array and meta.accountsQueried 0 -- it does not fail. Setting a live-mode environment flag does not change this. Use test mode for this vertical.

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

    scheme
    bearer
    bearerFormat
    zumpo-api-key
Read the authentication guide

Parameters

cursorqueryoptional

Opaque cursor returned by this endpoint. It encodes one resume position per account and is only valid for the query that produced it.

cursorstring
minLength
1
maxLength
8192
Original schema
{
  "type": "string",
  "minLength": 1,
  "maxLength": 8192
}
limitqueryoptional
limitinteger
minimum
1
maximum
50
default
25
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 50,
  "default": 25
}
sortOrderqueryoptional

Sort direction. sortBy=date supports desc only and returns 400 for asc; sortBy=rating supports both.

sortOrderstring
enum
[ "asc", "desc" ]
default
desc
Original schema
{
  "type": "string",
  "enum": [
    "asc",
    "desc"
  ],
  "default": "desc"
}
sortByqueryoptional

date orders by the time Google last updated the review, which is the only date order Google exposes; the published created field is the creation time and the two differ only for an edited review. date is available in descending order only.

sortBystring
enum
[ "date", "rating" ]
default
date
Original schema
{
  "type": "string",
  "enum": [
    "date",
    "rating"
  ],
  "default": "date"
}
hasReplyqueryoptional

Keep only reviews that already have a reply, or only those that do not.

hasReplyboolean
Original schema
{
  "type": "boolean"
}
maxRatingqueryoptional

Drop reviews rated above this many stars.

maxRatinginteger
minimum
1
maximum
5
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 5
}
minRatingqueryoptional

Drop reviews rated below this many stars.

minRatinginteger
minimum
1
maximum
5
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 5
}
platformqueryoptional

Restrict the fan-out to accounts on one platform. facebook is accepted but returns no reviews: it has no review pipeline here.

platformstring
enum
[ "facebook", "googlebusiness" ]
Original schema
{
  "type": "string",
  "enum": [
    "facebook",
    "googlebusiness"
  ]
}
profileIdqueryoptional

Restrict the fan-out to accounts on one profile.

profileIdstring
pattern
^[0-9a-f]{24}$
Original schema
{
  "type": "string",
  "pattern": "^[0-9a-f]{24}$"
}
accountIdqueryoptional

Restrict the fan-out to one account. Omit to read every eligible account.

accountIdstring
pattern
^[0-9a-f]{24}$
Original schema
{
  "type": "string",
  "pattern": "^[0-9a-f]{24}$"
}

Responses

Status codes and shapes declared for this operation. Read each description for the meaning of that response.

200Response schema
application/json
Response 200object
#/components/schemas/InboxReviewsResponseDto
additionalProperties
false
required
[ "status", "data", "pagination", "meta", "summary" ]
statusstringrequired
enum
[ "success" ]
dataarrayrequired
Array itemobject
#/components/schemas/InboxReviewDto
additionalProperties
false
required
[ "id", "platform", "accountId", "locationId", "reviewer", "rating", "created", "hasReply", "hasPhotos", "photoCount", "photos", "reply" ]
idstringrequired

Provider review id, opaque and platform specific.

minLength
1
maxLength
256
platformstringrequired

Platform of the account this review was read from. Only Google Business has a shipped review pipeline today.

enum
[ "googlebusiness" ]
accountIdstringrequired

Zumpo account this review was read from.

pattern
^[0-9a-f]{24}$
accountUsernamestring

Stored display identity of the account. Omitted when the account carries no display name.

maxLength
512
locationIdstringrequired

Google Business location id this review belongs to.

minLength
1
maxLength
30
locationNamestring

Stored title of the Google Business location. Omitted when the account carries no display name.

maxLength
512
reviewerobjectrequired
#/components/schemas/InboxReviewReviewerDto
additionalProperties
false
required
[ "profilePhotoUrl", "isAnonymous" ]
displayNamestring

Reviewer display name. Omitted when Google returns an anonymous review with no name.

maxLength
2048
profilePhotoUrlstringrequired

Reviewer profile photo URL when Google returns one.

format
uri
nullable
true
isAnonymousbooleanrequired

True when Google marks the review as anonymous.

ratingnumberrequired

Star rating, 1-5. 0 means Google reported STAR_RATING_UNSPECIFIED for this review.

minimum
0
maximum
5
textstring

Review body. Omitted when the reviewer left only a star rating.

maxLength
100000
createdstringrequired

Time Google reports the review was created.

format
date-time
hasReplybooleanrequired

True when the location has published a reply to this review.

hasPhotosbooleanrequired

True when the review carries at least one photo.

photoCountnumberrequired

Number of photos on the review.

minimum
0
photosarrayrequired

Review photos. Video attachments are not included.

maxItems
100
Array itemobject
#/components/schemas/InboxReviewPhotoDto
additionalProperties
false
required
[ "url" ]
urlstringrequired
format
uri
replyobjectrequired

Published reply, or null when the location has not replied.

nullable
true
allOf / 1object
#/components/schemas/InboxReviewReplyDetailDto
additionalProperties
false
required
[ "text", "created" ]
textstringrequired
maxLength
4096
createdstringrequired
format
date-time
nullable
true
paginationobjectrequired
#/components/schemas/InboxReviewsPaginationDto
additionalProperties
false
required
[ "hasMore", "nextCursor" ]
hasMorebooleanrequired

True when at least one eligible account still has unread pages, including an account that failed this round.

nextCursorstringrequired

Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter.

nullable
true
metaobjectrequired
#/components/schemas/InboxReviewsMetaDto
additionalProperties
false
required
[ "accountsQueried", "accountsFailed", "failedAccounts", "lastUpdated" ]
accountsQueriednumberrequired

Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted.

minimum
0
accountsFailednumberrequired

Subset of accountsQueried whose provider read failed.

minimum
0
failedAccountsarrayrequired

One entry per failed account. Empty when nothing failed.

Array itemobject
#/components/schemas/InboxReviewFailedAccountDto
additionalProperties
false
required
[ "accountId", "platform", "code" ]
accountIdstringrequired
pattern
^[0-9a-f]{24}$
platformstringrequired
enum
[ "instagram", "facebook", "threads", "whatsapp", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "reddit", "bluesky", "telegram", "discord", "slack", "google_business", "snapchat", "mastodon", "shopify", "google_ads", "tiktok_ads", "pinterest_ads", "x_ads", "openai_ads" ]
codestringrequired

Stable Zumpo error code explaining why this account was not read.

pattern
^[a-z][a-z0-9_]{0,63}$
lastUpdatedstringrequired

Server time this fan-out was assembled.

format
date-time
summaryobjectrequired
#/components/schemas/InboxReviewsSummaryDto
additionalProperties
false
required
[ "averageRating", "totalReviews" ]
averageRatingnumberrequired

Review-count weighted mean of the per-location averages of the accounts read this round, rounded to two decimals. Null when no account was read or all read accounts have zero reviews.

minimum
0
maximum
5
nullable
true
totalReviewsnumberrequired

Sum of the all-time review counts Google reports for the accounts read this round. Not the number of items in data.

minimum
0
Original schema
{
  "$ref": "#/components/schemas/InboxReviewsResponseDto"
}
400Response schema
application/json
Response 400object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
401Response schema
application/json
Response 401object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
403Response schema
application/json
Response 403object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
404Response schema
application/json
Response 404object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
409Conflict

Conflict

application/json
Response 409object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
429Response schema
application/json
Response 429object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}

Response headers

X-RateLimit-Limit

Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.

X-RateLimit-Limitinteger
minimum
1
Original schema
{
  "type": "integer",
  "minimum": 1
}

X-RateLimit-Remaining

Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.

X-RateLimit-Remaininginteger
minimum
0
Original schema
{
  "type": "integer",
  "minimum": 0
}

X-RateLimit-Reset

Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.

X-RateLimit-Resetinteger
format
int64
minimum
0
Original schema
{
  "type": "integer",
  "format": "int64",
  "minimum": 0
}

Retry-After

Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.

Retry-Afterinteger
minimum
1
maximum
86400
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 86400
}
500Server error

Server error

application/json
Response 500object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
502Response schema
application/json
Response 502object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}
503Response schema
application/json
Response 503object
#/components/schemas/ZumpoErrorDto
required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequired

Human-readable message. UNSTABLE — do not branch on it.

example
WhatsApp session window expired; use a template message.
typestringrequired

Stable error category (does not change across versions).

enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]
example
invalid_request_error
codestringrequired

Stable machine-readable code.

example
whatsapp_window_expired
paramstring

Offending parameter, present only when relevant.

example
body
docUrlstringrequired

https://docs.zumpo.io/errors/{code}

example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequired

Support correlation id: req_ + 16 hex.

example
req_7f3a9c2e1b8d4056
detailsobject

Additional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.

additionalProperties
true
example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
  "$ref": "#/components/schemas/ZumpoErrorDto"
}

Referenced schemas

Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.

InboxReviewsResponseDto

#/components/schemas/InboxReviewsResponseDto

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxReviewDto"
      }
    },
    "pagination": {
      "$ref": "#/components/schemas/InboxReviewsPaginationDto"
    },
    "meta": {
      "$ref": "#/components/schemas/InboxReviewsMetaDto"
    },
    "summary": {
      "$ref": "#/components/schemas/InboxReviewsSummaryDto"
    }
  },
  "additionalProperties": false,
  "required": [
    "status",
    "data",
    "pagination",
    "meta",
    "summary"
  ]
}
InboxReviewDto

#/components/schemas/InboxReviewDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "description": "Provider review id, opaque and platform specific."
    },
    "platform": {
      "type": "string",
      "enum": [
        "googlebusiness"
      ],
      "description": "Platform of the account this review was read from. Only Google Business has a shipped review pipeline today."
    },
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$",
      "description": "Zumpo account this review was read from."
    },
    "accountUsername": {
      "type": "string",
      "maxLength": 512,
      "description": "Stored display identity of the account. Omitted when the account carries no display name."
    },
    "locationId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 30,
      "description": "Google Business location id this review belongs to."
    },
    "locationName": {
      "type": "string",
      "maxLength": 512,
      "description": "Stored title of the Google Business location. Omitted when the account carries no display name."
    },
    "reviewer": {
      "$ref": "#/components/schemas/InboxReviewReviewerDto"
    },
    "rating": {
      "type": "number",
      "minimum": 0,
      "maximum": 5,
      "description": "Star rating, 1-5. 0 means Google reported STAR_RATING_UNSPECIFIED for this review."
    },
    "text": {
      "type": "string",
      "maxLength": 100000,
      "description": "Review body. Omitted when the reviewer left only a star rating."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Time Google reports the review was created."
    },
    "hasReply": {
      "type": "boolean",
      "description": "True when the location has published a reply to this review."
    },
    "hasPhotos": {
      "type": "boolean",
      "description": "True when the review carries at least one photo."
    },
    "photoCount": {
      "type": "number",
      "minimum": 0,
      "description": "Number of photos on the review."
    },
    "photos": {
      "maxItems": 100,
      "description": "Review photos. Video attachments are not included.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxReviewPhotoDto"
      }
    },
    "reply": {
      "nullable": true,
      "description": "Published reply, or null when the location has not replied.",
      "type": "object",
      "allOf": [
        {
          "$ref": "#/components/schemas/InboxReviewReplyDetailDto"
        }
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "id",
    "platform",
    "accountId",
    "locationId",
    "reviewer",
    "rating",
    "created",
    "hasReply",
    "hasPhotos",
    "photoCount",
    "photos",
    "reply"
  ]
}
InboxReviewReviewerDto

#/components/schemas/InboxReviewReviewerDto

{
  "type": "object",
  "properties": {
    "displayName": {
      "type": "string",
      "maxLength": 2048,
      "description": "Reviewer display name. Omitted when Google returns an anonymous review with no name."
    },
    "profilePhotoUrl": {
      "type": "string",
      "format": "uri",
      "nullable": true,
      "description": "Reviewer profile photo URL when Google returns one."
    },
    "isAnonymous": {
      "type": "boolean",
      "description": "True when Google marks the review as anonymous."
    }
  },
  "additionalProperties": false,
  "required": [
    "profilePhotoUrl",
    "isAnonymous"
  ]
}
InboxReviewPhotoDto

#/components/schemas/InboxReviewPhotoDto

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    }
  },
  "additionalProperties": false,
  "required": [
    "url"
  ]
}
InboxReviewReplyDetailDto

#/components/schemas/InboxReviewReplyDetailDto

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 4096
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "required": [
    "text",
    "created"
  ]
}
InboxReviewsPaginationDto

#/components/schemas/InboxReviewsPaginationDto

{
  "type": "object",
  "properties": {
    "hasMore": {
      "type": "boolean",
      "description": "True when at least one eligible account still has unread pages, including an account that failed this round."
    },
    "nextCursor": {
      "type": "string",
      "nullable": true,
      "description": "Opaque cursor that resumes the fan-out. Pass it back unchanged as the cursor query parameter."
    }
  },
  "additionalProperties": false,
  "required": [
    "hasMore",
    "nextCursor"
  ]
}
InboxReviewsMetaDto

#/components/schemas/InboxReviewsMetaDto

{
  "type": "object",
  "properties": {
    "accountsQueried": {
      "type": "number",
      "minimum": 0,
      "description": "Eligible accounts this request actually issued a provider read for, failures included. Accounts already exhausted by an earlier page are not re-read and not counted."
    },
    "accountsFailed": {
      "type": "number",
      "minimum": 0,
      "description": "Subset of accountsQueried whose provider read failed."
    },
    "failedAccounts": {
      "description": "One entry per failed account. Empty when nothing failed.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/InboxReviewFailedAccountDto"
      }
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "Server time this fan-out was assembled."
    }
  },
  "additionalProperties": false,
  "required": [
    "accountsQueried",
    "accountsFailed",
    "failedAccounts",
    "lastUpdated"
  ]
}
InboxReviewFailedAccountDto

#/components/schemas/InboxReviewFailedAccountDto

{
  "type": "object",
  "properties": {
    "accountId": {
      "type": "string",
      "pattern": "^[0-9a-f]{24}$"
    },
    "platform": {
      "type": "string",
      "enum": [
        "instagram",
        "facebook",
        "threads",
        "whatsapp",
        "twitter",
        "linkedin",
        "youtube",
        "tiktok",
        "pinterest",
        "reddit",
        "bluesky",
        "telegram",
        "discord",
        "slack",
        "google_business",
        "snapchat",
        "mastodon",
        "shopify",
        "google_ads",
        "tiktok_ads",
        "pinterest_ads",
        "x_ads",
        "openai_ads"
      ]
    },
    "code": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{0,63}$",
      "description": "Stable Zumpo error code explaining why this account was not read."
    }
  },
  "additionalProperties": false,
  "required": [
    "accountId",
    "platform",
    "code"
  ]
}
InboxReviewsSummaryDto

#/components/schemas/InboxReviewsSummaryDto

{
  "type": "object",
  "properties": {
    "averageRating": {
      "type": "number",
      "minimum": 0,
      "maximum": 5,
      "nullable": true,
      "description": "Review-count weighted mean of the per-location averages of the accounts read this round, rounded to two decimals. Null when no account was read or all read accounts have zero reviews."
    },
    "totalReviews": {
      "type": "number",
      "minimum": 0,
      "description": "Sum of the all-time review counts Google reports for the accounts read this round. Not the number of items in data."
    }
  },
  "additionalProperties": false,
  "required": [
    "averageRating",
    "totalReviews"
  ]
}
ZumpoErrorDto

#/components/schemas/ZumpoErrorDto

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "description": "Human-readable message. UNSTABLE — do not branch on it.",
      "example": "WhatsApp session window expired; use a template message."
    },
    "type": {
      "type": "string",
      "description": "Stable error category (does not change across versions).",
      "enum": [
        "invalid_request_error",
        "authentication_error",
        "permission_error",
        "not_found",
        "conflict",
        "rate_limit_error",
        "platform_error",
        "platform_rejected",
        "account_disconnected",
        "media_error",
        "api_error"
      ],
      "example": "invalid_request_error"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code.",
      "example": "whatsapp_window_expired"
    },
    "param": {
      "type": "string",
      "description": "Offending parameter, present only when relevant.",
      "example": "body"
    },
    "docUrl": {
      "type": "string",
      "description": "https://docs.zumpo.io/errors/{code}",
      "example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
    },
    "requestId": {
      "type": "string",
      "description": "Support correlation id: req_ + 16 hex.",
      "example": "req_7f3a9c2e1b8d4056"
    },
    "details": {
      "type": "object",
      "additionalProperties": true,
      "description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
      "example": {
        "created": [
          {
            "kind": "campaign",
            "platformId": "120210000000000001"
          },
          {
            "kind": "adSet",
            "platformId": "120210000000000002"
          }
        ]
      }
    }
  },
  "required": [
    "error",
    "type",
    "code",
    "docUrl",
    "requestId"
  ]
}