Skip to main content

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.

note

/webhooks generatetoken creates an API token for the NeatQueue API. It is not the webhook secret.

Supported Events​

EventDescription
JOIN_QUEUEPlayer joins a queue
LEAVE_QUEUEPlayer leaves a queue
MATCH_STARTEDMatch validation begins
TEAMS_CREATEDTeams are formed and ready
MATCH_COMPLETEDMatch in progress ends with a winner, a tie, or a cancellation
MATCH_CANCELLEDMatch is cancelled while still in setup, before TEAMS_CREATED is sent
SUBSTITUTIONPlayer is substituted during a match
REGISTER_PLAYERPlayer 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 Authorization header
  • 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:

FieldTypeDescription
actionstringEvent type (e.g., "JOIN_QUEUE", "MATCH_STARTED")
queuestringThe 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
channelstringDiscord channel ID
guildstringDiscord server ID

Additional fields vary by event type. See the event reference for details.