# List legal entities and their establishments

Operation ID: `entities`

Group: Base › Entities

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/endpoints/entities)

`GET /base/entities`

Read-only: Reads and returns; changes nothing.

Lists legal entities and their establishments. Filter on entityType=LegalEntity for legal entities only. Their id values are the entityId that most other resources reference.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |

## Query surface

- `id` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `currency` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `timeZone` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `status` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `entityType` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `country` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `entityCode` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `parentEntityId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `localeCode` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `startDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `endDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: id, parentEntityId, currency, timeZone, status, entityType, country, entityCode, localeCode, startDate, endDate, lastModifiedDate
- Selectable: id, entityName, entityNumber, currency, timeZone, status, entityType, country, entityCode, parentId, parentEntityId, localeCode, startDate, endDate, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of entitiesRow:

| Field | Type | Required | Filter | Sort | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The unique identifier for the entity. Other resources reference it as entityId. |
| `entityName` | string | no | no | no | The name of the entity, for example 'Acme Inc.'. Unique within the tenant. |
| `entityNumber` | string \| null | no | no | no | The entity's business number, separate from its name. Absent until one is assigned. |
| `currency` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The entity's default currency. Format ISO 4217, for example 'USD'. The ledger's functional currency is kept per book (currency on book entity assignments) and can differ from it. Absent when none has been set. |
| `timeZone` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The time zone the entity operates in. Format IANA time-zone name, for example 'Europe/Berlin'. New entities default to 'Etc/UTC'. Absent when none has been set. |
| `status` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The lifecycle status of the entity. Possible values: 'active', 'inactive', 'created'. 'created' is the default for a new entity. One of: `"active"`, `"inactive"`, `"created"`. |
| `entityType` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Whether the entity is a legal entity, a non-legal reporting entity, or an establishment (a branch of a legal entity that keeps its own books). Possible values: 'LegalEntity', 'NonLegalReportingEntity', 'Establishment'. Defaults to 'LegalEntity'. One of: `"LegalEntity"`, `"NonLegalReportingEntity"`, `"Establishment"`. |
| `country` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The country the entity is registered in. Format ISO 3166-1 alpha-2, for example 'US'. Absent when none has been set. |
| `entityCode` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | A short code for the entity, separate from its entityNumber. Absent until one is assigned. |
| `parentId` | string \| null | no | no | no | The parent entity in the entity hierarchy, which is what a consolidation rolls this entity up to. A consolidation of a parent covers the entities below it through parentId that are 'active' and have a book entity assignment for the consolidated book; the chain stops at an entity without one. Absent on a top-level entity. |
| `parentEntityId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The parent entity in the entity hierarchy, under the name GET base/entities/:id, POST base/entities/search, POST base/entities and PATCH base/entities/:id use. Use this field; parentId carries the same value and is kept only for compatibility. Absent on a top-level entity. |
| `localeCode` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The locale for documents sent from this entity, setting the language and regional format. Format BCP 47, for example 'en-US'. Absent when none has been set. |
| `startDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date the entity became effective. Format YYYY-MM-DD. Absent when none has been set. |
| `endDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date the entity stops being effective. Format YYYY-MM-DD. Absent when the entity has no scheduled end. |
| `lastModifiedDate` | date-time \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date and time the entity last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |

```json
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "entityName": "<entityName>",
      "entityNumber": "<entityNumber>",
      "currency": "<currency>",
      "timeZone": "<timeZone>",
      "status": "active",
      "entityType": "LegalEntity",
      "country": "<country>",
      "entityCode": "<entityCode>",
      "parentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "parentEntityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "localeCode": "<localeCode>",
      "startDate": "2026-01-15",
      "endDate": "2026-01-15",
      "lastModifiedDate": "2026-01-15T09:30:00.000Z"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "<nextCursor>"
  }
}
```

## Statuses

- `400` — Invalid request or business failure
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
