WhatsMCP Webhook API
The Webhook API from WhatsMCP — 1 operation(s) for webhook.
The Webhook API from WhatsMCP — 1 operation(s) for webhook.
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-webhook-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 Webhook API
version: 0.1.195
servers:
- url: https://api.whatsmcp.com
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Webhook
paths:
/v1/webhook:
delete:
description: Stops delivery and discards the endpoint and its secret. Messages keep arriving and stay readable with GET /v1/messages. To stop temporarily, PATCH it instead.
operationId: delete-webhook
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteWebhookOutput'
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
'429':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Too Many Requests
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Delete the inbound webhook
tags:
- Webhook
get:
description: The endpoint, its events, whether delivery is enabled and, when paused, why and by whom. `configured` is false when none is set. The signing secret is never returned.
operationId: get-webhook
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetWebhookOutput'
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
'429':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Too Many Requests
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Read the inbound webhook
tags:
- Webhook
patch:
description: '`enabled: false` pauses delivery, `true` resumes it; the endpoint and its signing secret are kept either way. Messages keep arriving while paused and stay readable with GET /v1/messages. Delivery paused by support cannot be resumed here.'
operationId: enable-webhook
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EnableWebhookInput'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/EnableWebhookOutput'
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
'422':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unprocessable Entity
'429':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Too Many Requests
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Pause or resume webhook delivery
tags:
- Webhook
put:
description: Registers the HTTPS endpoint that receives inbound messages, or replaces the current one. The answer carries the signing `secret` ONCE — store it now, it cannot be read back. Every call issues a NEW secret; to stop and restart deliveries without changing it, use PATCH /v1/webhook.
operationId: set-webhook
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetWebhookInput'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SetWebhookOutput'
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
'422':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Unprocessable Entity
'429':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Too Many Requests
'500':
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ErrorModel'
description: Internal Server Error
summary: Set the inbound webhook
tags:
- Webhook
components:
schemas:
EnableWebhookInput:
additionalProperties: false
properties:
enabled:
type: boolean
reason:
type: string
required:
- enabled
type: object
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
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
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
SetWebhookOutput:
additionalProperties: false
properties:
events:
items:
type: string
type:
- array
- 'null'
refusal:
$ref: '#/components/schemas/Refusal'
description: present only when the request was declined
secret:
description: the signing secret — shown ONCE; store it now, it cannot be retrieved later
type: string
test_delivery:
type: string
url:
type: string
verification:
type: string
warning:
type: string
webhook_id:
type: string
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
SetWebhookInput:
additionalProperties: false
properties:
events:
items:
type: string
type:
- array
- 'null'
url:
type: string
required:
- url
type: object
GetWebhookOutput:
additionalProperties: false
properties:
configured:
type: boolean
disabled_by:
description: 'who paused delivery: owner, system (our delivery worker) or staff (support, and not resumable here)'
type: string
disabled_reason:
type: string
enabled:
type: boolean
events:
items:
type: string
type:
- array
- 'null'
last_delivery_at:
type: string
url:
type: string
webhook_id:
type: string
required:
- configured
type: object
EnableWebhookOutput:
additionalProperties: false
properties:
enabled:
type: boolean
note:
type: string
refusal:
$ref: '#/components/schemas/Refusal'
description: present only when the request was declined
required:
- enabled
type: object
DeleteWebhookOutput:
additionalProperties: false
properties:
deleted:
type: boolean
note:
type: string
refusal:
$ref: '#/components/schemas/Refusal'
required:
- deleted
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