API & webhooks
Connect DungeonOS to your own spreadsheets, dashboards or automation tools. Part of the Premier plan.
API keys
- Open Integrations → API keys in your workspace and choose Create a key.
- Copy the key straight away — it starts with
dos_live_and is shown only once. DungeonOS keeps only a fingerprint of it. - Send it with every request:
Authorization: Bearer dos_live_… - Revoke a key any time; it stops working immediately.
Endpoints
All endpoints are read-only (GET) and return JSON. Each key only ever reads its own organization.
| Request | Returns |
|---|---|
GET /api/v1/organization | Your organization’s id, name, address on DungeonOS and type. |
GET /api/v1/events | Published and past events with capacity and spots left. Private addresses are never included. |
GET /api/v1/events/{eventId}/registrations | Name, reference, status, ticket type, payment state and check-in time for each guest. No notes and no email addresses. |
GET /api/v1/people?status=member | Your registry: name, member number, status, membership tier, tags and attendance. Banned people are left out. status can be guest, applicant, member or former. |
Example:
curl https://dungeonos.netlify.app/api/v1/events \
-H "Authorization: Bearer dos_live_…"
Limits & privacy
- 600 requests per hour per key. Past that you get
429until the hour rolls over. - Anything other than
GETreturns405— the API can’t change your records. - Safety records, incident reports, ban details, payment screenshots and private notes are never available through the API.
Webhooks
Under Integrations → Webhooks, add an https:// address and choose which events to send: sign-ups, approvals, tickets, payments, refunds, check-ins, membership applications, new members, membership dues, reviews, and events being published or cancelled. You’ll see a signing secret starting with whsec_ once — store it with your receiver.
Each delivery is a POST with a small JSON body:
{ "id": "…", "type": "payment.paid", "createdAt": "2026-10-22T19:04:11Z",
"organization": { "id": "…", "slug": "your-dungeon" },
"data": { "eventId": "…", "registrationId": "…", "amountCents": 2000 } }
Only ids and amounts are sent — fetch names through the API if you need them. Failed deliveries are retried automatically, and every attempt is listed in your workspace. Addresses on private networks aren’t allowed.
Verifying a webhook
Every delivery carries a DungeonOS-Signature header like t=1761159851,v1=5f2c…. To check it:
- Take
tand the raw request body, and join them with a dot:t.body. - Compute an HMAC-SHA256 of that string with your
whsec_secret, as hex. - Compare it with
v1using a constant-time comparison, and reject deliveries wheretis more than five minutes old.
// Node.js
const crypto = require('crypto');
function verify(header, rawBody, 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 || ''));
}
Use the Send a test button next to a webhook to check your receiver before going live.
If something goes wrong
401 Unauthorized
The key is missing, mistyped or revoked. Send it as “Authorization: Bearer dos_live_…”.
429 Too many requests
You’ve passed 600 requests in an hour for that key. Wait for the hour to roll over, or cache results.
A webhook signature doesn’t match
Sign the raw body exactly as received, before parsing it as JSON, and use the whsec_ secret for that webhook.
Still stuck? See the FAQ or contact us. Related: features · pricing.