Events

All endpoints

What happened to the team, in order

GET/api/v1/team/events

Key
Team key, live or test

A feed to catch up from: pass the last id you handled as after and keep the next it returns. Events are kept 14 days. Each carries the slot or match as the other routes draw it (null once it is gone) and, for an application, only its id. Webhooks send the same objects.

Query parameters

  • afterintegeroptional

    Return events after this id; 0 for the oldest kept

    Default: 0 · Minimum: 0

  • limitintegeroptional

    How many, up to 100

    Default: 50 · Minimum: 1 · Maximum: 100

Answer, 200

  • eventsarray of object

    Oldest first

    5 fields in events
    • idinteger

      Increases with every event; use it as the cursor

    • typestring

      One of the event types listed in the handbook

    • createdAtstring (date-time)

      When it happened. UTC, ISO 8601

    • teamstring

      Slug of the team it is for

    • dataobject

      What it is about

      3 fields in events.data
      • slotobject or nullmay be absent

        The slot, for slot.* events; null once it is gone

        15 fields in events.data.slot
        • idstring

          Slot id; /matches?slot=<id> on the site

        • startsAtstring (date-time)

          When the match would start. UTC, ISO 8601

        • regionstring

          Competitive region code: EU, NA, SA, ASIA, OCE or MEA

        • mapstring

          Map id, the game’s own, or random

        • mapNamestring

          The map’s name as the website shows it; Random for a random map

        • layerstring or null

          Zone key; null for none

        • zonestring or null

          The zone as the website shows it ("Random zone" when none was picked); null for a random map

        • weatherstring or null

          Weather key (clear, overcast, rain, fog, storm), or null for any

        • seatsFilledinteger

          Teams in it so far, of three

        • seatsFreeinteger

          Seats still open, of three

        • hoststring

          Slug of the team that posted it

        • teamsarray of object

          The teams in it so far, the poster first, with names and tags

          3 fields in events.data.slot.teams
          • slugstring

            The team’s address on the site (/teams/<slug>): its id here

          • namestring or null

            Team name; null if it is gone

          • tagstring or null

            Team tag; null if it is gone

        • yoursboolean

          Whether your team is one of the teams in it

        • privateboolean

          Whether it is an invitation only slot. You only see one you posted or were invited to

        • joinedTeamstring or null

          Slug of the second team; null while that seat is free

      • matchobject or nullmay be absent

        The match, for match.* events; null if it is gone

        19 fields in events.data.match
        • numberstring

          The match number, as on the website

        • statusstring

          scheduled (locked, not played), reported (played, nothing counts yet: no result, or one that waits to be confirmed), confirmed (the result counts) or disputed (a team disputed it: nothing counts until league staff settle it). A result read from the game is confirmed as soon as the league reads it, and can still become disputed until disputeUntil

        • ratedboolean

          Whether the result is moving Elo now. False again while the match is disputed

        • regionstring

          Competitive region code: EU, NA, SA, ASIA, OCE or MEA

        • mapstring

          Map id, the game’s own: kavkazi, europe, north-america or sabatulo

        • mapNamestring

          The map’s name as the website shows it, for example Zestafona for north-america

        • layerstring or null

          Zone key as stored on the match; null for Random or none

        • zonestring or null

          The zone as the website shows it. "Random zone" when no zone was picked or rolled; null only when the map itself is Random

        • weatherstring or null

          Weather key (clear, overcast, rain, fog, storm), or null for any

        • seasonstring or null

          Name of the season the match belongs to; null when none was running

        • startsAtstring (date-time)

          When it starts. UTC, ISO 8601

        • concludedAtstring (date-time) or null

          When the result that counts was confirmed: set with status confirmed, null otherwise (and again while disputed). It moves when league staff settle a dispute. UTC, ISO 8601

        • disputeUntilstring (date-time) or null

          Set while the result already counts and a team can still dispute it: the end of that window. Null otherwise. UTC, ISO 8601

        • durationSecondsinteger or null

          How long it was played, in seconds; null when unknown

        • hoststring or null

          Team slug of the host; null when no team hosts (a GWL official server, or the host team is gone)

        • sidesarray of object

          The three teams, host first

          6 fields in events.data.match.sides
          • teamobject

            A team, by slug, name and tag

            3 fields in events.data.match.sides.team
            • slugstring

              The team’s address on the site (/teams/<slug>): its id here

            • namestring or null

              Team name; null if it is gone

            • tagstring or null

              Team tag; null if it is gone

          • factionstring or null

            Faction code once a moderator assigns one, else null

          • scorenumber or null

            The side’s in-game score, 0 to 100; null before a result

          • placementinteger or null

            1, 2 or 3; null before a result

          • pointsnumber or null

            Placement points for the match: 5 for 1st, 3 for 2nd, 1 for 3rd. They count only while the status is confirmed

          • eloDeltanumber or null

            Elo change from this match as it counts now; null while it is not rated, a disputed match included

        • lockedAtstring (date-time) or null

          When the third team joined and it became a match. UTC, ISO 8601

        • serverPostedboolean

          Whether server details have been posted. This route never returns them: see /team/matches/{number}/server

        • readyTeamsarray of string

          Slugs of the teams that pressed Ready

      • applicationIdstringmay be absent

        The application, for application.submitted

  • nextinteger

    Pass this as after next time

  • hasMoreboolean

    Whether there are more after these

Errors

  • 400
    invalid_request

    A query parameter or body field is missing, of the wrong type or out of range.

  • 403
    missing_scope

    The key was made without the scope the route needs. The message names it.

  • 403
    scope_lost

    The scope is ticked, but the key’s maker no longer holds the team permission behind it.

  • 403
    wrong_key_type

    A personal key on a team route, or a team live key on a public route.

And any request (11) to GET /team/events
  • 401
    missing_key

    No Authorization header, or not a bearer token.

  • 401
    invalid_key

    Not a key, a mistyped one, or a key used in the wrong mode.

  • 401
    key_revoked

    The key was revoked, by its team, by league staff or because its team is gone.

  • 401
    key_expired

    The key passed the expiry chosen when it was made.

  • 403
    team_suspended

    League staff suspended the team. Its keys work again when it is restored.

  • 403
    key_maker_left

    The person who made or last rotated the key left the team. Rotating starts it again.

  • 403
    key_maker_no_access

    The person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.

  • 429
    rate_limited

    Over the per-minute limit for the key or the address. Wait for Retry-After.

  • 429
    daily_limit

    A personal or test key used its requests for the day.

  • 429
    too_many_bad_keys

    Too many wrong keys from one address. Wait for Retry-After.

  • 500
    internal_error

    A fault on the league’s side. Try again later.

Request, curl
curl "https://gwl.gg/api/v1/team/events?limit=3" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "events": [
    {
      "id": 1,
      "type": "slot.posted",
      "createdAt": "2027-01-13T20:00:00.000Z",
      "team": "test-team",
      "data": {
        "slot": {
          "id": "test-slot-01",
          "startsAt": "2027-01-18T19:00:00.000Z",
          "region": "EU",
          "map": "sabatulo",
          "mapName": "Sabatulo",
          "layer": "Default",
          "zone": "Hospital - Default",
          "weather": "fog",
          "seatsFilled": 1,
          "seatsFree": 2,
          "host": "test-team",
          "teams": [
            {
              "slug": "test-team",
              "name": "Test Team",
              "tag": "TEST"
            }
          ],
          "yours": true,
          "private": false,
          "joinedTeam": null
        }
      }
    },
    {
      "id": 2,
      "type": "slot.posted",
      "createdAt": "2027-01-14T01:00:00.000Z",
      "team": "test-team",
      "data": {
        "slot": {
          "id": "test-slot-02",
          "startsAt": "2027-01-21T19:00:00.000Z",
          "region": "EU",
          "map": "europe",
          "mapName": "Ozeti",
          "layer": "Church",
          "zone": "Church",
          "weather": null,
          "seatsFilled": 2,
          "seatsFree": 1,
          "host": "stub-strikers",
          "teams": [
            {
              "slug": "stub-strikers",
              "name": "Stub Strikers",
              "tag": "STUB"
            },
            {
              "slug": "test-team",
              "name": "Test Team",
              "tag": "TEST"
            }
          ],
          "yours": true,
          "private": false,
          "joinedTeam": "test-team"
        }
      }
    },
    {
      "id": 3,
      "type": "match.locked",
      "createdAt": "2027-01-14T06:00:00.000Z",
      "team": "test-team",
      "data": {
        "match": {
          "number": "9105",
          "status": "scheduled",
          "rated": false,
          "region": "EU",
          "map": "sabatulo",
          "mapName": "Sabatulo",
          "layer": "Default",
          "zone": "Hospital - Default",
          "weather": "clear",
          "season": "Sandbox Season",
          "startsAt": "2027-01-17T19:00:00.000Z",
          "concludedAt": null,
          "disputeUntil": null,
          "durationSeconds": null,
          "host": "test-team",
          "sides": [
            {
              "team": {
                "slug": "test-team",
                "name": "Test Team",
                "tag": "TEST"
              },
              "faction": "lonestar",
              "score": null,
              "placement": null,
              "points": null,
              "eloDelta": null
            },
            {
              "team": {
                "slug": "example-eagles",
                "name": "Example Eagles",
                "tag": "EXEG"
              },
              "faction": null,
              "score": null,
              "placement": null,
              "points": null,
              "eloDelta": null
            },
            {
              "team": {
                "slug": "sample-sappers",
                "name": "Sample Sappers",
                "tag": "SMPL"
              },
              "faction": null,
              "score": null,
              "placement": null,
              "points": null,
              "eloDelta": null
            }
          ],
          "lockedAt": "2027-01-14T19:00:00.000Z",
          "serverPosted": false,
          "readyTeams": [
            "test-team"
          ]
        }
      }
    }
  ],
  "next": 3,
  "hasMore": true
}