Bronjoy
Developers

Bronjoy webhooks for new, changed and cancelled bookings

How to receive Bronjoy booking webhooks, verify the X-Bronjoy-Signature header, and how retries and the delivery log work.

Bronjoy sends a POST to your URL whenever a booking is created, changed or cancelled — from any channel: your site, the catalogue, Telegram or the dashboard. Webhooks are part of the Avtopilot plan.

Add an endpoint

  1. Dashboard → Settings → API & webhooks → Webhooks → Add endpoint.
  2. Under Endpoint URL enter a public https:// address that answers with a 2xx status within 10 seconds.
  3. Tick the Events you want.
  4. Save and copy the Signing secret.
  5. Click Send test event — a ping event arrives, and the window shows the response code.

You can add up to 10 endpoints.

Events

EventWhen
appointment.createdA new booking, from any channel
appointment.updatedThe status or time changed: confirmed, completed, no-show, rescheduled
appointment.cancelledA booking was cancelled
pingOnly the Send test event button

Payload

{
  "id": "evt_4f1c2a9e-8f7b-4a6e-9d2c-1b3e5f7a9c0d",
  "type": "appointment.updated",
  "created_at": "2026-12-01T10:15:04+05:00",
  "organization_id": 12,
  "data": {
    "appointment": {
      "id": 5021,
      "status": "confirmed",
      "start_time": "2026-12-01T11:30:00+05:00",
      "end_time": "2026-12-01T12:00:00+05:00",
      "duration_minutes": 30,
      "price": 80000,
      "currency": "UZS",
      "service": { "id": 12, "name": "Мужская стрижка" },
      "staff": { "id": 3, "name": "Aziz" },
      "branch": { "id": 1, "name": "Yunusabad" },
      "client": { "id": 77, "name": "Anna", "phone": "+998901234567", "email": null },
      "notes": null,
      "cancellation_reason": null,
      "payment_status": null,
      "created_at": "2026-11-30T18:02:11+05:00",
      "updated_at": "2026-12-01T10:15:04+05:00"
    },
    "changes": {
      "status": { "from": "pending", "to": "confirmed" }
    }
  }
}
  • changes is present on appointment.updated and appointment.cancelled. It is always an object, even when empty.
  • status is one of pending, confirmed, cancelled, completed, no_show.
  • The event id is the same for every endpoint. Use it to avoid processing an event twice.

Request headers:

HeaderValue
X-Bronjoy-EventThe event type
X-Bronjoy-DeliveryThe delivery number
X-Bronjoy-Signaturet=<unix time>,v1=<signature>
User-AgentBronjoy-Webhooks/1.0

Verify the signature

v1 is an HMAC-SHA256 of the string <t>.<raw request body>, keyed with the endpoint's signing secret. Compute it over the body before parsing the JSON, and reject requests older than 5 minutes.

import crypto from 'node:crypto'

function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map(p => p.split('=')))
  const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex')
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
}

You can change the secret with New signing secret on the endpoint. The old one stops working immediately.

Retries and switching off

  • A non-2xx answer, a timeout or a connection error is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours — up to 6 attempts in all.
  • Redirects are not followed: answer from the final URL.
  • Addresses on internal networks (localhost, private IPs) are refused.
  • After 15 failed deliveries in a row the endpoint is switched off: "Turned off after failures". Fix your receiver and click Resume.

Every attempt is in the endpoint's Delivery log: response code, time and error. The log is kept for 30 days.

Copyright © 2026