> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlurk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List people

> Lists people, newest first (`sort`), with holdings, profile and status. `search` takes one whole value: a `usr_…` ID, your identifier, an email or a handle; no partial match. Also `audience`, `signs_in_with` (a provider's `iss_…` ID), `status`, `include=total`. [People](/guides/people)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/users
openapi: 3.1.0
info:
  title: Lurk API
  version: 1.0.0
  description: Events in, rules decide, units change, receipts out.
servers:
  - url: https://api.getlurk.com
security: []
tags:
  - name: events
    description: Send what your users do. Lurk runs your live rules on each event.
    x-group: Events
    x-displayName: Events
  - name: units
    description: What people collect and hold, and their balances.
    x-group: Units
    x-displayName: Units
  - name: rules
    description: What Lurk does when an event comes in. A person takes a rule live.
    x-group: Rules
    x-displayName: Rules
  - name: activity
    description: A receipt for every change, with why it happened.
    x-group: Receipts
    x-displayName: Receipts
  - name: users
    description: The people your events are about.
    x-group: People
    x-displayName: People
  - name: webhook_endpoints
    description: Where Lurk sends signed notices of what changed.
    x-group: Webhooks
    x-displayName: Webhooks
  - name: known_values
    description: The properties of your own events whose values Lurk remembers.
    x-group: Known values
    x-displayName: Known values
  - name: feedback
    description: Tell the Lurk team about a bug, a gap or an idea.
    x-group: Feedback
    x-displayName: Feedback
  - name: annotations
    description: >-
      Short notes on a day of the project, such as a release or a campaign
      start.
    x-group: Annotations
    x-displayName: Annotations
  - name: trusted_issuers
    description: The sign-in providers a project trusts for its app's users.
    x-group: Trusted issuers
    x-displayName: Trusted issuers
  - name: client_events
    description: The events a signed-in device may send, and their caps.
    x-group: Client events
    x-displayName: Client events
  - name: issuer_identities
    description: Which person each sign-in subject is bound to.
    x-group: Issuer identities
    x-displayName: Issuer identities
  - name: proposals
    description: Changes an agent or Lurky asks for and a person approves or declines.
    x-group: Proposals
    x-displayName: Proposals
  - name: holds
    description: Changes a rule parked for a person to give or refuse.
    x-group: Holds
    x-displayName: Holds
  - name: audiences
    description: The groups of people that rules can read.
    x-group: Audiences
    x-displayName: Audiences
  - name: budgets
    description: What each live rule's budgets have given in the window they are in now.
    x-group: Budgets
    x-displayName: Budgets
  - name: templates
    description: Kits that add units and rules to a project in one go.
    x-group: Templates
    x-displayName: Templates
  - name: views
    description: Saved questions about a project, with their answers.
    x-group: Views
    x-displayName: Views
  - name: integrations
    description: Every way events reach Lurk or state leaves it, and the state of each.
    x-group: Integrations
    x-displayName: Integrations
  - name: projects
    description: Where units, rules and events live. An organization can have several.
    x-group: Projects
    x-displayName: Projects
  - name: clocks
    description: A test project's clock, which can be moved to try schedules and expiries.
    x-group: Clocks
    x-displayName: Clocks
paths:
  /v1/users:
    get:
      tags:
        - users
      summary: List people
      description: >-
        Lists people, newest first (`sort`), with holdings, profile and status.
        `search` takes one whole value: a `usr_…` ID, your identifier, an email
        or a handle; no partial match. Also `audience`, `signs_in_with` (a
        provider's `iss_…` ID), `status`, `include=total`.
        [People](/guides/people)
      operationId: users.list
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
            description: How many items to return, 1 to 200
          required: false
          description: How many items to return, 1 to 200
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 512
            description: >-
              The `next_cursor` of the previous page; leave out for the first
              page
          required: false
          description: The `next_cursor` of the previous page; leave out for the first page
          name: cursor
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 256
            description: >-
              One whole value: a usr_… ID, your own identifier, an email, or a
              handle on any platform (with or without the @). Emails and handles
              ignore case. They are kept sealed, so there is no partial match,
              and names are not searched
          required: false
          description: >-
            One whole value: a usr_… ID, your own identifier, an email, or a
            handle on any platform (with or without the @). Emails and handles
            ignore case. They are kept sealed, so there is no partial match, and
            names are not searched
          name: search
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 100
            description: 'An audience''s key or `aud_…` ID: only the people in it'
          required: false
          description: 'An audience''s key or `aud_…` ID: only the people in it'
          name: audience
          in: query
        - schema:
            type: string
            pattern: ^iss_[0-7][0-9a-hjkmnp-tv-z]{25}$
            description: >-
              Only the people who have an account linked at this sign-in
              provider (an `iss_…` ID), counting accounts linked to people
              merged into them. A person with several accounts there counts
              once; an account that is unlinked no longer counts. An archived
              provider still works; an unknown one is `not_found`
          required: false
          description: >-
            Only the people who have an account linked at this sign-in provider
            (an `iss_…` ID), counting accounts linked to people merged into
            them. A person with several accounts there counts once; an account
            that is unlinked no longer counts. An archived provider still works;
            an unknown one is `not_found`
          name: signs_in_with
          in: query
        - schema:
            type: string
            enum:
              - new
              - returning
              - lapsing
            description: >-
              Only the people with this status, as the project defines it
              (`new_for_days`, `lapsing_after_days`)
          required: false
          description: >-
            Only the people with this status, as the project defines it
            (`new_for_days`, `lapsing_after_days`)
          name: status
          in: query
        - schema:
            type: string
            enum:
              - newest
              - oldest
            default: newest
            description: By when Lurk first heard of them. `newest` by default
          required: false
          description: By when Lurk first heard of them. `newest` by default
          name: sort
          in: query
        - schema:
            type: string
            enum:
              - total
            description: >-
              Send `total` to also get `total`, how many people match the
              search, the audience and the provider (the whole list, not this
              page)
            examples:
              - total
          required: false
          description: >-
            Send `total` to also get `total`, how many people match the search,
            the audience and the provider (the whole list, not this page)
          name: include
          in: query
        - schema:
            type: string
            description: W3C Trace Context; joins your trace to ours
          required: false
          description: W3C Trace Context; joins your trace to ours
          name: traceparent
          in: header
      responses:
        '200':
          description: List people
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserList'
        '422':
          description: >-
            - `validation_failed`: Nothing was changed. Fix what the message
            says is wrong (the field is named in `param` when there is one) and
            send the request again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many requests. Wait `Retry-After` seconds.
          headers:
            Request-Id:
              schema:
                type: string
                description: Quote this when you contact support
              required: true
              description: Quote this when you contact support
            traceparent:
              schema:
                type: string
                description: W3C Trace Context for this call, in the caller's trace
              required: true
              description: W3C Trace Context for this call, in the caller's trace
            RateLimit:
              schema:
                type: string
                description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
              required: true
              description: The tightest limit now, e.g. `"ingest-key";r=5999;t=42`
            RateLimit-Policy:
              schema:
                type: string
                description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
              required: true
              description: Its quota and window, e.g. `"ingest-key";q=6000;w=60`
            Retry-After:
              schema:
                type: string
                description: Seconds to wait
              required: true
              description: Seconds to wait
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    UserList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/EndUser'
          description: The items on this page
        has_more:
          type: boolean
          description: Whether there are older items after this page
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass it as `cursor` to get the next page; null on the last page
        total:
          type: integer
          minimum: 0
          description: >-
            How many people match, across every page. Only when `include=total`
            was sent
      required:
        - data
        - has_more
        - next_cursor
      examples:
        - data:
            - id: usr_01m6es2t9refr8kfbt871ed180
              external_id: guest-4417
              created_at: '2026-11-02T18:41:55.000Z'
              last_active_at: '2026-11-02T19:00:00.000Z'
              status: new
              balances:
                - unit: points
                  amount: 40
              profile:
                email: null
                name: null
                avatar_url: null
                handles: {}
                locale: null
                updated_at: null
              blocked_at: null
              blocked_by: null
              erased_at: null
            - id: usr_01m40d9ax0e2vrtmq9mk0z6t00
              external_id: ben@example.com
              created_at: '2026-10-03T08:15:00.000Z'
              last_active_at: '2026-10-30T12:00:00.000Z'
              status: returning
              balances:
                - unit: points
                  amount: 85
              profile:
                email: ben@example.com
                name: Ben Okafor
                avatar_url: null
                handles: {}
                locale: en-GB
                updated_at: '2026-10-03T08:15:02.000Z'
              blocked_at: null
              blocked_by: null
              erased_at: null
            - id: usr_01m2ayvr9gf8e89t8f5cbx71b0
              external_id: ana@example.com
              created_at: '2026-09-12T14:03:10.000Z'
              last_active_at: '2026-11-04T09:00:00.000Z'
              status: returning
              balances:
                - unit: points
                  amount: 169
              profile:
                email: ana@example.com
                name: Ana Lima
                avatar_url: null
                handles:
                  x:
                    handle: ana_lima
                    account_id: null
                locale: pt-BR
                updated_at: '2026-10-29T16:20:05.000Z'
              blocked_at: null
              blocked_by: null
              erased_at: null
          has_more: false
          next_cursor: null
          total: 3
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            status:
              type: integer
            code:
              type: string
              enum:
                - invalid_json
                - invalid_key
                - forbidden
                - approval_required
                - not_found
                - idempotency_conflict
                - conflict
                - unblock_clock_reversed
                - insufficient_balance
                - reference_used
                - validation_failed
                - rate_limited
                - internal
                - unavailable
            message:
              type: string
            param:
              type: string
            next_step:
              type: string
              description: >-
                What to do about this kind of error, in one sentence. Always
                sent by current servers
            request_id:
              type: string
            doc_url:
              type: string
              format: uri
          required:
            - status
            - code
            - message
            - request_id
            - doc_url
      required:
        - error
    EndUser:
      type: object
      properties:
        id:
          type: string
          description: The usr_… ID
        external_id:
          type: string
          description: 'The brand''s own identifier: an email, a user ID'
        created_at:
          type: string
          format: date-time
          description: When Lurk first heard of them
        last_active_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When they last did something, to the hour. Null until an event
            arrives after Lurk started keeping it
        status:
          $ref: '#/components/schemas/PersonStatus'
        balances:
          type: array
          items:
            $ref: '#/components/schemas/UnitBalance'
          description: What they hold now. Units at 0 are left out
        profile:
          $ref: '#/components/schemas/PersonProfile'
        blocked_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When a member blocked this person; null when not blocked. Blocks
            apply where device sign-in is switched on.
        blocked_by:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              pattern: ^mem_[0-7][0-9a-hjkmnp-tv-z]{25}$
              description: A member ID, starting with `mem_`.
            name:
              type: string
              description: The member's display name.
          required:
            - id
            - name
          description: >-
            The member who blocked them; null when not blocked. Blocks apply
            where device sign-in is switched on.
        erased_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            Not available yet. When the person was erased. Null for everyone
            else. From then on external_id is a random value starting erased:,
            the brand's old identifier means a new person, and nothing can be
            added to this one
      required:
        - id
        - external_id
        - created_at
        - last_active_at
        - status
        - balances
        - profile
        - blocked_at
        - blocked_by
    PersonStatus:
      type: string
      enum:
        - new
        - returning
        - lapsing
      description: >-
        new: first heard of within the project's `new_for_days`. lapsing: older
        than that, and nothing from them for `lapsing_after_days`. returning:
        everyone else
    UnitBalance:
      type: object
      properties:
        unit:
          type: string
          pattern: ^[a-z][a-z0-9_-]{0,63}$
          description: The unit's key
        amount:
          type: integer
          description: How much of the unit they hold
      required:
        - unit
        - amount
    PersonProfile:
      type: object
      properties:
        email:
          type:
            - string
            - 'null'
          maxLength: 254
          format: email
          description: Their email, lowercase. Search finds it, whole
        name:
          type:
            - string
            - 'null'
          minLength: 1
          maxLength: 100
          pattern: ^(?![\s\S]*<[A-Za-z!/?])[^\u0000-\u001f\u007f-\u009f‪-‮⁦-⁩]*$
          description: 'The name to show them by: Ana Lima, or their X display name'
        avatar_url:
          type:
            - string
            - 'null'
          maxLength: 2048
          pattern: ^https:\/\/[^/?#@\s]+(?:[/?#]\S*)?$
          description: >-
            A picture of them, https only. Lurk never fetches it; the dashboard
            shows it
        handles:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PersonHandle'
          description: >-
            Their usernames, by platform: `{ x: { handle: 'ana', account_id:
            '12' } }`. Empty when none. Search finds each, whole, with or
            without the @
        locale:
          type:
            - string
            - 'null'
          maxLength: 35
          pattern: ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{1,8}){0,4}$
          description: Their language, as a BCP 47 tag
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the profile last changed. Null when nothing was ever set
      required:
        - email
        - name
        - avatar_url
        - handles
        - locale
        - updated_at
      description: >-
        What you told Lurk about them. Kept sealed; nothing in it is verified by
        Lurk, and rules do not read it. Every field is null (handles empty)
        until you set it
    PersonHandle:
      type: object
      properties:
        handle:
          type: string
          pattern: ^[A-Za-z0-9_][A-Za-z0-9_.@-]{0,99}$
          description: >-
            The username, without the @, in the case you sent. Search ignores
            case
        account_id:
          type:
            - string
            - 'null'
          pattern: ^[A-Za-z0-9_.:-]{1,64}$
          description: >-
            The platform's own ID for the account, when you know it (X's numeric
            user ID). It stays the same when the username changes. Kept sealed
            and not searchable
      required:
        - handle
        - account_id
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A project key (Developers → API keys). Keep it on your server, not in an
        app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.