- Open Team Settings, API access, and press Make a key. Choose Test key, tick Team record and press Make test key. Any team can do this, whatever its size.
- Press Copy key. The whole key is copied, including the gwl_test_ at the start, which is part of the key. It is shown once. Keep it in an environment variable, never in a web page.
- Call the API with it, as below.
- When your tool works, make a live key with the same scopes and swap it in. Nothing else changes: same paths, same fields, same errors.
Team and test keys
Team Settings, API access.
Open My teamPersonal keys
Your account, Developer access. It shows once you have played a confirmed match with Steam linked.
Open your account
export GWL_API_KEY=gwl_test_abcd2345_examplesecretexamplesecretexamplesecret2
curl "https://gwl.gg/api/v1/team" \
-H "Authorization: Bearer $GWL_API_KEY"The answer is Test Team, an invented team, with the header X-GWL-Mode: test.
{
"slug": "test-team",
"name": "Test Team",
"tag": "TEST",
"region": "EU",
"description": "An invented team for building against the API. Nothing here is real.",
"flag": "GB",
"flags": [
"GB"
],
"eloRating": 1482,
"ratedMatches": 12,
"seasonMatches": 6,
"placements": {
"first": 2,
"second": 7,
"third": 3
},
"seasonPlacements": {
"first": 1,
"second": 4,
"third": 1
},
"score": 781,
"seasonScore": 406,
"form": [
2,
2,
1,
2,
2
],
"reputationScore": 79,
"safetyBand": "Excellent",
"rosterCount": 8,
"leagueRank": 6
}