# Search SBO contexts

Operation ID: `searchSboContexts`

Group: People Management › SBO Contexts

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

`POST /people/sbo-contexts/search`

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

Searches SBO contexts. A record must match every filter you send. Results are ordered by creation, oldest first.

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filters` | object | no | The filters to apply. A record must match every filter you send. Omit to return all records. |
| `filters.ids` | array<string> | no | Limits results to the records with these identifiers. |
| `filters.contextTypeId` | string | no | Limits results to the lines of this SBO context type. |
| `filters.contextValueId` | string | no | Limits results to the lines of this SBO context value. |
| `page` | object | no | Pagination controls. Omit for the first page. |
| `page.cursor` | string | no | The cursor from the previous response's pagination.nextCursor. Omit on the first request. Do not construct it. |
| `page.size` | number | no | The number of records per page, between 1 and 200. Defaults to 50. A value above 200 is treated as 200. |

```json
{}
```

## Response

`200` Success

Under `data` (searchSboContextsOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> | yes | The records on this page. An empty array when nothing matches. |
| `items[].id` | string | yes | The unique identifier for the SBO context. Position skill requirements reference this identifier in sboContextIds. |
| `items[].contextTypeId` | string | yes | The identifier of the SBO context type. |
| `items[].contextValueId` | string | yes | The identifier of the SBO context value. |
| `items[].contextValueName` | string | no | The SBO context value, for example 'Engineering'. Absent when the value has no name. |
| `items[].lastModifiedDate` | date-time | yes | The date and time the SBO context last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |
| `pagination` | object | yes | Cursor and flag for fetching the next page. |
| `pagination.nextCursor` | string | no | Pass back as page.cursor. Absent on the last page. |
| `pagination.hasMore` | boolean | yes | Whether a further page exists. |

```json
{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "contextTypeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "contextValueId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "contextValueName": "<contextValueName>",
        "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 |
| --- | --- |
| `TOO_MANY_ITEMS` | 400 |
| `INVALID_CURSOR` | 400 |

## Statuses

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