The API returns standard HTTP status codes and JSON error bodies from the Qismah backend.

Common errors

StatusMeaning
400The request body or query is invalid.
401The API token is missing, invalid, revoked, or expired.
402The action requires Qismah Plus, including public API access.
404The requested resource does not exist or is not visible to the token owner.
500Unexpected server error.

Validation

Validation errors usually include a message field with one or more problems. Fix the request body first, then retry.

Example

{
  "statusCode": 401,
  "message": "API token is required",
  "error": "Unauthorized"
}
Error message wording can change. Use HTTP status codes and machine-readable fields when available.