Members

All endpoints

The team’s members

GET/api/v1/team/members

Key
Team key, live or test

Adds discordName with members.discord, discordId with members.discord_id and steamId with members.steam_id. Each field is absent without its scope. Only the team’s own members are listed.

Answer, 200

  • membersarray of object

    Everyone on the team, Leader first

    10 fields in members
    • namestring

      Display name

    • rolestring

      owner (Team Leader), manager (Team Rep) or player

    • joinedAtstring (date-time)

      When they joined the team. UTC, ISO 8601

    • linkedboolean

      Has a site account (false: a roster row only)

    • playerIdstringmay be absent

      Their player page id (/players/<id>), when they have one

    • countrystringmay be absent

      ISO 3166-1 alpha-2 country the person chose to show

    • roleLabelsarray of stringmay be absent

      Team roles the team gave them (Pilot, Medic): labels only

    • discordNamestringmay be absent

      Discord username. Only with the members.discord scope

    • discordIdstring or nullmay be absent

      Discord account ID. Only with the members.discord_id scope (absent without it); null when the member has not linked Discord

    • steamIdstring or nullmay be absent

      SteamID64. Only with the members.steam_id scope (absent without it); null when none is known

Errors

  • 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/members
  • 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/members" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "members": [
    {
      "name": "Ada Example",
      "role": "owner",
      "joinedAt": "2026-07-19T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-01",
      "country": "GB",
      "roleLabels": [
        "Commander"
      ],
      "discordName": "ada.example",
      "discordId": "10000000000000001",
      "steamId": "76561190000000001"
    },
    {
      "name": "Bram Sample",
      "role": "manager",
      "joinedAt": "2026-07-23T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-02",
      "country": "NL",
      "roleLabels": [
        "Pilot"
      ],
      "discordName": "bram.sample",
      "discordId": "10000000000000002",
      "steamId": "76561190000000002"
    },
    {
      "name": "Cleo Placeholder",
      "role": "manager",
      "joinedAt": "2026-08-18T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-03",
      "country": "FR",
      "discordName": "cleo.placeholder",
      "discordId": "10000000000000003",
      "steamId": "76561190000000003"
    },
    {
      "name": "Dmitri Mock",
      "role": "player",
      "joinedAt": "2026-09-17T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-04",
      "country": "PL",
      "roleLabels": [
        "Medic"
      ],
      "discordName": "dmitri.mock",
      "discordId": "10000000000000004",
      "steamId": "76561190000000004"
    },
    {
      "name": "Eun-ji Testcase",
      "role": "player",
      "joinedAt": "2026-10-12T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-05",
      "country": "KR",
      "discordName": "eunji.testcase",
      "discordId": "10000000000000005",
      "steamId": "76561190000000005"
    },
    {
      "name": "Femi Dummy",
      "role": "player",
      "joinedAt": "2026-11-16T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-06",
      "country": "NG",
      "roleLabels": [
        "Merc"
      ],
      "discordName": "femi.dummy",
      "discordId": "10000000000000006",
      "steamId": "76561190000000006"
    },
    {
      "name": "Gustav Stub",
      "role": "player",
      "joinedAt": "2026-12-16T12:00:00.000Z",
      "linked": true,
      "playerId": "test-player-07",
      "discordName": "gustav.stub",
      "discordId": "10000000000000007",
      "steamId": "76561190000000007"
    },
    {
      "name": "Hana Fixture",
      "role": "player",
      "joinedAt": "2027-01-03T12:00:00.000Z",
      "linked": false,
      "playerId": "test-player-08",
      "country": "JP",
      "discordId": null,
      "steamId": "76561190000000008"
    }
  ]
}

This sample’s key holds members.read, members.discord, members.discord_id, members.steam_id.

Add a recruit to the roster

POST/api/v1/team/members

Key
Team key, live or test

Puts a player on the roster from a SteamID64 and a name. The Steam ID must be the whole 17 digits, sent as text: a short, long or spaced one is refused, and nothing is trimmed or repaired. If that Steam ID is a linked site account the entry is that person; otherwise it waits until they link Steam. It never makes an account or a member, and refuses a Steam ID already on a roster. Needs the roster.csv power. Every add is on the audit log.

Body, as JSON

  • steamIdstringrequired

    The whole SteamID64 as text: 17 digits, starting 7656119

    Pattern: ^7656119\d{10}$

  • namestringrequired

    Display name, up to 64 characters

    Shortest: 1 · Longest: 64 characters

  • discordNamestringoptional

    Their Discord username, optional, up to 64 characters

    Shortest: 1 · Longest: 64 characters

Answer, 200

  • steamIdstring

    The Steam ID that was added

    Pattern: ^7656119\d{10}$

  • namestring

    The name it was saved under

  • linkedboolean

    The Steam ID is a linked site account, so it is that person

  • rosterCountinteger

    Players on the roster now

Errors

  • 400
    invalid_request

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

  • 400
    invalid_json

    The body of a POST could not be read as JSON.

  • 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.

  • 409
    already_on_roster

    The Steam ID is already on the team’s roster.

  • 409
    on_other_team

    The Steam ID is active on another team’s roster. One team at a time.

  • 413
    body_too_large

    A POST body over 4 KB.

  • 415
    unsupported_media_type

    A POST without Content-Type: application/json.

  • 429
    roster_write_limit

    More than 60 adds and removals from one team’s tools in an hour.

And any request (11) to POST /team/members
  • 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 -X POST "https://gwl.gg/api/v1/team/members" \
  -H "Authorization: Bearer $GWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"steamId":"76561190000054321","name":"Recruit One"}'
Example answer, 200
{
  "steamId": "76561190000054321",
  "name": "Recruit One",
  "linked": false,
  "rosterCount": 9
}

Take a player off the roster

DELETE/api/v1/team/members/{steamId}

Key
Team key, live or test

Ends the roster entry with that SteamID64 (history is kept). A site member who is only a player leaves the team too, and their team roles end. The Team Leader and Team Reps are never removed here, and neither is someone who holds a team role with powers. Needs the roster.remove_players power. Every removal is on the audit log.

Path parameters

  • steamIdstringrequired

    The whole SteamID64 of the roster entry: 17 digits, starting 7656119

Answer, 200

  • steamIdstring

    The Steam ID that was removed

    Pattern: ^7656119\d{10}$

  • namestring

    Their name on the roster

  • memberboolean

    They were a site member as well as a roster entry

  • rosterCountinteger

    Players on the roster now

Errors

And any request (11) to DELETE /team/members/{steamId}
  • 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 -X DELETE "https://gwl.gg/api/v1/team/members/76561190000000004" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "steamId": "76561190000000004",
  "name": "Dmitri Mock",
  "member": true,
  "rosterCount": 7
}