Guide
Webhooks
DevonDesk can tell your other systems the moment someone joins, books or cancels. This page says what is sent, how to check it came from us, and what happens if your end is down.
What a webhook is
You give us a web address. When something happens in your workspace, we send a short message to that address straight away. What happens next is up to whatever is at the address: it might add a row to a spreadsheet, post in a team chat, or tell a door system who to let in.
You don’t need to write code to use them. Tools like Zapier and Make can receive a webhook and pass it on to hundreds of other apps. If you do write code, everything you need is below.
Setting one up
Webhooks are included on every plan, pay as you go included.
- Sign in as the workspace’s owner and open Webhooks in your dashboard.
- Under Add an address, paste the address to send to and tick what you want to be told about.
- Copy the signing secret shown beside the new address into whatever will receive the messages, if it can check signatures.
- Press Send a test. The result shows straight away, and under Recently sent.
A workspace can have up to 5 addresses, each told about a different set of events. Addresses must start with https:// and be reachable over the internet.
What you can be told about
| Event | Sent when |
|---|---|
booking.confirmed | A booking becomes confirmed: a card payment goes through, someone books to pay on arrival, or your staff enter one. Not sent while a customer is still at the payment page. |
booking.cancelled | A confirmed booking is cancelled or deleted by your staff. Not sent for a checkout that was abandoned, since that never became a booking. |
member.created | Someone creates an account on your booking page. They have no membership yet; if they join one, member.updated follows. |
member.updated | A member’s membership changes (they join, are approved, pay, fall behind, cancel, or you move them), or you suspend or reactivate their account. |
These names are the short descriptions in your dashboard: “A booking is confirmed”; “A confirmed booking is cancelled or deleted”; “Someone creates an account”; “A member’s membership or account status changes”.
What is sent
Each message is an HTTP POST with a JSON body. Every body has the same outer shape:
| Field | What it is |
|---|---|
id | The event’s own id. The same event always has the same id, however many times it is sent, so you can use it to ignore repeats. |
type | Which event it is, from the table above. |
created | When it happened, in UTC. |
workspace | Your workspace’s name, and the short name in its booking page address. |
data | The booking or the member, in full, as it stands after the change. A booking event has data.booking; a member event has data.member. |
A booking
{
"id": "evt_1c9e4b7a2d5f48c0b6a3",
"type": "booking.confirmed",
"created": "2026-11-25T10:15:03.000Z",
"workspace": {
"slug": "harbour-works",
"name": "Harbour Works"
},
"data": {
"booking": {
"id": "0b6f4a0e-6c1d-4e0f-9a61-3f1f3a6d2c11",
"reference": "BK-7K2M9Q",
"status": "CONFIRMED",
"space": {
"id": "spc_3f9a1c2e7b5d4a6f8c01",
"name": "Desk 4",
"type": "Hot desk"
},
"length": "DAY",
"start_at": "2026-12-01T09:00",
"end_at": "2026-12-01T17:00",
"timezone": "Europe/London",
"start_at_utc": "2026-12-01T09:00:00.000Z",
"end_at_utc": "2026-12-01T17:00:00.000Z",
"amount_minor": 2500,
"tax_minor": 417,
"currency": "GBP",
"payment": "stripe",
"customer": {
"name": "Sam Carter",
"email": "sam@example.com",
"company": "Carter Design"
},
"member_id": "mem_8d2c41b7a9e04f61b3c5",
"membership": {
"id": "pln_5e7a90c3d1f24b68a2e9",
"name": "Monthly Hotdesk"
},
"notes": null,
"created_at": "2026-11-25T10:15:02.000Z"
}
}
}start_atandend_atare the time on the clock at your venue.start_at_utcandend_at_utcare the same moments in UTC, which is usually what another system wants.amount_minoris the total in the smallest unit of the currency, so 2500 is £25.00. It includestax_minor.paymentisstripefor a card payment,offlinewhen they pay on arrival, andmanualwhen your staff entered the booking.member_idandmembershiparenullfor someone booking without a membership.- A
booking.cancelledmessage carries the same booking withstatusset toCANCELLED.
A member
{
"id": "evt_9a4c2e7b5d1f40c8b3a6",
"type": "member.updated",
"created": "2026-11-20T14:05:10.000Z",
"workspace": {
"slug": "harbour-works",
"name": "Harbour Works"
},
"data": {
"member": {
"id": "mem_8d2c41b7a9e04f61b3c5",
"name": "Sam Carter",
"email": "sam@example.com",
"company": "Carter Design",
"phone": "07700 900123",
"address": null,
"status": "ACTIVE",
"membership": {
"id": "pln_5e7a90c3d1f24b68a2e9",
"name": "Monthly Hotdesk"
},
"membership_status": "ACTIVE",
"membership_active": true,
"created_at": "2026-11-20T14:02:41.000Z"
}
}
}membership_activeis the one to act on. It istrueonly while the member’s account works and their membership’s prices and booking hours apply to them.membership_statussays why:NONE,ACTIVE,PENDING_PAYMENT,PENDING_APPROVAL,PAST_DUEorCANCELLED. A member whose card payment has failed (PAST_DUE) keeps their membership while it is retried.statusisSUSPENDEDwhen you have stopped them signing in.phoneandaddressarenullunless your sign-up form asks for them.- Passwords and access codes are never sent.
The headers
| Header | What it is |
|---|---|
DevonDesk-Event | The event’s type, the same as type in the body. |
DevonDesk-Delivery | An id for this delivery to this address. It stays the same across retries. |
DevonDesk-Signature | Proof the message came from us. See below. |
Checking a message came from us
Anyone who learns your address could send it a made-up message. So each real one is signed with your address’s signing secret, which only you and we know. If what receives the messages can check the signature, it should, before acting on anything.
The DevonDesk-Signature header looks like this:
t=1795600503,v1=5f2b8c…a91et is when we sent it, in seconds. v1 is an HMAC-SHA256, in hex, of t, a full stop, and the body exactly as it arrived, using your signing secret as the key. To check a message:
- Take the body as raw text, before anything parses it. Parsing and re-writing JSON can change it, and the signature will no longer match.
- Work out the HMAC-SHA256 of
t + "." + bodywith your secret. - Compare it with
v1. If they differ, ignore the message. - Ignore it too if
tis more than five minutes old. That stops someone replaying a real message they recorded earlier.
In Node.js
const crypto = require('crypto');
// rawBody: the request body exactly as received, before any JSON parsing.
// header: the value of the DevonDesk-Signature header.
// secret: the signing secret shown beside the address in your dashboard.
function isFromDevonDesk(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 recent = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
return (
recent &&
parts.v1.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected))
);
}In Python
import hashlib
import hmac
import time
# raw_body: the request body exactly as received, as bytes.
# header: the value of the DevonDesk-Signature header.
# secret: the signing secret shown beside the address in your dashboard.
def is_from_devondesk(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
signed = parts["t"].encode() + b"." + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
recent = abs(time.time() - int(parts["t"])) < 300
return recent and hmac.compare_digest(parts["v1"], expected)If you think a secret has got out, press Replace beside it in your dashboard. Messages are signed with the new one from that moment.
Answering, and what happens if you don’t
Answer with any status from 200 to 299 within 10 seconds and we count the message as received. We don’t read what you send back. If the work takes longer than that, answer first and do the work afterwards.
Anything else counts as not received: another status, no answer in time, or no connection. We don’t follow redirects, so use the final address. We then try again, up to 6 times in all, waiting about 5 minutes, 30 minutes, 2 hours, 6 hours and then 12 hours between tries. Retries are checked every 15 minutes, so each can be a little later than that. After the last try the message is marked Not received in your dashboard, where you can press Send again once your end is fixed.
Two things follow from retries, and are worth building for:
- You may get the same event twice. If your answer was lost on the way back, we will send it again. Keep the
idof events you have handled and skip any you have seen. - Events may arrive out of order. A retried message can land after a newer one. Every message carries the whole booking or member as it was at that moment, so compare
createdand keep the newest.
Testing
Send a test sends this, signed like any other message, whether or not the address is switched on. It is sent once and not retried.
{
"id": "evt_5d0b3a8c6e2f49a1b7c2",
"type": "ping",
"created": "2026-11-25T10:00:00.000Z",
"workspace": {
"slug": "harbour-works",
"name": "Harbour Works"
},
"data": {
"message": "This is a test from DevonDesk. Nothing has happened in your workspace."
}
}Without writing code
In Zapier, start a Zap with Webhooks by Zapier and choose Catch Hook. In Make, start a scenario with Webhooks and choose Custom webhook. Either gives you an address to paste into your dashboard. Send a test so the tool can see the shape of a message, then make a real booking on your booking page to see a full one.
These tools usually can’t check the signature, so treat the address they give you as a password: anyone who has it can send made-up messages to your Zap or scenario.
An example: door access
DevonDesk doesn’t control doors itself, but webhooks give a door system what it needs to decide. A common arrangement:
- On
member.updated, give the person access whenmembership_activeistrueand take it away when it isfalse. Usemembership.nameto choose which doors and hours. - On
booking.confirmed, let the customer in fromstart_at_utctoend_at_utc. Onbooking.cancelled, take that back.
Your customers’ details
These messages carry names, email addresses and, where you collect them, phone numbers and postal addresses. Sending them to another system is your decision as the business your customers deal with, so only add addresses you trust, and tell your customers about it in your own privacy notice if it isn’t already covered. We keep a record of each message for 30 days, so you can see what was sent and send it again, and then delete it. See our privacy policy for the rest.
Help
Stuck, or need an event that isn’t here? Email hello@devondesk.com.