A test key works at the same addresses, with the same header, the same scopes, the same answers and the same errors as a live key, but every answer comes from a sandbox of invented data: Test Team and its eight members, ten invented teams, matches, applications, open slots, an Elo history and a leaderboard. No real team, person or id is ever in it, and the sandbox reads nothing from the league.
- The same people who make live keys make test keys, with no roster minimum. A team can hold 5 test keys on top of its live ones.
- A test key gets 30 requests a minute and 1,000 a day.
- Every answer to a test key carries the header X-GWL-Mode: test. A live key’s answers never do.
- The data does not move with the clock: dates sit around 2027-01-15. Compare dates with each other, not with today.
- A test key with the Public league data scope also reads the sandbox’s standings, teams, results and leaderboard.
- Scopes are checked as for a live key: a scope you could not tick on a live key you cannot tick on a test key either, and a key whose maker loses the power stops the same way.
- Answering an application and changing the roster work only in the sandbox: nothing is saved and nobody is told. The sandbox remembers them for 10 minutes, or until you call POST /api/v1/test/reset.
- A test key costs your team nothing: it never touches real data and does not count towards the live key cap.
Add ?scenario=<name> to a call to see another state of the team. GET /api/v1/test/scenarios lists them. A live key’s scenario is ignored.
- default
- Test Team with 8 members, 2 upcoming and 3 recent matches, 2 applications and 2 open slots. Used when no scenario is given.
- empty-team
- A team made today: only its Team Leader, no matches, applications, slots or Elo history, and no rank.
- busy-week
- A busy week: 7 upcoming and 4 recent matches (one disputed), 6 applications and 5 open slots.
- full-roster
- The default team with a full roster of 32.
- errors
- Every call answers an error: the one named by force_error, or internal_error without it.
Add ?force_error=<code> to get that error, with its status and headers, so you can test how your tool handles it. Every code in the list of errors works.
curl -i "https://gwl.gg/api/v1/team?force_error=scope_lost" \
-H "Authorization: Bearer $GWL_API_KEY"