> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bridgelinepf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# INTERNAL

> Something went wrong on our side.

`500 Internal Server Error` · type `api_error`

**When it happens**

An unexpected error. We log every one with its request id.

**What to do**

Retry with the same `Idempotency-Key`, with backoff. Usually nothing was stored and the retry runs normally.

If a retry returns this same `500` with the header `Idempotent-Replayed: true`, that's the stored outcome of a request that may have taken effect: stop retrying that key, and handle it like [`IDEMPOTENCY_RECORD_LOST`](/errors/IDEMPOTENCY_RECORD_LOST). If it keeps happening, contact us with the `request_id`.

## Example

```json 500 Internal Server Error theme={null}
{
  "error": {
    "type": "api_error",
    "code": "INTERNAL",
    "message": "An internal error occurred.",
    "doc_url": "https://docs.bridgelinepf.com/errors#INTERNAL",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](/errors), or how to [handle errors](/guides/errors).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.