Skip to main content
GET
Search organization people

Otorisasi

Authorization
string
header
wajib

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

Header

x-organization-id
string<uuid>
wajib

Organization context for multi-tenant operations

Parameter Query

Search term for text search across name and email fields

Contoh:

"john"

offset
number
default:0

Offset for pagination (number of records to skip)

Rentang yang diperlukan: x >= 0
cursor
string

Cursor for pagination (returned from previous response)

Contoh:

"eyJvZmZzZXQiOjUwfQ=="

limit
number
default:50

Maximum number of results to return per page

Rentang yang diperlukan: 1 <= x <= 100
firstName
string

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

Contoh:

"John"

lastName
string

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

Contoh:

"Doe"

email
string

Filter by email (partial match, case-insensitive)

Contoh:

"john@example.com"

personId
string

Filter by specific person ID (exact match)

Contoh:

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

active
boolean

Filter by active status

Contoh:

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.

Contoh:

true

roles
string[]

Filter by roles

createdAfter
string

Filter by created date (after this date)

Contoh:

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

createdBefore
string

Filter by created date (before this date)

Contoh:

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

sortBy
enum<string>
default:createdAt

Field to sort by

Opsi yang tersedia:
name,
email,
createdAt,
status
Contoh:

"name"

sortDirection
enum<string>
default:DESC

Sort direction (ASC or DESC)

Opsi yang tersedia:
ASC,
DESC
Contoh:

"ASC"

Respons

People found successfully

people
object[]
wajib

List of people matching search criteria

pagination
object
wajib

Pagination metadata

totalCount
number | null

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

Contoh:

1234