Errors

When a request fails, the API answers with a status code and a JSON body with an error field.

{
  "error": "invalid api key"
}

The status code tells you what kind of failure it was. The error text gives the reason. Some are fixed codes that are safe to check for in your code, listed below. Others are plain sentences and may change.

Status codes

StatusMeaning
400The request is malformed or a value isn't valid. Check the fields you sent.
401The API key is unknown or revoked, or the room has an output password and you sent no key.
403You sent no key, the key doesn't have access to this, or your plan doesn't include it.
404The room or item doesn't exist.
409The request conflicts with the room's current state. See below.

Error codes

StatuserrorWhat to do
401invalid api keyCheck the key, or create a new one.
401password requiredSend your API key. Keys skip output passwords.
403plan_requiredUpgrade to a plan that includes this. All requests with a key from a Free team get this.
409plan_limitYou've reached a limit of your plan. Remove something, or upgrade.
409archivedThe room is archived, so it can't be changed. Unarchive it from the dashboard.
409suspendedThe room is suspended, and only Kloksi can lift that.
409room_changedAn import was prepared against an older version of the room. See Import timers.