Send the key in the Authorization header of every request, and nowhere else. Only the OpenAPI document needs none.
Authorization: Bearer gwl_live_abcd2345_examplesecretexamplesecretexamplesecret2A live key starts gwl_live_ and a test key gwl_test_. That start is part of the key. A live key sent as gwl_test_, or the other way, is not a key.
- Team keys: the Team Leader makes them, or anyone given a team role with Manage API keys, in Team Settings, API access. A live key needs at least 5 on the roster; a key you already have keeps working if it drops below that.
- A team can have 5 live keys, and 5 test keys on top. Each has a name, the scopes you tick and an expiry of 30, 90, 365 days or none.
- Personal keys: anyone with Steam linked who has played in a confirmed league match gets a Developer access section on their account page, for up to 2 keys. They read only public data and end by themselves if Steam is unlinked.
- A key is shown once. If you lose it, rotate it: the same key gets a new secret and the old one stops at once.
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
- A key reaches one team, with the scopes ticked on it.
- It can only do what its maker could do. If they leave the team or can no longer manage API keys, it pauses; rotating it starts it again under the person who rotated it.
- If the maker loses the permission behind a scope, what needs it answers 403 scope_lost. A lost members.discord only leaves the names out.
- A revoke or a rotate works within 10 seconds, usually at once. League staff can end any key.
- While a team is suspended its keys are stopped. They work again when it is restored.
- How do I rotate a key?
- Rotate in Team Settings, API access. You get a new secret for the same key, scopes and expiry, and the old secret stops at once, so be ready to put the new one in place.
- My key says key_maker_no_access. Why?
- Whoever made or last rotated it can no longer manage API keys. The key is paused, not revoked: someone who can manage keys rotates it and it works again under them. key_maker_left is the same when they left the team.
- Can I call it from a web page?
- Not with a team key: a key in a page is a key anyone can copy. Public routes allow browser GETs, but your key still travels with them.
