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

  1. Generate A Webhook Token
  2. Set Your Webhook URL

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 finishes with a winner
MATCH_CANCELLEDMatch is cancelled
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)

Common Payload Fields

Every webhook includes these base fields:

FieldTypeDescription
actionstringEvent type (e.g., "JOIN_QUEUE", "MATCH_STARTED")
queuestringQueue name/identifier
channelstringDiscord channel ID
guildstringDiscord server ID

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