VCR WhatsApp Demo

Available endpoints for testing logging, state, and webhooks. Use the Run buttons to trigger the logging tests; check your VCR logs for the output.

Logging tests

MethodEndpointDescriptionAction
GET /log/sdk Log via the VCR SDK session logger, including a structured context object.
GET /log/multiline Emit several lines from a SINGLE console.log call.
GET /log/exception Force an exception, catch it, and log it with console.error (message + stack).
GET /log/uncaught Throw an uncaught exception with NO logging at all.
GET /logs Emit 100,000 timestamped console.log lines.
GET /logsBig Emit 1,000 large console.log lines (each with a big string).

State API

MethodEndpointDescriptionAction
POST /state/session/set Save { key, value } to session-scoped state.
POST /state/instance/set Save { key, value } to instance-scoped state.
POST /state/global/set Save { key, value } to account/global-scoped state.
GET /state/session/get?key=<key> Read a value from session-scoped state.
GET /state/instance/get?key=<key> Read a value from instance-scoped state.
GET /state/global/get?key=<key> Read a value from account/global-scoped state.

Webhooks & inspection

MethodEndpointDescriptionAction
POST /onMessage Inbound WhatsApp message webhook (auto-replies "OK").
POST /onMessageEvent WhatsApp message status/event webhook.
ALL /callback Records the last request received for later inspection.
GET /lastInbound Return the last inbound WhatsApp message received.
GET /lastMessageEvent Return the last onMessageEvent payload received.
GET /lastRequest Return the last request captured on /callback.

System

MethodEndpointDescriptionAction
GET /_/health Health check (returns 200).
Click a "Run" button to call an endpoint. The HTTP status and response body will appear here.