Sandbox

Try it.
Send, reply, read the record.

Choose a sample template or a free reply, set the customer's consent and window, and press Send. The phone shows what the customer would see. Below it are the API request, the response and the signed webhooks, as the product would produce them.

Sandbox. Nothing leaves this server and no phone receives these messages. Live test sends to your own number open after Meta's review of our application.

Compose

approved Your order {{1}} ships on {{2}}. Reply here if anything needs to change.

Customer state

Marketing needs recorded consent. Free text needs the customer to have written in the last 24 hours.

Sample BusinessSandbox · no phone receives this

Example

Your order 4471 ships on Friday. Reply here if anything needs to change.

Preshak [Test Message]

accepted · sent · delivered · read

Got it.

Preshak [Test Message]

STOP, बंद or थांबवा opts the contact out.

The record

What your code would send.
What it would get back.

Example for order_update. Your first send replaces it with the server's answer.

Request

POST https://api.preshak.in/v1/messages
Authorization: Bearer pk_test_••••••••
Content-Type: application/json

{
  "to": "9198XXXXXXXX",
  "type": "template",
  "template": {
    "name": "order_update",
    "language": "en",
    "variables": [
      "4471",
      "Friday"
    ]
  },
  "idempotency_key": "sandbox-01bf7a25"
}

Response

HTTP 202 Accepted

{
  "id": "sbx_01bf7a25e514e0db",
  "wamid": "wamid.sandbox.e1fdeb6044785f49cf581481",
  "status": "accepted",
  "conversation_id": "sbx_conversation_sample",
  "contact_id": "sbx_contact_sample",
  "category": "utility"
}

Webhooks

Signed as the API reference describes: X-Preshak-Signature is sha256= and the HMAC-SHA256 of the timestamp, a dot and the raw body. The sandbox signs with the published sample secret sandbox-sample-secret; your endpoint gets its own secret.

POST <your webhook endpoint>
Content-Type: application/json
X-Preshak-Event: message.status
X-Preshak-Delivery: dlv_sbx_23882812e4c0238a
X-Preshak-Timestamp: 1796188323
X-Preshak-Signature: sha256=97e7bb41afd1ae2e2abb5a752c98b87b2f589a301460104453b59a40d38f384d

{
  "id": "dlv_sbx_23882812e4c0238a",
  "event": "message.status",
  "created_at": "2026-12-02T05:12:03.900Z",
  "attempt": 1,
  "data": {
    "message_id": "sbx_01bf7a25e514e0db",
    "conversation_id": "sbx_conversation_sample",
    "contact_id": "sbx_contact_sample",
    "wamid": "wamid.sandbox.e1fdeb6044785f49cf581481",
    "status": "sent",
    "timestamp": "2026-12-02T05:12:03.900Z"
  }
}

POST <your webhook endpoint>
Content-Type: application/json
X-Preshak-Event: message.status
X-Preshak-Delivery: dlv_sbx_ba4e449e4e0a7044
X-Preshak-Timestamp: 1796188325
X-Preshak-Signature: sha256=6eaa45b856a0948ee71181a34360c899b9d3798060377a98b27bacd62ac23602

{
  "id": "dlv_sbx_ba4e449e4e0a7044",
  "event": "message.status",
  "created_at": "2026-12-02T05:12:05.100Z",
  "attempt": 1,
  "data": {
    "message_id": "sbx_01bf7a25e514e0db",
    "conversation_id": "sbx_conversation_sample",
    "contact_id": "sbx_contact_sample",
    "wamid": "wamid.sandbox.e1fdeb6044785f49cf581481",
    "status": "delivered",
    "timestamp": "2026-12-02T05:12:05.100Z"
  }
}

POST <your webhook endpoint>
Content-Type: application/json
X-Preshak-Event: message.status
X-Preshak-Delivery: dlv_sbx_09f91ffce36d2f66
X-Preshak-Timestamp: 1796188327
X-Preshak-Signature: sha256=1899be0f90422536ef489f3d160c52e2d78c98125f5df28cc367bb17b6ef747d

{
  "id": "dlv_sbx_09f91ffce36d2f66",
  "event": "message.status",
  "created_at": "2026-12-02T05:12:07.200Z",
  "attempt": 1,
  "data": {
    "message_id": "sbx_01bf7a25e514e0db",
    "conversation_id": "sbx_conversation_sample",
    "contact_id": "sbx_contact_sample",
    "wamid": "wamid.sandbox.e1fdeb6044785f49cf581481",
    "status": "read",
    "timestamp": "2026-12-02T05:12:07.200Z"
  }
}

POST <your webhook endpoint>
Content-Type: application/json
X-Preshak-Event: message.received
X-Preshak-Delivery: dlv_sbx_6b9ec296b884257a
X-Preshak-Timestamp: 1796188329
X-Preshak-Signature: sha256=fb41fc0e02c2de7a3ea1f97bfaec52b76d2c419c4281a0506761e23023005111

{
  "id": "dlv_sbx_6b9ec296b884257a",
  "event": "message.received",
  "created_at": "2026-12-02T05:12:09.200Z",
  "attempt": 1,
  "data": {
    "message": {
      "id": "sbx_in_81054da98f8829c0",
      "conversation_id": "sbx_conversation_sample",
      "contact_id": "sbx_contact_sample",
      "channel_id": "sbx_channel_sample",
      "campaign_id": null,
      "wamid": "wamid.sandbox.4a5daabb2d9bb909f5a29fa2",
      "direction": "in",
      "type": "text",
      "category": null,
      "status": "received",
      "status_at": {
        "received": "2026-12-02T05:12:09.200Z"
      },
      "body": "Got it.\n\nPreshak [Test Message]",
      "media_id": null,
      "error_code": null,
      "error_message": "",
      "created_at": "2026-12-02T05:12:09.200Z"
    },
    "contact": {
      "id": "sbx_contact_sample",
      "wa_id": "9198XXXXXXXX",
      "name": "Sample Customer",
      "consent": "opted_in"
    },
    "conversation_id": "sbx_conversation_sample"
  }
}

The rules

The product's rules, not a mock-up.

Consent

Marketing goes only to a contact with recorded consent. Switch it off and send diwali_offer: 409 no_consent.

The window

Free text goes only inside 24 hours of the customer's last message. Switch the window off and reply: 409 window_closed.

Variables

A template takes exactly its variables. Leave one empty: 422 validation_error, with the count expected and given.

STOP

Reply STOP, बंद or थांबवा as the customer and the contact is opted out. The next marketing send is refused.

Watermark

Every sandbox message carries Preshak [Test Message] in its text and across the phone.

Not yet available

Live test sends to your own number open after Meta's review of our application, with your opt-in and a one-time code.

The API itself: the developer page and the API reference.

Get started

Every message.
A connection.

Send properly from day one.

Preshak is in private preview. We start with your team, your number and your first template, and the record begins on day one.