Skip to main content
GET
Search organization people

Ủy quyền

Authorization
string
header
bắt buộc

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

Tiêu đề

x-organization-id
string<uuid>
bắt buộc

Organization context for multi-tenant operations

Tham số truy vấn

Search term for text search across name and email fields

Ví dụ:

"john"

offset
number
mặc định:0

Offset for pagination (number of records to skip)

Phạm vi bắt buộc: x >= 0
cursor
string

Cursor for pagination (returned from previous response)

Ví dụ:

"eyJvZmZzZXQiOjUwfQ=="

limit
number
mặc định:50

Maximum number of results to return per page

Phạm vi bắt buộc: 1 <= x <= 100
firstName
string

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

Ví dụ:

"John"

lastName
string

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

Ví dụ:

"Doe"

email
string

Filter by email (partial match, case-insensitive)

Ví dụ:

"john@example.com"

personId
string

Filter by specific person ID (exact match)

Ví dụ:

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

active
boolean

Filter by active status

Ví dụ:

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.

Ví dụ:

true

roles
string[]

Filter by roles

createdAfter
string

Filter by created date (after this date)

Ví dụ:

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

createdBefore
string

Filter by created date (before this date)

Ví dụ:

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

sortBy
enum<string>
mặc định:createdAt

Field to sort by

Tùy chọn có sẵn:
name,
email,
createdAt,
status
Ví dụ:

"name"

sortDirection
enum<string>
mặc định:DESC

Sort direction (ASC or DESC)

Tùy chọn có sẵn:
ASC,
DESC
Ví dụ:

"ASC"

Phản hồi

People found successfully

people
object[]
bắt buộc

List of people matching search criteria

pagination
object
bắt buộc

Pagination metadata

totalCount
number | null

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

Ví dụ:

1234