Webhooks

Receive chat events on your server, signed so you can trust them.

Webhooks send an HTTPS POST to your server when something happens in Risely Chat. Available on Pro and Business. Add endpoints in Developers → Webhooks.

Events

Event When
chat.started A visitor starts a new chat (includes the first message)
message.created A visitor or agent sends a message (internal notes are never sent)
chat.closed An agent or the visitor ends a chat
offline_message.created A visitor leaves a message outside office hours
chat.rated A visitor rates a chat good or bad
visitor.identified A visitor shares or updates their name, email or phone

Payload

{
  "id": "6f1c…",
  "event": "chat.started",
  "created_at": "2026-11-14T15:04:05+00:00",
  "data": {
    "conversation": { "id": "01J…", "status": "open", "website": "example.com", "visitor": { "name": "Emily Carter", "email": "emily@example.com" } },
    "message": { "id": 812, "sender_type": "visitor", "body": "Do you ship to Denver?" }
  }
}

Verifying the signature

Every request carries X-RiseChat-Signature: t=<timestamp>,v1=<signature>. Compute HMAC-SHA256 of "<timestamp>.<raw body>" with the endpoint's signing secret and compare it with v1 in constant time. Reject timestamps older than five minutes.

[$t, $v1] = sscanf($_SERVER['HTTP_X_RISECHAT_SIGNATURE'], 't=%d,v1=%s');
$expected = hash_hmac('sha256', $t.'.'.file_get_contents('php://input'), $secret);
if (! hash_equals($expected, $v1) || abs(time() - $t) > 300) { http_response_code(400); exit; }

Other headers: X-RiseChat-Event, X-RiseChat-Delivery (a unique id, useful for ignoring duplicates) and X-RiseChat-Timestamp.

Retries

Reply with any 2xx status within 10 seconds. Anything else is retried after 10 seconds, 1, 5, 15 and 30 minutes. After 50 failures in a row the endpoint is paused. Re-enable it from the dashboard once it's fixed. The last 50 deliveries per endpoint are listed under Deliveries.

Didn't find what you need? Email support