---
title: "Returns the last error"
method: GET
path: "/api/v1/last_error"
tags: ["ping"]
---

# Returns the last error

`GET /api/v1/last_error`

## Request

- Base URL: `https://demo.invoiceninja.com`
- URL: `https://demo.invoiceninja.com/api/v1/last_error`
- Auth: none declared. Required headers: `X-API-TOKEN`, `X-Requested-With`
- TypeScript: <https://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference/docs/api/v1/last_error/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the last error from the API

## Headers

- `X-API-TOKEN` string, required
- `X-Requested-With` string, required

## Response `200`

Last error response

## Other responses

- `401`: Authentication error
- `403`: Authorization error
- `default`: Unexpected Error

## Changes

- **2026-02-09** `c85938f55efd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference/changes/api/v1/last_error/get.md)

---

[API](https://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference.md) - [All operations](https://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/invoiceninja/apis/invoice-ninja-api-reference/revisions/bcda1f823746?raw)
