List persons

GET
/persons

List persons you have permission to read, including their names, status, and organization. Filter by person, organization, status, or creation date.

For public API access, requires persons:read in the organization. See Authentication for permissions and Pagination & filtering for working with lists.

Query parameters

ids

array of string (uuid)

Filter by exact person IDs. Accepts up to 100 IDs.

max items 100

organizationIds

array of string (uuid)

Filter by organization IDs. Accepts up to 100 IDs. Each organization must be within your permitted scope; requesting an organization outside that scope returns 403.

max items 100

statuses

array of PersonStatus

Filter by person status. Accepts up to three values; includes all statuses when omitted.

activeinactiveremoved

max items 3

createdAtGte

string (date-time)

Include persons created at or after this timestamp (inclusive).

createdAtLte

string (date-time)

Include persons created at or before this timestamp (inclusive).

nextToken

string

Cursor for the next page. See Pagination & filtering. Returns 400 if the cursor is malformed or its person record is no longer visible to you.

max length 64

pageSize

integer

Maximum number of persons per page, from 1 to 100. Defaults to 25.

min 1

max 100

default 25

sort

string

Sort direction; asc returns oldest first and desc returns newest first. Defaults to desc.

ascdesc

default "desc"

sortBy

string

Field to sort by. Only createdAt is supported and is the default.

createdAt

default "createdAt"

Headers

flex-version

string

pattern ^\d{4}-\d{2}-\d{2}$

Responses

200

OK

application/json
data

array of PersonItem

required
id

string (uuid)

required

The person's ID within their organization. Use this as cardholderId when creating a card for this person.

organizationId

string (uuid)

required

The ID of the organization this person record belongs to.

status

string

required

The person's status in the organization. active means active membership, inactive means suspended membership, and removed means the person has been removed from the organization.

activeinactiveremoved
givenName

string

The person's given name, when on file.

familyName

string

The person's family name, when on file.

displayName

string

The name to display, when on file. If omitted, use the available givenName and familyName.

createdAt

string (date-time)

required

When this person record was created.

lastModifiedAt

string (date-time)

required

When this person record was last updated.

metadata

PersonListMetadata

required
pageSize

integer

required

The requested maximum number of persons per page.

sort

string

required

The applied sort direction; asc is oldest first and desc is newest first.

ascdesc
nextToken

string

Cursor for the next page, omitted on the last page. See Pagination & filtering.

400

A filter or pagination value is invalid, or the pagination cursor can no longer be resolved.

application/json

Error body for rejected requests. errors is keyed by the offending field (or message for request-level problems). flexErrorCode is a stable machine-readable code, present on the errors that carry one.

statusCode

integer

required
message

string

required
errors

map of string

flexErrorCode

string

401

Missing or invalid authentication.

application/json

Error body for rejected requests. errors is keyed by the offending field (or message for request-level problems). flexErrorCode is a stable machine-readable code, present on the errors that carry one.

statusCode

integer

required
message

string

required
errors

map of string

flexErrorCode

string

403

You do not have permission to read persons in a requested organization, or have no person read access.

application/json

Error body for rejected requests. errors is keyed by the offending field (or message for request-level problems). flexErrorCode is a stable machine-readable code, present on the errors that carry one.

statusCode

integer

required
message

string

required
errors

map of string

flexErrorCode

string

429

The rate limit was exceeded. The Retry-After header gives the wait time in seconds.

Request template

curl -X GET 'https://api.flex.one/persons' \
  -H "Authorization: Bearer $FLEX_API_KEY" \
  -H 'flex-version: 2026-10-23'

Response 200

{
  "data": [
    {
      "id": "92608f75-a040-4341-a49d-f0de8daacdf1",
      "organizationId": "3f8bbfa2-9257-4a7e-86d3-df1797b8e143",
      "status": "active",
      "givenName": "Alex",
      "familyName": "Morgan",
      "displayName": "Alex Morgan",
      "createdAt": "2026-08-01T14:00:00.000Z",
      "lastModifiedAt": "2026-08-02T15:30:00.000Z"
    }
  ],
  "metadata": {
    "pageSize": 25,
    "sort": "desc"
  }
}