Plans and keys
Standard: 1 read-only key. Pro: up to 5 keys that can also write (whitelist, priority list, kick, message, bans), plus signed webhooks. Community: unlimited keys, player lookup and leaderboards, higher limits.
API tokens cannot run money, bank, ATM, garage, base-wipe, admin-right, premium, reputation or mod actions: TheModBase admin rights, TB premium (give or remove), TB reputation and DayzHUB mod actions work only from the dashboard. Giving and spawning items still works through the API.
Giving and spawning items through the API needs the token permission "Can give and spawn items" (a checkbox when you make a write token). New tokens have it off; tokens made before keep it.
- Open API and choose New token.
- Name it, pick read or write and, if you like, limit it to some servers or an end date.
- Copy the token: it is shown once.
Calls and limits
JSON over HTTPS at https://dayzhub.cloud/api/v1/console, with Authorization: Bearer and your token. Each key has its own rate limit per minute and per day (Standard 30 and 3000, Pro 120 and 30000, Community 300 and 150000). Player IPs and BattlEye GUIDs are never in it.
The API page shows your exact base URL, and the machine-readable OpenAPI description is public at /api/v1/console/openapi.json.
Signed webhooks (Pro)
Your own endpoint receives joins, leaves, kills, bans, server status, reports and alerts as signed JSON, with retries and a delivery log. Add an endpoint on the API page and copy its secret (whsec_...).
Check the signature
- Read the X-DHC-Timestamp and X-DHC-Signature headers: the signature looks like t=1760000000,v1=abc.
- Compute HMAC-SHA256 of the timestamp, a dot and the exact raw request body, with your endpoint secret, as lowercase hex.
- Compare it with each v1 value using a constant-time comparison.
- Refuse the delivery when the timestamp is more than 5 minutes off your clock, and ignore an event id you already handled.
Good to know: Use the raw bytes of the body, before any JSON parsing. Examples for Node, Python, curl and PowerShell are in the API reference.