Errors

The status says what kind of thing went wrong. The body says which: match on code, which is stable. message is for people and may change. Treat a code you do not know by its status.

An error
{
  "error": {
    "code": "missing_key",
    "message": "Send your key as Authorization: Bearer <key>."
  }
}

Statuses

200, 304
It worked. 304: nothing changed since your ETag.
400, 413, 415
The request is wrong. Do not send it again as is.
401, 403
The key is missing, dead or not allowed to do this.
404, 405
Nothing there, or not with that method.
409
The request is fine, but the league’s rules refuse it now.
429
Too many. Wait for Retry-After.
500, 503
Our side. Try again later, waiting longer each time.

Every code

  • 400 invalid_request

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

    Example body for invalid_request
    400 invalid_request
    {
      "error": {
        "code": "invalid_request",
        "message": "Check the query parameters."
      }
    }
  • 400 invalid_json

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

    Example body for invalid_json
    400 invalid_json
    {
      "error": {
        "code": "invalid_json",
        "message": "The body is not valid JSON."
      }
    }
  • 400 invalid_id

    A Steam ID in the path was short, long, spaced or not digits. Nothing is trimmed or guessed.

    Example body for invalid_id
    400 invalid_id
    {
      "error": {
        "code": "invalid_id",
        "message": "That is not a complete SteamID64: it is 17 digits and starts 7656119."
      }
    }
  • 401 missing_key

    No Authorization header, or not a bearer token.

    Example body for missing_key
    401 missing_key
    {
      "error": {
        "code": "missing_key",
        "message": "Send your key as Authorization: Bearer <key>."
      }
    }
  • 401 invalid_key

    Not a key, a mistyped one, or a key used in the wrong mode.

    Example body for invalid_key
    401 invalid_key
    {
      "error": {
        "code": "invalid_key",
        "message": "That key is not valid."
      }
    }
  • 401 key_revoked

    The key was revoked, by its team, by league staff or because its team is gone.

    Example body for key_revoked
    401 key_revoked
    {
      "error": {
        "code": "key_revoked",
        "message": "That key has been revoked."
      }
    }
  • 401 key_expired

    The key passed the expiry chosen when it was made.

    Example body for key_expired
    401 key_expired
    {
      "error": {
        "code": "key_expired",
        "message": "That key has expired."
      }
    }
  • 403 missing_scope

    The key was made without the scope the route needs. The message names it.

    Example body for missing_scope
    403 missing_scope
    {
      "error": {
        "code": "missing_scope",
        "message": "This key does not have the team.read scope."
      }
    }
  • 403 scope_lost

    The scope is ticked, but the key’s maker no longer holds the team permission behind it.

    Example body for scope_lost
    403 scope_lost
    {
      "error": {
        "code": "scope_lost",
        "message": "Whoever made this key no longer has the power behind Team record. Someone who does can rotate it."
      }
    }
  • 403 wrong_key_type

    A personal key on a team route, or a team live key on a public route.

    Example body for wrong_key_type
    403 wrong_key_type
    {
      "error": {
        "code": "wrong_key_type",
        "message": "That needs a team key."
      }
    }
  • 403 team_suspended

    League staff suspended the team. Its keys work again when it is restored.

    Example body for team_suspended
    403 team_suspended
    {
      "error": {
        "code": "team_suspended",
        "message": "This team is suspended, so its keys are stopped."
      }
    }
  • 403 key_maker_left

    The person who made or last rotated the key left the team. Rotating starts it again.

    Example body for key_maker_left
    403 key_maker_left
    {
      "error": {
        "code": "key_maker_left",
        "message": "Whoever made this key is no longer on the team. Someone with access can rotate it."
      }
    }
  • 403 key_maker_no_access

    The person who made or last rotated the key no longer holds Manage API keys. Rotating starts it again.

    Example body for key_maker_no_access
    403 key_maker_no_access
    {
      "error": {
        "code": "key_maker_no_access",
        "message": "Whoever made this key can no longer manage API keys. Someone with access can rotate it."
      }
    }
  • 403 role_above_you

    The player holds a team role that carries permissions.

    Example body for role_above_you
    403 role_above_you
    {
      "error": {
        "code": "role_above_you",
        "message": "That person holds a team role with powers. Remove them on the website."
      }
    }
  • 404 not_found

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

    Example body for not_found
    404 not_found
    {
      "error": {
        "code": "not_found",
        "message": "We could not find that."
      }
    }
  • 404 player_not_found

    No active roster entry has that Steam ID.

    Example body for player_not_found
    404 player_not_found
    {
      "error": {
        "code": "player_not_found",
        "message": "That Steam ID is not on your roster."
      }
    }
  • 405 method_not_allowed

    The path exists for another method. The Allow header lists it.

    Example body for method_not_allowed
    405 method_not_allowed
    {
      "error": {
        "code": "method_not_allowed",
        "message": "That method is not allowed here."
      }
    }
  • 409 already_on_roster

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

    Example body for already_on_roster
    409 already_on_roster
    {
      "error": {
        "code": "already_on_roster",
        "message": "That player is already on your roster."
      }
    }
  • 409 on_other_team

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

    Example body for on_other_team
    409 on_other_team
    {
      "error": {
        "code": "on_other_team",
        "message": "That player is active on another team. They must leave it first."
      }
    }
  • 409 leader_cannot_be_removed

    The Steam ID is the Team Leader’s.

    Example body for leader_cannot_be_removed
    409 leader_cannot_be_removed
    {
      "error": {
        "code": "leader_cannot_be_removed",
        "message": "The Team Leader cannot be removed."
      }
    }
  • 409 rep_cannot_be_removed_by_api

    The Steam ID is a Team Rep’s.

    Example body for rep_cannot_be_removed_by_api
    409 rep_cannot_be_removed_by_api
    {
      "error": {
        "code": "rep_cannot_be_removed_by_api",
        "message": "A Team Rep is removed by the Team Leader on the website."
      }
    }
  • 409 cannot_remove

    The league could not take that member off the team.

    Example body for cannot_remove
    409 cannot_remove
    {
      "error": {
        "code": "cannot_remove",
        "message": "That person cannot be removed from the team."
      }
    }
  • 409 application_closed

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

    Example body for application_closed
    409 application_closed
    {
      "error": {
        "code": "application_closed",
        "message": "That application has already ended."
      }
    }
  • 409 already_member

    Accepting someone who is on your team already.

    Example body for already_member
    409 already_member
    {
      "error": {
        "code": "already_member",
        "message": "That person is already on this team."
      }
    }
  • 409 already_on_team

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

    Example body for already_on_team
    409 already_on_team
    {
      "error": {
        "code": "already_on_team",
        "message": "That person is already on another team. A person is on one team at a time."
      }
    }
  • 409 steam_required

    Accepting someone with no Steam account linked.

    Example body for steam_required
    409 steam_required
    {
      "error": {
        "code": "steam_required",
        "message": "That person has not linked their Steam account yet. They can do it from their account page, then try again."
      }
    }
  • 409 league_suspended

    Accepting someone the league has suspended.

    Example body for league_suspended
    409 league_suspended
    {
      "error": {
        "code": "league_suspended",
        "message": "That person is suspended from the league, so they cannot join a team. Lift the suspension first."
      }
    }
  • 409 leads_suspended_team

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

    Example body for leads_suspended_team
    409 leads_suspended_team
    {
      "error": {
        "code": "leads_suspended_team",
        "message": "That person leads a suspended team. A Team Leader stays with their team until it is restored."
      }
    }
  • 409 roster_conflict

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

    Example body for roster_conflict
    409 roster_conflict
    {
      "error": {
        "code": "roster_conflict",
        "message": "That changed while you were looking. Try again."
      }
    }
  • 413 body_too_large

    A POST body over 4 KB.

    Example body for body_too_large
    413 body_too_large
    {
      "error": {
        "code": "body_too_large",
        "message": "That body is too large."
      }
    }
  • 415 unsupported_media_type

    A POST without Content-Type: application/json.

    Example body for unsupported_media_type
    415 unsupported_media_type
    {
      "error": {
        "code": "unsupported_media_type",
        "message": "Send the body as application/json."
      }
    }
  • 429 roster_write_limit

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

    Example body for roster_write_limit
    429 roster_write_limit
    {
      "error": {
        "code": "roster_write_limit",
        "message": "Too many roster changes from your tools this hour. Wait a little and try again."
      }
    }
  • 429 rate_limited

    Over the per-minute limit for the key or the address. Wait for Retry-After.

    Example body for rate_limited
    429 rate_limited
    {
      "error": {
        "code": "rate_limited",
        "message": "Too many requests for this key."
      }
    }
  • 429 daily_limit

    A personal or test key used its requests for the day.

    Example body for daily_limit
    429 daily_limit
    {
      "error": {
        "code": "daily_limit",
        "message": "This key has used today’s requests."
      }
    }
  • 429 too_many_bad_keys

    Too many wrong keys from one address. Wait for Retry-After.

    Example body for too_many_bad_keys
    429 too_many_bad_keys
    {
      "error": {
        "code": "too_many_bad_keys",
        "message": "Too many bad keys from this address."
      }
    }
  • 500 internal_error

    A fault on the league’s side. Try again later.

    Example body for internal_error
    500 internal_error
    {
      "error": {
        "code": "internal_error",
        "message": "Something went wrong on our side."
      }
    }
  • 503 public_api_off

    The league switched the public tier off for now. Team routes still work.

    Example body for public_api_off
    503 public_api_off
    {
      "error": {
        "code": "public_api_off",
        "message": "The public API is switched off."
      }
    }