Error Handling & Troubleshooting

This page covers how the Enpass Business API communicates errors, what the common error codes mean, and how to handle them gracefully in your integration.

Error Response Structure

When a request fails, the API returns a JSON object with the following fields:

Field

Type

Description

error

boolean

true when the request has resulted in an error

code

string

A machine-readable error code identifying the type of failure

description

string

A human-readable message describing what went wrong

Example error response:

{
  "error": true,
  "code": "unknown_error",
  "description": "Something went wrong"
}

HTTP Status Codes

Status Code

Meaning

What to Do

200 OK

Request succeeded

Process the response normally

401 Unauthorized

Missing or Invalid Bearer token or Invalid Token Scope

Verify your token and ensure it is included in the Authorization header or token was provisioned with the correct scope.

404 Not Found

Endpoint path is incorrect

Check the endpoint URL and ensure your base URL is correct

429 Too Many Requests

Rate limit exceeded

Back off and retry after a short delay; see Rate Limits below

500 Internal Server Error

Server-side failure

Retry the request; if the issue persists, contact Enpass support

Rate Limits

The API enforces a limit of 30 requests per minute per token. Exceeding this limit returns an HTTP 429 response.

Recommendations to avoid rate limit errors:

  • Cache responses where the underlying data does not need to be real-time. The Security Audit Summary and Adoption Summary endpoints are good candidates for caching.

  • Implement exponential backoff — wait progressively longer between retries after a 429 response.

  • Batch filters — use vault_filters on the Vault Summary API endpoint to retrieve targeted data in fewer calls rather than paginating broadly.

Common Error Code

Code

Description

unknown_error

A general server-side error occurred. Retry the request or contact Enpass support if it persists