Webhooks
NeatQueue sends HTTP POST requests to your endpoint whenever queue or match events occur, allowing you to integrate with external systems, track analytics, or build custom notifications.
What are Webhooks?
Webhooks are automated HTTP POST requests containing JSON data about events. Use them to:
- Track match results and player activity
- Integrate with databases or Discord bots
- Build analytics dashboards
- Send custom notifications
- Automate workflows
Setup
Run /webhooks add with your endpoint URL in the queue's channel. The bot replies with a webhook secret, and every request it sends to your URL carries that secret in the Authorization header.
Webhooks are set per queue: each queue has one webhook, so run the command in every queue channel you want events from. Running /webhooks add again replaces the URL and issues a new secret (this is also how you rotate it), and /webhooks delete stops delivery.
/webhooks generatetoken creates an API token for the NeatQueue API. It is not the webhook secret.
Supported Events
| Event | Description |
|---|---|
| JOIN_QUEUE | Player joins a queue |
| LEAVE_QUEUE | Player leaves a queue |
| MATCH_STARTED | Match validation begins |
| TEAMS_CREATED | Teams are formed and ready |
| MATCH_COMPLETED | Match in progress ends with a winner, a tie, or a cancellation |
| MATCH_CANCELLED | Match is cancelled while still in setup, before TEAMS_CREATED is sent |
| SUBSTITUTION | Player is substituted during a match |
| REGISTER_PLAYER | Player registers their in-game account |
Click any event to see detailed payload documentation.
Authentication & Security
All webhook requests include an Authorization header with your configured token:
POST /your-webhook-endpoint HTTP/1.1
Host: your-domain.com
Content-Type: application/json
Authorization: your-secret-token
Best Practices:
- Always validate the
Authorizationheader - Use HTTPS endpoints only
- Keep your token secure and rotate it periodically
- Respond within 10 seconds (timeouts occur after this)
- Deliveries are not retried: a request that fails or times out is dropped
Common Payload Fields
Every webhook includes these base fields:
| Field | Type | Description |
|---|---|---|
action | string | Event type (e.g., "JOIN_QUEUE", "MATCH_STARTED") |
queue | string | The queue's stats name: the queue name, or the shared stats name if the queue's stats are shared with other queues. While leaderboard seasons are enabled it is prefixed with the current season, e.g. 2026-10_valorant |
channel | string | Discord channel ID |
guild | string | Discord server ID |
Additional fields vary by event type. See the event reference for details.