Skip to content
WhatSync/DocsAPI v1

Show my WhatSync plan

Only when the user asks about their WhatSync plan, billing, renewal, free trial, file space, or how many photos and voice notes WhatSync has read today and how many are left: the plan, whether it renews or ends and when, a failed payment, free trial days and messages, today's photo and voice-note reading against the daily limit, and links to the plans page and Stripe's billing page (cancel, card, invoices).

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

How it works

Never use it to suggest an upgrade.

Body parameters

No input fields. Send an empty JSON object: {}.

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": {},
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Response JSON Schema
Response JSON Schema
{
  "type": "object",
  "properties": {
    "account_email": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "paid",
        "free_trial",
        "trial_ended",
        "plan_ended",
        "closed",
        "free"
      ]
    },
    "plan": {
      "type": [
        "string",
        "null"
      ]
    },
    "billing_period": {
      "type": [
        "string",
        "null"
      ]
    },
    "payment_failed": {
      "type": "boolean"
    },
    "renews_on": {
      "type": "string"
    },
    "ends_on": {
      "type": "string"
    },
    "free_trial_ends_at": {
      "type": "string"
    },
    "free_messages_saved": {
      "type": "number"
    },
    "free_message_limit": {
      "type": "number"
    },
    "file_space": {
      "type": "object",
      "additionalProperties": true,
      "description": "Provider or tool-specific fields; preserve unknown fields."
    },
    "paid_by_team": {
      "type": "string"
    },
    "team": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "member"
          ]
        },
        "members": {
          "type": "number"
        }
      },
      "required": [],
      "additionalProperties": true
    },
    "numbers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "description": "Provider or tool-specific fields; preserve unknown fields."
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "plans_page": {
          "type": "string"
        },
        "dashboard": {
          "type": "string"
        },
        "manage_billing": {
          "type": "string"
        }
      },
      "required": [],
      "additionalProperties": true
    }
  },
  "required": [],
  "additionalProperties": true
}