> ## 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.

# Get a person

> Gets one person with holdings, profile, status and receipt count. Members and project keys also receive web acquisition sources and browser counts, starting after consent. A merged-away person returns `not_found`. [People](/guides/people)



## OpenAPI

````yaml /api-reference/openapi.json get /v1/users/{id}
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/{id}:
    get:
      tags:
        - users
      summary: Get a person
      description: >-
        Gets one person with holdings, profile, status and receipt count.
        Members and project keys also receive web acquisition sources and
        browser counts, starting after consent. A merged-away person returns
        `not_found`. [People](/guides/people)
      operationId: users.get
      parameters:
        - schema:
            type: string
            description: A usr_… ID, or the brand's own identifier
            examples:
              - ana@example.com
          required: true
          description: A usr_… ID, or the brand's own identifier
          name: id
          in: path
        - 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: Get a person
          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:
                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
                  timezone:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Their own time zone, when they have one; else the
                      project's applies
                  receipts:
                    type: integer
                    minimum: 0
                    description: How many receipts they have
                  last_receipt_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      When their most recent receipt was made. Null when they
                      have none
                  web_acquisition:
                    $ref: '#/components/schemas/WebAcquisition'
                required:
                  - id
                  - external_id
                  - created_at
                  - last_active_at
                  - status
                  - balances
                  - profile
                  - blocked_at
                  - blocked_by
                  - timezone
                  - receipts
                  - last_receipt_at
                additionalProperties: false
        '404':
          description: >-
            - `not_found`: Check the ID or key, and that you are in the right
            project. Each project is separate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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:
    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
    WebAcquisition:
      type:
        - object
        - 'null'
      properties:
        computed_at:
          type: string
          format: date-time
          description: The real server read time in UTC.
        attribution_lookback_days:
          type: integer
          minimum: 1
          maximum: 90
          description: >-
            The project’s current lookback in days for the last non-direct
            source.
        sites:
          type: array
          items:
            type: object
            properties:
              site:
                type: object
                properties:
                  id:
                    type: string
                    pattern: ^wst_[0-7][0-9a-hjkmnp-tv-z]{25}$
                    description: A web site ID, starting with `wst_`.
                  name:
                    type: string
                    minLength: 1
                    maxLength: 80
                    description: The saved site name, including for a disabled site.
                required:
                  - id
                  - name
                additionalProperties: false
                description: >-
                  The site with a surviving browser link for this person or a
                  person merged into them.
              browsers:
                type: integer
                minimum: 1
                maximum: 9007199254740991
                description: Exact distinct linked visitor records, including shared ones
              first_touch:
                oneOf:
                  - type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - known
                        description: The stored source is known and belongs to this person.
                      at:
                        type: string
                        format: date-time
                        description: >-
                          When the consented source was first seen, not when it
                          was linked
                      channel:
                        type: string
                        enum:
                          - direct
                          - organic_search
                          - organic_social
                          - organic_video
                          - paid_search
                          - paid_social
                          - paid_video
                          - display
                          - email
                          - sms
                          - push
                          - affiliate
                          - referral
                          - cross_network
                          - unassigned
                        description: The stored source channel.
                      source:
                        type:
                          - string
                          - 'null'
                        minLength: 1
                        maxLength: 255
                        description: >-
                          The stored attribution source, or null when none was
                          recorded.
                      campaign:
                        type:
                          - string
                          - 'null'
                        minLength: 1
                        maxLength: 255
                        description: The stored campaign, or null when none was recorded.
                      landing_path:
                        type: string
                        minLength: 1
                        maxLength: 2048
                        pattern: ^\/(?!\/)[^?#\s]*$
                        description: The stored landing path without a query or fragment.
                    required:
                      - state
                      - at
                      - channel
                      - source
                      - campaign
                      - landing_path
                    additionalProperties: false
                  - type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - unavailable
                        description: No source can be shown for this touch.
                      reason:
                        type: string
                        enum:
                          - pending
                          - shared
                          - too_many_browsers
                        description: Why the first source is unavailable.
                    required:
                      - state
                      - reason
                    additionalProperties: false
                description: >-
                  The first source of the earliest linked browser on this site,
                  with no lookback limit.
              last_non_direct_touch:
                oneOf:
                  - type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - known
                        description: The stored source is known and belongs to this person.
                      at:
                        type: string
                        format: date-time
                        description: >-
                          When the consented source was first seen, not when it
                          was linked
                      channel:
                        type: string
                        enum:
                          - organic_search
                          - organic_social
                          - organic_video
                          - paid_search
                          - paid_social
                          - paid_video
                          - display
                          - email
                          - sms
                          - push
                          - affiliate
                          - referral
                          - cross_network
                          - unassigned
                        description: The stored non-direct source channel.
                      source:
                        type:
                          - string
                          - 'null'
                        minLength: 1
                        maxLength: 255
                        description: >-
                          The stored attribution source, or null when none was
                          recorded.
                      campaign:
                        type:
                          - string
                          - 'null'
                        minLength: 1
                        maxLength: 255
                        description: The stored campaign, or null when none was recorded.
                      landing_path:
                        type: string
                        minLength: 1
                        maxLength: 2048
                        pattern: ^\/(?!\/)[^?#\s]*$
                        description: The stored landing path without a query or fragment.
                    required:
                      - state
                      - at
                      - channel
                      - source
                      - campaign
                      - landing_path
                    additionalProperties: false
                  - type: object
                    properties:
                      state:
                        type: string
                        enum:
                          - unavailable
                        description: No source can be shown for this touch.
                      reason:
                        type: string
                        enum:
                          - no_recent_non_direct_touch
                          - shared
                          - too_many_browsers
                        description: Why the last non-direct source is unavailable.
                    required:
                      - state
                      - reason
                    additionalProperties: false
                description: >-
                  The latest eligible non-direct source on this site within the
                  labelled lookback.
            required:
              - site
              - browsers
              - first_touch
              - last_non_direct_touch
            additionalProperties: false
          minItems: 1
          description: >-
            Sites with surviving browser links, each once by site ID ascending,
            omitted in overflow.
        first_touch:
          type: object
          properties:
            state:
              type: string
              enum:
                - unavailable
              description: No source can be shown for this touch.
            reason:
              type: string
              enum:
                - too_many_browsers
              description: >-
                The merged group exceeds the people or candidate link read
                limit.
          required:
            - state
            - reason
          additionalProperties: false
          description: >-
            The unavailable first source when the merged group exceeds a read
            limit.
        last_non_direct_touch:
          type: object
          properties:
            state:
              type: string
              enum:
                - unavailable
              description: No source can be shown for this touch.
            reason:
              type: string
              enum:
                - too_many_browsers
              description: >-
                The merged group exceeds the people or candidate link read
                limit.
          required:
            - state
            - reason
          additionalProperties: false
          description: >-
            The unavailable last non-direct source when the merged group exceeds
            a read limit.
      required:
        - computed_at
        - attribution_lookback_days
      additionalProperties: false
      description: >-
        The person’s web acquisition card, null with no surviving link, or
        absent when the caller cannot receive it or the API is older.
    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
    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.