# List entity external identifier fields

Operation ID: `entityExternalIdentifierFields`

Group: Accounting › Entities

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

`GET /base/entity-external-identifier-fields`

Read-only: Reads and returns; changes nothing.

Lists the external-identifier fields configured for entities: the fieldName values that externalIdentifiers on POST base/entities, createExternalIdentifiers and updateExternalIdentifiers on PATCH base/entities/:id, and the externalIdentifier filter on POST base/entities/search accept. Any other fieldName fails there with UNKNOWN_EXTERNAL_IDENTIFIER. A field retired by its administrator is no longer listed and can no longer be written, but an entity that still carries it returns it on GET base/entities/:id, and PATCH base/entities/:id can remove it with deleteExternalIdentifiers. Fields are configured in the application, not over the API. Every call sends the Api-Version header: a missing or empty header, or an unknown version, answers 400; a route the requested version does not contain answers 404.

## 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

- `fieldName` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: fieldName, lastModifiedDate
- Selectable: id, fieldName, source, instanceName, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of entityExternalIdentifierFieldsRow:

| Field | Type | Required | Filter | Sort | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | string | no | no | no | The unique identifier of the field configuration. |
| `fieldName` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The key to send as fieldName in an entity's external identifiers, a stable camelCase slug such as 'netsuiteSubsidiaryId'. Unique within the tenant. |
| `source` | string \| null | no | no | no | The system the identifier comes from, for example 'NetSuite'. Absent when none is set. |
| `instanceName` | string \| null | no | no | no | The instance of the source system, for example 'EU production'. Absent when none is set. |
| `lastModifiedDate` | date-time | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date and time the field configuration last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |

```json
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "fieldName": "<fieldName>",
      "source": "<source>",
      "instanceName": "<instanceName>",
      "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
