whatsapp

Whatsapp Webhook

Parse the WhatsApp multipart, build a channel-blind InboundMessage, and dispatch to the generic core.

Multipart contract (#810, #814): payload is the JSON-encoded WhatsAppWebhookRequest body; audio, image, and document are mutually-exclusive optional file fields. At least one of text/audio/image/document must be present.

Returns 200 after the durable turn is enqueued; the coach run or invite send happens in the channel worker.

post/whatsapp_webhooks

Request

  • Base URL
    https://api.imperfect.co (the document declares no server; this is the origin it was published from)
  • URL
    https://api.imperfect.co/whatsapp_webhooks
  • Auth
    none declared

Headers

x-whatsapp-bridge-tokenstring nullable

Request body multipart/form-data

payloadstring required
audiostring binary nullable
imagestring binary nullable
documentstring binary nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 62 revisions of this API.