v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
WhatsApp Sandbox

Start a sandbox activation

Creates (or refreshes) a pending sandbox session for the given phone and immediately fires the verified sandbox template from the shared sandbox number to that phone. The session activates when the phone owner replies to that WhatsApp message — the reply itself is proof of ownership.

One phone per user: if the caller already has a non-expired session for a DIFFERENT phone, the request is rejected with invalid_field_value (the message names the existing phone so it can be revoked first). Re-creating a session for the SAME phone is idempotent and refreshes the verification template.

If Meta rejects the template send (not a WhatsApp number, paused WABA, token issue), the pending row is rolled back and the Meta error message is returned in error so the caller knows why.

post/v1/whatsapp/sandbox/sessions

Request body

phonestring required

Recipient phone in international format. Digits, spaces, dashes and a leading + are all accepted; the server normalizes to E.164 digits-only.

Example request

{
  "phone": "+34688246216"
}

Response

Session created or refreshed; verification template sent

sandboxNumberstring

Example response

{
  "session": {
    "phoneE164": "34688246216"
  },
  "sandboxNumber": "+12029087457"
}