Skip to content
WhatSync/DocsAPI v1

Inspect campaign progress

Read your campaign state and durable attempted/accepted/failed/unknown/suppressed counters.

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

How it works

Completed means no more recipients are queued, not proof of delivery; inspect recipient outcomes.

Body parameters

campaignIdstring · uuidrequired

Campaign ID returned by create_campaign or get_campaign.

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"
    }
  },
  "required": [
    "campaignId"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "campaign_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "template_name": {
      "type": "string"
    },
    "template_language": {
      "type": "string"
    },
    "max_messages": {
      "type": "number"
    },
    "recipient_count": {
      "type": "number"
    },
    "attempted": {
      "type": "number"
    },
    "accepted": {
      "type": "number"
    },
    "failed": {
      "type": "number"
    },
    "unknown": {
      "type": "number"
    },
    "suppressed": {
      "type": "number"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [],
  "additionalProperties": true
}