# Search Business Drivers

Operation ID: `searchBusinessDrivers`

Group: Value Accounting › Business Drivers › Business Driver Definitions

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

`POST /value-accounting/business-drivers/search`

Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.

Search the business driver definitions by a fragment of their name (case-insensitive), their active state, their calculation type, a dimension they declare, or the unit they are measured in. Read-only, cursor-paginated. Every filter member is optional and they combine with AND; omitting filters returns every driver, paged. filters.dimensionUrn finds the drivers whose values are broken down by that dimension — something the businessDrivers data-set (GET value-accounting/business-drivers) cannot filter on. A filter matching nothing returns an empty items array with HTTP 200, never a 404; only a calculationType other than 'asOf' or 'cumulative' is refused, with INVALID_CALCULATION_TYPE. Rows carry the same fields as getBusinessDriver (GET value-accounting/business-drivers/:id), dimensions included. POST rather than GET because a free-text fragment does not belong in a URL.

Finds business driver definitions by a name fragment (case-insensitive), their active state, their calculation type, a dimension they declare, or the unit they are measured in. Every filter member is optional and they combine with AND.

Use `filters.dimensionUrn` to answer "which drivers can carry a breakdown by Department" — the list cannot, because the dimension set is a list and not a column. The custom-dimension URN matches every driver declaring any custom dimension.

An empty `filters` is a valid request for every driver, paged. A filter that matches nothing returns an empty `items` array with HTTP 200 — not a 404; that includes a `unitId` naming no unit. Only a `calculationType` outside the two accepted values is refused (`INVALID_CALCULATION_TYPE`), so a typo is not mistaken for an empty result.

Rows carry the same fields as getBusinessDriver (GET value-accounting/business-drivers/:id), dimensions included.

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

## Request body

Required, `application/json`: searchBusinessDriversInput.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filters` | object | no | How to narrow the search; every member is optional and they combine with AND. Omit it — or send it with no members — to page through every driver, active and deactivated. Example: `{"isActive":true,"dimensionUrn":"urn:evst:everest:hr/base:model/node:Department"}`. |
| `filters.nameContains` | string | no | Fragment the driver name must contain, matched case-insensitively anywhere in the name. A substring match, not a pattern language: the fragment is taken as literal text, % and _ included (they are escaped, so 50% finds '50%' and not '500'). A fragment matching nothing yields an empty page, not an error. |
| `filters.isActive` | boolean | no | True for the drivers in use only, false for the deactivated ones only. Omit for both. |
| `filters.calculationType` | string | no | Exactly 'asOf' or 'cumulative': only the drivers of that calculation type. Any other value is refused with INVALID_CALCULATION_TYPE rather than answered with an empty page. |
| `filters.dimensionUrn` | string | no | Model URN of a dimension, e.g. 'urn:evst:everest:hr/base:model/node:Department': only the drivers that declare it. Every custom dimension shares 'urn:evst:everest:valueaccounting/base:model/node:CustomValueObject', so that URN matches every driver declaring any custom dimension — read their dimensions to tell which. See getBusinessDriver (GET value-accounting/business-drivers/:id) for the list of system dimension URNs. A URN no driver declares yields an empty page. |
| `filters.unitId` | string | no | Id (a UUID) of a driver unit, as returned by the driverUnits data-set (GET value-accounting/driver-units): only the drivers measured in it. An id that names no unit yields an empty page, not an error. Matched case-insensitively. |
| `page` | object | no | Cursor and page size. Omit for the first page at the default size. Example: `{"size":50}`. |
| `page.cursor` | string | no | Opaque forward cursor from a previous response's pagination.nextCursor; omit for the first page. Do not construct or decode it — a token is bound to this endpoint, so one it did not issue (a cursor from another endpoint, or one altered by hand) raises INVALID_CURSOR rather than silently restarting at the first page. Keep filters identical across the pages of one walk. It encodes the LAST ROW of the page you received, not a position, so a row created or removed before your position cannot make a later page repeat or skip a row. |
| `page.size` | number | no | Maximum number of drivers to return. Defaults to 50, capped at 200; a larger value is clamped rather than rejected, so the server may return fewer but never more. |

```json
{}
```

## Response

`200` Success

Under `data` (searchBusinessDriversOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> | yes | The drivers on this page, in the same shape getBusinessDriver (GET value-accounting/business-drivers/:id) returns. Empty when nothing matched — an empty page with HTTP 200, never a 404. Ordered by id ascending — a unique, immutable key, so a rename never moves a row across a page boundary; a driver created after your cursor position appears on a later page, one created before it does not, and no row is repeated or skipped. |
| `items[].id` | string | yes | Id (a UUID) of the driver — the id getBusinessDriver, updateBusinessDriver and deleteBusinessDriver (GET, PATCH and DELETE value-accounting/business-drivers/:id) are keyed by. |
| `items[].name` | string | yes | Display name of the driver. Unique tenant-wide, compared trimmed and case-insensitively, deactivated drivers included. |
| `items[].description` | string | no | Longer free-text explanation of what the driver measures. Absent — not null — when it was never set or has been cleared. |
| `items[].calculationType` | string | yes | Exactly 'asOf' (a stock that carries forward) or 'cumulative' (a flow that resets each period). |
| `items[].isActive` | boolean | yes | False for a deactivated driver: it keeps its values and its name. |
| `items[].isSystem` | boolean | yes | True for a SYSTEM driver, fed by an external metric: its name and calculation type never change and a delete leaves it untouched. See getBusinessDriver (GET value-accounting/business-drivers/:id). |
| `items[].unitId` | string | no | Id (a UUID) of the driver unit the values are expressed in. Absent when the driver has no unit. |
| `items[].dimensions` | array<object> | yes | The dimensions every value of this driver is broken down by, in the stored order; empty only for a driver recorded across entities (its Entity member is implicit). |
| `items[].dimensions[].dimensionUrn` | string | yes | Model URN of the dimension. Every custom dimension shares the CustomValueObject URN and is told apart by customValueDimensionId. |
| `items[].dimensions[].customValueDimensionId` | string | no | Id (a UUID) of the custom value dimension this entry is. Present on custom entries only, and absent on one whose custom value dimension has since been deleted. |
| `items[].lastModifiedDate` | date-time | yes | Instant the driver definition last changed, as ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). The same value the list and the keyed read publish. |
| `pagination` | object | yes | Pagination cursor for this page. |
| `pagination.nextCursor` | string | no | Opaque cursor to pass as `page.cursor` for the next page; absent on the last page. |
| `pagination.hasMore` | boolean | yes | True when more drivers remain beyond this page. |

```json
{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "<name>",
        "description": "<description>",
        "calculationType": "<calculationType>",
        "isActive": true,
        "isSystem": true,
        "unitId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "dimensions": [
          {
            "dimensionUrn": "<dimensionUrn>",
            "customValueDimensionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
          }
        ],
        "lastModifiedDate": "2026-01-15T09:30:00.000Z"
      }
    ],
    "pagination": {
      "nextCursor": "<nextCursor>",
      "hasMore": true
    }
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Errors

| Code | Status |
| --- | --- |
| `INVALID_CURSOR` | 400 |
| `INVALID_CALCULATION_TYPE` | 400 |

## Statuses

- `400` — Invalid request or business failure. Codes: INVALID_CURSOR, INVALID_CALCULATION_TYPE
- `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
