Skip to content
PaalChat Docs

Simulate an incoming message

.md
POST
https://whatsapp.paaltech.org/api/v1/businesses/{external_id}/sandbox/incoming

Token ability: messages.send ยท Authentication

Test keys only. A customer writes to a connected sandbox business: the message goes through the live path - contact, conversation, inbox, message.received callback - and opens the 24-hour window for from.

Path parameters

external_id string required

Your own ID for the business (Multi-SKUUL - the tenant ID).

Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.

Body parameters

from string required

The customer's WhatsApp number (digits).

Pattern ^[1-9][0-9]{6,14}$.

text string required

Max 4096 characters.

profile_name string | null
phone_number_id string | null

Which sandbox number receives it (when there are several).

Responses

201

The stored incoming message.

401

unauthenticated - missing, invalid, revoked or expired token

403

missing_ability, or sandbox_only (a live key).

404

not_found - not yours, or does not exist

409

sandbox_not_connected - connect the sandbox business first.

422

validation_failed - fields are invalid; see errors.

429

rate_limited - over 300 requests/minute for this product

Errors always look like {"error": {"code", "message"}} - see Errors and status codes.