Conversation created

Incoming webhook deliveries are authenticated with HMAC signature headers (X-Chatway-Signature and X-Chatway-Timestamp), not your Chatway API key.

A new chat has started.

POST webhook: conversation.created

Parameters

NameInRequiredTypeDescription
X-Chatway-EventheaderYesstringEvent name for this delivery. Example: conversation.created
X-Chatway-Webhook-IdheaderYesstring (uuid)Unique webhook subscription ID. Example: 9f3c2a1b-4d5e-6f70-8a9b-0c1d2e3f4a5b
X-Chatway-Delivery-IdheaderYesstringUnique ID for this HTTP delivery attempt (`del_…`). Example: del_456
X-Chatway-Delivery-AttemptheaderYesstringAttempt number for this event (`1` on first try). Sent as a decimal string in the header. Example: 1
X-Chatway-TimestampheaderYesstringUnix timestamp in seconds when the request was signed. Sent as a decimal string in the header. Example: 1785933000
X-Chatway-SignatureheaderYesstringHMAC SHA256 signature prefixed with `sha256=`. Example: sha256=3c9f5e2b1a0d4c8f7e6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4

Request body

Signed JSON envelope for this event.

application/json

Responses

200

Return any 2xx status to acknowledge receipt.

410

Optional HTTP 410 Gone to signal the endpoint is permanently unavailable. This delivery is not retried (same as other `4xx` responses). Disable the subscription in Chatway Settings if you want deliveries to stop.

Examples

Request body example

{
    "id": "evt_1234567890abcdef1234567890abcdef",
    "event": "conversation.created",
    "data": {
        "conversation": {
            "id": "750c42a1-1ce1-40ae-beba-4cc66f2b1023",
            "channel": "website",
            "status": "open",
            "widget_name": "Main site widget",
            "identifier": "wdg_abc123",
            "created_at": "2026-02-04T10:30:00Z",
            "first_page_url": "https://example.com/pricing"
        },
        "visitor": {
            "id": "bfc39f4b-e8aa-4e1c-8e6a-162a5d869702",
            "name": "John Doe",
            "email": "[email protected]",
            "phone": "+1XXXXXXXXXX",
            "country": "US",
            "ip": "203.0.113.10",
            "first_page_url": "https://example.com/pricing"
        }
    },
    "occurred_at": "2026-02-04T10:30:00Z",
    "version": "2026-09"
}