WhatsMCP Accounts API
The Accounts API from WhatsMCP — 3 operation(s) for accounts.
The Accounts API from WhatsMCP — 3 operation(s) for accounts.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/whatsmcp-com:whatsmcp-com-accounts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: Send and read WhatsApp messages from your own accounts. The same capabilities as the WhatsMCP MCP server, over plain HTTP.
title: WhatsMCP Accounts API
version: 0.1.195
servers:
- url: https://api.whatsmcp.com
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Accounts
paths:
/v1/accounts:
get:
description: The WhatsApp accounts you can use. Every other call needs an account id from here; an account is usable only while its state is "connected". Mirrors the wmcp_list_accounts MCP tool (callable as wa_list_accounts too).
operationId: list-accounts
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListAccountsOutput'
description: OK
'401':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unauthorized
'403':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Forbidden
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: List WhatsApp accounts
tags:
- Accounts
/v1/accounts/{account_id}/plan:
get:
description: That number's plan, limits and the tools its plan leaves out (`excluded_tools`) — why a call on it answers plan_required.
operationId: get-account-plan
parameters:
- in: path
name: account_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetPlanOutput'
description: OK
'400':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Bad Request
'401':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unauthorized
'403':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Forbidden
'404':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Not Found
'422':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unprocessable Entity
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Read one number's plan, limits and usage
tags:
- Accounts
/v1/plan:
get:
description: Every number's plan and limits (`lines`), message usage, and the tools NO active number's plan includes. `plan` is "mixed" when the numbers are on different plans. Also reports the service version.
operationId: get-plan
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetPlanOutput'
description: OK
'400':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Bad Request
'401':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unauthorized
'403':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Forbidden
'404':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Not Found
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Read the workspace's plans, limits and usage
tags:
- Accounts
components:
schemas:
AccountCandidate:
additionalProperties: false
properties:
account_id:
description: the id to retry with as account_id
type: string
name:
description: the account's WhatsApp display name
type: string
phone:
description: the account's phone number, E.164
type: string
status:
description: whether the number works right now — live, connecting, or why not, as wa_list_accounts reports it
type: string
required:
- account_id
type: object
LineView:
additionalProperties: false
properties:
attachments_enabled:
description: whether this number's plan includes attachments — sending media and fetching inbound media with wa_get_media; when false, messaging is text-only
type: boolean
calls_inbound:
description: whether an incoming WhatsApp call to this number may ring your SIP PBX
type: boolean
calls_outbound:
description: whether your SIP PBX may place WhatsApp calls from this number
type: boolean
display_name:
description: the line's plan as the customer sees it
type: string
excluded_tools:
description: tools that act on this number (its tg_/wa_ family and the shared tools) that its plan does not include; calling one on this number returns a plan_required refusal
items:
type: string
type:
- array
- 'null'
frozen:
description: true when this number is on Free limits because its payment is overdue; pay in the console Billing page to restore its paid plan
type: boolean
history_days:
description: how long this number's messages are retained, in days; 0 means forever
format: int64
type: integer
kind:
description: 'the plan family this number is on: personal, business or telegram'
type: string
live:
description: false when this number is released, locked, unlinked or dormant — its plan then unlocks nothing for the workspace
type: boolean
max_attachment_mb:
description: largest attachment this number may SEND, in MB; 0 means no size limit. Applies only when attachments_enabled is true
format: int64
type: integer
messages_1h:
description: messages this number's plan allows per hour; 0 means unlimited
format: int64
type: integer
messages_24h:
description: messages this number's plan allows per 24 hours; 0 means unlimited
format: int64
type: integer
phone:
description: the line's WhatsApp number
type: string
plan:
description: the line's plan slug
type: string
primary_device:
description: whether this number's plan lets it run as its own main WhatsApp device, with no phone
type: boolean
rest_api:
description: whether this number may be reached over the WhatsMCP REST API as well as this MCP server
type: boolean
secondary_device:
description: whether this number's plan lets it run as a linked device beside the WhatsApp app on a phone
type: boolean
tools_prefix:
description: 'the tool family to use for this number: wa_ for a WhatsApp number, tg_ for a Telegram account'
type: string
webhooks_enabled:
description: whether this number's plan includes webhooks
type: boolean
required:
- plan
- display_name
- phone
- kind
- tools_prefix
- live
- messages_1h
- messages_24h
- attachments_enabled
- max_attachment_mb
- history_days
- webhooks_enabled
- calls_inbound
- calls_outbound
- primary_device
- secondary_device
- rest_api
type: object
ErrorModel:
additionalProperties: false
properties:
detail:
description: A human-readable explanation specific to this occurrence of the problem.
examples:
- Property foo is required but is missing.
type: string
errors:
description: Optional list of individual error details
items:
$ref: '#/components/schemas/ErrorDetail'
type:
- array
- 'null'
instance:
description: A URI reference that identifies the specific occurrence of the problem.
examples:
- https://example.com/error-log/abc123
format: uri
type: string
status:
description: HTTP status code
examples:
- 400
format: int64
type: integer
title:
description: A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
examples:
- Bad Request
type: string
type:
default: about:blank
description: A URI reference to human-readable documentation for the error.
examples:
- https://example.com/errors/example
format: uri
type: string
type: object
MessageMeter:
additionalProperties: false
properties:
limit:
description: messages allowed in this window; 0 means the plan does not cap it
format: int64
type: integer
unlimited:
description: true when this plan does not cap this window
type: boolean
used:
description: messages sent in this window so far
format: int64
type: integer
required:
- limit
- used
- unlimited
type: object
ListAccountsOutput:
additionalProperties: false
properties:
accounts:
description: the accounts this API key can use — WhatsApp numbers and Telegram accounts; each says which in backend
items:
$ref: '#/components/schemas/AccountView'
type:
- array
- 'null'
required:
- accounts
type: object
GetPlanOutput:
additionalProperties: false
properties:
accounts_paired:
description: WhatsApp numbers currently paired
format: int64
type: integer
attachments_enabled:
description: whether this plan includes attachments — both sending media and fetching inbound media with wa_get_media; when false, messaging is text-only and wa_get_media returns a plan_required refusal
type: boolean
description:
description: what the plan includes, for a human
type: string
display_name:
description: the plan's name as the customer sees it, e.g. Free, Pro
type: string
excluded_tools:
description: tools listed on this server that your plan does not include; calling one returns a plan_required refusal
items:
type: string
type:
- array
- 'null'
frozen:
description: true when this line is on Free limits because its payment is overdue, not because Free is the plan it pays for; pay at pay_url to restore the paid plan
type: boolean
history_days:
description: how long messages are retained, in days; 0 means forever
format: int64
type: integer
kind:
description: 'the plan family of the number named by account_id: personal, business or telegram; omitted for the workspace view, whose lines can differ'
type: string
lines:
additionalProperties:
$ref: '#/components/schemas/LineView'
description: every line's plan and limits, present only for the workspace view
type: object
max_attachment_mb:
description: largest attachment this plan may SEND, in MB; 0 means no size limit. Applies only when attachments_enabled is true — it does not gate fetching, and is never why wa_get_media is refused
format: int64
type: integer
messages_1h:
$ref: '#/components/schemas/MessageMeter'
description: the hourly message-send limit and usage
messages_24h:
$ref: '#/components/schemas/MessageMeter'
description: the 24-hour message-send limit and usage
pay_url:
description: when frozen, where the customer pays the overdue invoice to restore full service
type: string
plan:
description: the plan's slug, e.g. free, starter, pro — an identifier; show display_name to a person
type: string
refusal:
$ref: '#/components/schemas/Refusal'
description: present only when account_id names a line that cannot be used
server_build_date:
description: when that version was built
type: string
server_version:
description: the version of this MCP service
type: string
tools_prefix:
description: 'the tool family of the number named by account_id: wa_ for a WhatsApp number, tg_ for a Telegram account; omitted for the workspace view'
type: string
voice_plan:
$ref: '#/components/schemas/VoicePlanView'
description: 'the SIP calls this plan allows, or null when it allows none — or, for a workspace whose numbers are on different plans, null: see each line''s calls_inbound/calls_outbound'
webhooks_enabled:
description: whether this plan can register inbound webhooks
type: boolean
required:
- plan
- display_name
- server_version
- server_build_date
- accounts_paired
- messages_1h
- messages_24h
- webhooks_enabled
- attachments_enabled
- max_attachment_mb
- history_days
- voice_plan
type: object
Refusal:
additionalProperties: false
properties:
account_status:
description: 'when the number is not working: its status — starting, not_running, whatsapp_down (telegram_down for a Telegram account), suspended, pairing, unlinked or locked'
type: string
account_status_reason:
description: the detail of account_status, e.g. no_egress, stopped, no_plan
type: string
candidates:
description: 'on an account_ambiguous refusal: the accounts to choose from — retry with one of these as account_id'
items:
$ref: '#/components/schemas/AccountCandidate'
type:
- array
- 'null'
message:
description: a human-readable explanation
type: string
reason:
description: why the call was declined
type: string
refused:
description: true when the call was declined rather than performed
type: boolean
retry_after_seconds:
description: seconds to wait before retrying; absent or 0 means retrying will not help
format: int64
type: integer
since:
description: when the number stopped working, RFC3339, when known
type: string
required:
- refused
- reason
- message
type: object
AccountView:
additionalProperties: false
properties:
account_id:
description: the id to pass to other wa_ tools
type: string
backend:
description: 'the account''s backend: official (WhatsApp Business API), personal (a WhatsApp linked device) or telegram (a Telegram user account; its chats and senders are Telegram ids of the form <id>@telegram)'
type: string
country:
description: the country the account's phone number belongs to
type: string
egress:
description: 'how this account actually reaches WhatsApp: direct, socks5 or wireguard; absent until a bridge reports one'
type: string
egress_configured:
description: 'the egress this account is configured to use: direct, socks5 or wireguard'
type: string
egress_ip:
description: the public IP this account's traffic leaves from
type: string
features:
description: the functions this number supports, e.g. messaging, templates, groups, calls; call only tools whose function is listed here
items:
type: string
type:
- array
- 'null'
kind:
description: 'the plan family this number is on: personal (a WhatsApp personal number), business (a WhatsApp Business API number) or telegram (a Telegram account) — the family its plans and wa_/tg_ tools follow'
type: string
last_inbound_at:
description: 'the time this number last received a live (non-history) message, across all chats, RFC3339; absent when none is stored. Read it alongside status: a live number that is receiving has a recent last_inbound_at, so an empty message window with a recent last_inbound_at is a quiet conversation, not a missed one'
type: string
phone:
description: the account's phone number in E.164
type: string
push_name:
description: the display name WhatsApp (or Telegram) shows for this account
type: string
reason:
description: why the account is locked, when it is
type: string
state:
description: pairing, connected, disconnected, locked or unlinked; logged_out and pairing_failed rows exist but are not listed
type: string
status:
description: 'whether the number is actually working: live, connecting, starting, not_running, whatsapp_down (telegram_down for a Telegram account), suspended, pairing, unlinked or locked'
type: string
status_reason:
description: the detail when it is not live, e.g. no_egress, no_plan, stopped
type: string
status_since:
description: when it stopped working, RFC3339, when known
type: string
tools_prefix:
description: 'the tool family to use for this number: wa_ (its tools are wa_send_message, wa_list_messages, …) for a WhatsApp number, tg_ (tg_send_message, tg_list_messages, …) for a Telegram account'
type: string
what_to_do:
description: what is wrong and what to do, when it is not live; tell the user
type: string
required:
- account_id
- phone
- push_name
- state
- backend
- kind
- tools_prefix
- features
type: object
VoicePlanView:
additionalProperties: false
properties:
calls_ai:
description: whether your plan allows connecting an AI agent to your calls
type: boolean
calls_inbound:
description: whether an incoming WhatsApp call may ring your SIP PBX
type: boolean
calls_outbound:
description: whether your SIP PBX may place WhatsApp calls
type: boolean
label:
description: the voice plan's name as the customer sees it
type: string
name:
description: the voice plan's slug — an identifier; show label to a person
type: string
sip:
description: whether your calls may connect to a SIP phone or your own PBX
type: boolean
webrtc:
description: whether you may take and place your calls from the browser
type: boolean
required:
- name
- label
- calls_inbound
- calls_outbound
- calls_ai
- sip
- webrtc
type: object
ErrorDetail:
additionalProperties: false
properties:
location:
description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
type: string
message:
description: Error message text
type: string
value:
description: The value at the given location
type: object
securitySchemes:
apiKey:
description: An API key from the console.
in: header
name: X-API-Key
type: apiKey
bearerAuth:
description: 'An API key from the console (API keys page), as Authorization: Bearer wamcp_live_…. OAuth access tokens are not accepted here; they are for /mcp.'
scheme: bearer
type: http