Error Responses

All error responses will follow the following format with a top-level error object and a 4XX status code.

{
  "error": {
    "type": "<error type>",
    "message": "<error message>"
  }
}

Invalid Auth Token

Using an auth token that does not exist or is incorrect will result in a 404 response status.

curl --request GET \
  --url https://api.glideapps.com/tables \
  --header 'Authorization: Bearer INVALID'
{
  "error": {
    "type": "request_error",
    "message": "API key not found, or duplicate IN****ID"
  }
}

Invalid Stash ID or Serial

Using a stash ID or serial that does not meet the requirements will result in a 400 response status.

curl --request PUT \
  --url https://api.glideapps.com/stashes/-INVALID-/1 \
  --header 'Authorization: Bearer VALID-API-KEY'
{
  "error": {
    "type": "request_validation_error",
    "message": "Invalid request params: Stash ID must be 256 characters max, alphanumeric with dashes and underscores, no leading dash or underscore"
  }
}