Skip to content

Guides

Errors

Error format, status codes and error codes of the Inspow API.

The API uses standard HTTP status codes and returns errors in JSON, always with the same shape.

{
"statusCode": 403,
"code": "AUTH_INSUFFICIENT_PERMISSIONS",
"message": "Description of the error",
"details": { },
"timestamp": "2026-10-10T18:08:18.423Z",
"path": "/api/v1/notification-preferences",
"requestId": "101c888e-a926-451a-95db-9f62bf7bdc8b"
}
FieldContent
statusCodeThe HTTP code.
codeStable error code, meant for your integration to decide what to do (see below).
messageReadable description. In validation errors, the messages for each field are joined with ; .
detailsOptional: extra information (for example, the duplicated field).
timestamp, pathWhen and on which route it happened.
requestIdIdentifier of the request. Include it if you report a problem to support.
HTTPUsual codeMeaning
400VALIDATION_FAILED / VALIDATION_INVALID_INPUTInvalid request (malformed data or data that fails validation).
401AUTH_TOKEN_INVALIDNot authenticated: missing, invalid or expired token, or invalid API Key.
402SAAS_ACCOUNT_LOCKEDThe Organization’s account is paused for payment (for example, an expired trial). details.reason gives the reason. See Multi-tenant.
403AUTH_INSUFFICIENT_PERMISSIONSNo permission for the resource (also: API Key hourly limit exceeded, IP or domain not authorized, closed organization).
404RESOURCE_NOT_FOUNDResource not found.
409RESOURCE_ALREADY_EXISTSThe record already exists (duplicated value).
429RATE_LIMIT_EXCEEDEDToo many requests (see Rate limits).
500SYSTEM_INTERNAL_ERRORInternal server error.
503SYSTEM_SERVICE_UNAVAILABLEService unavailable (for example, a suspended organization).

Some business errors carry a more specific code, for example INVOICE_ALREADY_PAID, SUBSCRIPTION_NOT_ACTIVE, TENANT_SUSPENDED or AUTH_INVALID_CREDENTIALS. Use the code, not the message text, to make decisions in your code.