Applications

All endpoints

People waiting to join

GET/api/v1/team/applications

Key
Team key, live or test

Adds each applicant’s discordId with members.discord_id (absent without it). An applicant’s Steam ID is never returned.

Answer, 200

  • applicationsarray of object

    Open applications, oldest first

    11 fields in applications
    • idstring

      Application id, for the respond route

    • namestring

      Display name of the person applying

    • countrystring or null

      ISO 3166-1 alpha-2 country the person chose to show; null when none

    • regionsarray of string

      Regions they play in, as codes

    • notestring or null

      What they wrote, up to 280 characters; null when nothing

    • appliedAtstring (date-time)

      When they applied. UTC, ISO 8601

    • deadlinestring (date-time)

      When it expires unanswered. UTC, ISO 8601

    • playerIdstring or null

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

    • elointeger or null

      Their player Elo. The league does not rate players, so expect null

    • ratedMatchesinteger

      Matches counted in their player Elo. The league does not rate players, so expect 0

    • discordIdstring or nullmay be absent

      Discord account ID. Only with the members.discord_id scope (absent without it). An applicant’s Steam ID is never returned

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/applications
  • 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/applications" \
  -H "Authorization: Bearer $GWL_API_KEY"
Example answer, 200
{
  "applications": [
    {
      "id": "test-app-01",
      "name": "Ines Sample",
      "country": "PT",
      "regions": [
        "EU"
      ],
      "note": "Medic main, free most evenings UTC.",
      "appliedAt": "2027-01-13T12:00:00.000Z",
      "deadline": "2027-01-20T12:00:00.000Z",
      "playerId": "test-player-41",
      "elo": 1512,
      "ratedMatches": 9,
      "discordId": "10000000000000041"
    },
    {
      "id": "test-app-02",
      "name": "Kai Placeholder",
      "country": null,
      "regions": [
        "NA",
        "OCE"
      ],
      "note": null,
      "appliedAt": "2027-01-14T12:00:00.000Z",
      "deadline": "2027-01-21T12:00:00.000Z",
      "playerId": null,
      "elo": null,
      "ratedMatches": 0,
      "discordId": "10000000000000042"
    }
  ]
}

This sample’s key holds applications.read, members.discord_id.

Accept or decline an application

POST/api/v1/team/applications/{id}/respond

Key
Team key, live or test

Path parameters

  • idstringrequired

    The application’s id, from /team/applications

Body, as JSON

  • acceptbooleanrequired

    true to take them on, false to decline

  • reasonstringoptional

    Optional words for them, up to 280 characters

    Longest: 280 characters

Answer, 200

  • idstring

    The application id

  • acceptedboolean

    Whether they joined

  • namestring

    Display name of the person

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.

  • 404
    not_found

    Nothing at that address, or another team’s match or application (so their existence does not leak).

  • 409
    application_closed

    The application was accepted, declined, withdrawn or expired before your answer.

  • 409
    already_member

    Accepting someone who is on your team already.

  • 409
    already_on_team

    Accepting someone who joined another team. The message names it.

  • 409
    steam_required

    Accepting someone with no Steam account linked.

  • 409
    league_suspended

    Accepting someone the league has suspended.

  • 409
    leads_suspended_team

    Accepting the Team Leader of a suspended team. The message names it.

  • 409
    roster_conflict

    Accepting someone whose Steam ID is on another roster or another account’s record.

  • 413
    body_too_large

    A POST body over 4 KB.

  • 415
    unsupported_media_type

    A POST without Content-Type: application/json.

And any request (11) to POST /team/applications/{id}/respond
  • 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/applications/test-app-01/respond" \
  -H "Authorization: Bearer $GWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"accept":true}'
Example answer, 200
{
  "id": "test-app-01",
  "accepted": true,
  "name": "Ines Sample"
}