Vesper Relay

Test mode

A key that starts with vr_test_ runs the whole API in test mode. Nothing reaches Meta, nothing is billed, and no number has to be connected. Use it to build and test your integration before the shop has gone through Embedded Signup.

What happens

Call In test mode
GET /numbers Returns one virtual number, phone_number_id 000000000000000.
POST /messages Validates to, template or text like a live send, stores the message, returns a wamid.test_… id.
Your webhook Receives sent, delivered and read statuses in Meta's shape, with header X-Relay-Mode: test and "relay_mode": "test" in the body.
GET /messages/{id} Reads test messages only.
POST /test/inbound Simulates a customer message to the shop (test keys only).
POST /templates Validates the template, including buttons, and answers APPROVED without submitting it to Meta.
POST /onboarding-links Refused: connecting a number is always real.

Test and live data are kept apart: a live key never sees test messages, and idempotency keys are separate per mode.

Limits

  • 200 test messages per account per 24 hours (answer 429 after that).
  • Test messages are deleted after 30 days.
  • Test mode cannot tell you whether Meta will approve a template or deliver to a number; only a live send can.

Simulate a reply

curl -X POST https://relay.vesperai.ch/api/v1/test/inbound \
  -H "Authorization: Bearer $RELAY_TEST_KEY" -H "Content-Type: application/json" \
  -d '{"from": "+41 79 123 45 67", "text": "Ich komme 10 Minuten später"}'