Skip to main content
GET
Search organization people

Авторизации

Authorization
string
header
обязательно

Short-lived bearer access token issued for a Living Security API access key. Send as Authorization: Bearer .

Заголовки

x-organization-id
string<uuid>
обязательно

Organization context for multi-tenant operations

Параметры запроса

Search term for text search across name and email fields

Пример:

"john"

offset
number
по умолчанию:0

Offset for pagination (number of records to skip)

Требуемый диапазон: x >= 0
cursor
string

Cursor for pagination (returned from previous response)

Пример:

"eyJvZmZzZXQiOjUwfQ=="

limit
number
по умолчанию:50

Maximum number of results to return per page

Требуемый диапазон: 1 <= x <= 100
firstName
string

Filter by first name (partial match, case-insensitive)

Пример:

"John"

lastName
string

Filter by last name (partial match, case-insensitive)

Пример:

"Doe"

email
string

Filter by email (partial match, case-insensitive)

Пример:

"john@example.com"

personId
string

Filter by specific person ID (exact match)

Пример:

"01234567-89ab-cdef-0123-456789abcdef"

active
boolean

Filter by active status

Пример:

true

includeTotal
boolean

Include the exact count of all people matching the same filters. Defaults to false to avoid count-query overhead for autocomplete/search consumers.

Пример:

true

roles
string[]

Filter by roles

createdAfter
string

Filter by created date (after this date)

Пример:

"2025-01-01T00:00:00Z"

createdBefore
string

Filter by created date (before this date)

Пример:

"2025-12-31T23:59:59Z"

sortBy
enum<string>
по умолчанию:createdAt

Field to sort by

Доступные опции:
name,
email,
createdAt,
status
Пример:

"name"

sortDirection
enum<string>
по умолчанию:DESC

Sort direction (ASC or DESC)

Доступные опции:
ASC,
DESC
Пример:

"ASC"

Ответ

People found successfully

people
object[]
обязательно

List of people matching search criteria

pagination
object
обязательно

Pagination metadata

totalCount
number | null

Exact count of all people matching the same filters. Present only when requested with includeTotal=true.

Пример:

1234