zumpo/docs
Dashboard
Skip to content
comment-automations / API reference
GETlistCommentAutomations

List comment automations

Offset pagination with skip/limit. This endpoint does not accept a cursor. Active rules are evaluated by the durable comment.received worker.

Authentication

The following security requirement applies to this operation.

  1. bearerhttp

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

Parameters

skipqueryoptional
skipinteger
minimum
0
maximum
100000
Original schema
{
  "type": "integer",
  "minimum": 0,
  "maximum": 100000
}
limitqueryoptional
limitinteger
minimum
1
maximum
50
default
25
Original schema
{
  "type": "integer",
  "minimum": 1,
  "maximum": 50,
  "default": 25
}
isActivequeryoptional
isActiveboolean
Original schema
{
  "type": "boolean"
}
profileIdqueryoptional

If omitted, the records of ALL profiles the key can reach are returned.

profileIdstring
Original schema
{
  "type": "string"
}

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/CommentAutomationListResponseDto
required
[ "success", "automations", "pagination" ]
successbooleanrequired
enum
[ true ]
automationsarrayrequired
Array itemobject
#/components/schemas/CommentAutomationDto
required
[ "id", "profileId", "accountId", "name", "dmMessage", "trigger", "platformPostId", "postId", "postTitle", "keywords", "matchMode", "excludeKeywords", "typoTolerance", "buttons", "template", "commentReply", "dmMessageVariations", "commentReplyVariations", "linkTracking", "clickTag", "dmDelaySeconds", "commentReplyDelaySeconds", "alsoMatchInDms", "audience", "followGate", "isActive", "createdAt", "updatedAt" ]
idstringrequired

24 hex comment automation id

example
a1b2c3d4e5f6a7b8c9d0e1f2
profileIdstringrequired
example
b1c2d3e4f5a6b7c8d9e0f1a2
accountIdstringrequired

The connected social account the rule will run on.

example
c1d2e3f4a5b6c7d8e9f0a1b2
namestringrequired
example
Campaign comment automation
dmMessagestringrequired

The DM body to be sent to the comment author.

example
Hi! Here is the link you asked for.
triggerstringrequired

Free text, NOT a CLOSED set. The extracted contract gives no value set for this field; inventing a set would turn a valid request into a 400.

nullable
true
example
comment
platformPostIdstringrequired

The post id of the platform itself. It is opaque; in this API version it is not matched against any post record.

nullable
true
postIdstringrequired

The post id of the source system. It is opaque and IS NOT LINKED to a zumpo posts record - a migrating client sends its own id.

nullable
true
postTitlestringrequired
nullable
true
example
November campaign reels
keywordsarrayrequired

If an empty array is sent it is stored as null.

nullable
true
example
[ "link", "info" ]
Array itemstring
matchModestringrequired

Free text, NOT a CLOSED set - the same rationale as trigger.

nullable
true
example
contains
excludeKeywordsarrayrequired
nullable
true
Array itemstring
typoTolerancebooleanrequired
example
false
buttonsarrayrequired

OPAQUE. This API version does not interpret its content.

nullable
true
Array itemobject
additionalProperties
true
templateobjectrequired

Provider template, OPAQUE. This API version does not interpret its content.

additionalProperties
true
nullable
true
commentReplystringrequired
nullable
true
dmMessageVariationsarrayrequired
nullable
true
Array itemstring
commentReplyVariationsarrayrequired
nullable
true
Array itemstring
linkTrackingbooleanrequired
example
false
clickTagstringrequired
nullable
true
dmDelaySecondsnumberrequired
minimum
0
example
0
commentReplyDelaySecondsnumberrequired
minimum
0
example
0
alsoMatchInDmsbooleanrequired
example
false
audienceobjectrequired

Audience filter, OPAQUE. This API version does not interpret its content.

additionalProperties
true
nullable
true
followGateobjectrequired

Follow gate setting, OPAQUE. This API version does not interpret its content.

additionalProperties
true
nullable
true
isActivebooleanrequired

Whether the rule is on. Active rules are matched by the durable worker on incoming comment.received events.

example
true
createdAtstringrequired
format
date-time
updatedAtstringrequired
format
date-time
paginationobjectrequired
#/components/schemas/CommentAutomationPaginationDto
required
[ "total", "skip", "limit", "hasMore" ]
totalnumberrequired

Total records matching the filters.

minimum
0
skipnumberrequired
minimum
0
limitnumberrequired
minimum
1
hasMorebooleanrequired

Derived: skip + number of returned records < total.

Original schema
{
  "$ref": "#/components/schemas/CommentAutomationListResponseDto"
}
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"
}
401Authentication failed

Authentication failed

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"
}
403Permission denied

Permission denied

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"
}
429Rate limit exceeded

Rate limit exceeded

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"
}
502Platform error

Platform error

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"
}
503Service unavailable

Service unavailable

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.

CommentAutomationListResponseDto

#/components/schemas/CommentAutomationListResponseDto

{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "automations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CommentAutomationDto"
      }
    },
    "pagination": {
      "$ref": "#/components/schemas/CommentAutomationPaginationDto"
    }
  },
  "required": [
    "success",
    "automations",
    "pagination"
  ]
}
CommentAutomationDto

#/components/schemas/CommentAutomationDto

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "example": "a1b2c3d4e5f6a7b8c9d0e1f2",
      "description": "24 hex comment automation id"
    },
    "profileId": {
      "type": "string",
      "example": "b1c2d3e4f5a6b7c8d9e0f1a2"
    },
    "accountId": {
      "type": "string",
      "example": "c1d2e3f4a5b6c7d8e9f0a1b2",
      "description": "The connected social account the rule will run on."
    },
    "name": {
      "type": "string",
      "example": "Campaign comment automation"
    },
    "dmMessage": {
      "type": "string",
      "example": "Hi! Here is the link you asked for.",
      "description": "The DM body to be sent to the comment author."
    },
    "trigger": {
      "type": "string",
      "nullable": true,
      "example": "comment",
      "description": "Free text, NOT a CLOSED set. The extracted contract gives no value set for this field; inventing a set would turn a valid request into a 400."
    },
    "platformPostId": {
      "type": "string",
      "nullable": true,
      "description": "The post id of the platform itself. It is opaque; in this API version it is not matched against any post record."
    },
    "postId": {
      "type": "string",
      "nullable": true,
      "description": "The post id of the source system. It is opaque and IS NOT LINKED to a zumpo `posts` record - a migrating client sends its own id."
    },
    "postTitle": {
      "type": "string",
      "nullable": true,
      "example": "November campaign reels"
    },
    "keywords": {
      "nullable": true,
      "example": [
        "link",
        "info"
      ],
      "description": "If an empty array is sent it is stored as null.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "matchMode": {
      "type": "string",
      "nullable": true,
      "example": "contains",
      "description": "Free text, NOT a CLOSED set - the same rationale as `trigger`."
    },
    "excludeKeywords": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "typoTolerance": {
      "type": "boolean",
      "example": false
    },
    "buttons": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "nullable": true,
      "description": "OPAQUE. This API version does not interpret its content."
    },
    "template": {
      "type": "object",
      "additionalProperties": true,
      "nullable": true,
      "description": "Provider template, OPAQUE. This API version does not interpret its content."
    },
    "commentReply": {
      "type": "string",
      "nullable": true
    },
    "dmMessageVariations": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "commentReplyVariations": {
      "nullable": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "linkTracking": {
      "type": "boolean",
      "example": false
    },
    "clickTag": {
      "type": "string",
      "nullable": true
    },
    "dmDelaySeconds": {
      "type": "number",
      "minimum": 0,
      "example": 0
    },
    "commentReplyDelaySeconds": {
      "type": "number",
      "minimum": 0,
      "example": 0
    },
    "alsoMatchInDms": {
      "type": "boolean",
      "example": false
    },
    "audience": {
      "type": "object",
      "additionalProperties": true,
      "nullable": true,
      "description": "Audience filter, OPAQUE. This API version does not interpret its content."
    },
    "followGate": {
      "type": "object",
      "additionalProperties": true,
      "nullable": true,
      "description": "Follow gate setting, OPAQUE. This API version does not interpret its content."
    },
    "isActive": {
      "type": "boolean",
      "example": true,
      "description": "Whether the rule is on. Active rules are matched by the durable worker on incoming comment.received events."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "profileId",
    "accountId",
    "name",
    "dmMessage",
    "trigger",
    "platformPostId",
    "postId",
    "postTitle",
    "keywords",
    "matchMode",
    "excludeKeywords",
    "typoTolerance",
    "buttons",
    "template",
    "commentReply",
    "dmMessageVariations",
    "commentReplyVariations",
    "linkTracking",
    "clickTag",
    "dmDelaySeconds",
    "commentReplyDelaySeconds",
    "alsoMatchInDms",
    "audience",
    "followGate",
    "isActive",
    "createdAt",
    "updatedAt"
  ]
}
CommentAutomationPaginationDto

#/components/schemas/CommentAutomationPaginationDto

{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "minimum": 0,
      "description": "Total records matching the filters."
    },
    "skip": {
      "type": "number",
      "minimum": 0
    },
    "limit": {
      "type": "number",
      "minimum": 1
    },
    "hasMore": {
      "type": "boolean",
      "description": "Derived: skip + number of returned records < total."
    }
  },
  "required": [
    "total",
    "skip",
    "limit",
    "hasMore"
  ]
}
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"
  ]
}