Skip to content
WhatSync/DocsAPI v1

Inspect campaign recipient outcomes

Read a bounded page of recipient outcomes and provider message IDs.

POST/api/v1/tools/list_campaign_recipientsRead
Key permissions
Read chats and messages + Run campaigns
Authentication
Authorization: Bearer $WHATSYNC_API_KEY
How keys work

How it works

Pending, sending, accepted, failed, unknown and suppressed are distinct; never automatically retry uncertain recipients.

Body parameters

campaignIdstring · uuidrequired

Campaign ID returned by create_campaign or get_campaign.

afterstring · uuidoptional

Lower date boundary or pagination value. Keep the same filters between pages.

limitintegeroptional

Maximum results per page. See the schema for bounds and defaults.

statuspending | sending | accepted | failed | unknown | suppressedoptional

See the example and input schema for this value.

Conditions and pagination

  • Pass the returned next_cursor (next_after for forms) as after. Stop when that value is null.

Response

HTTP 200 returns this tool's JSON directly, without an MCP content wrapper. Optional provider fields may be absent or null; check pagination and coverage before treating a page as complete.

Every response includes X-Request-Id. Errors use the shared error format and retry rules.

Schemas

Input JSON Schema
Input JSON Schema
{
  "type": "object",
  "properties": {
    "campaignId": {
      "type": "string",
      "format": "uuid"
    },
    "after": {
      "type": "string",
      "format": "uuid"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "sending",
        "accepted",
        "failed",
        "unknown",
        "suppressed"
      ]
    }
  },
  "required": [
    "campaignId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "recipients": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Provider or tool-specific fields; preserve unknown fields."
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [],
  "additionalProperties": true
}