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

# List People

> Lists the people (visitors and customers) of an account, aggregated from pixel events. The account is inferred from an account API key; other credentials must pass account_id.



## OpenAPI

````yaml /openapi/api-v1-native.yml get /people
openapi: 3.1.0
info:
  title: Whop API
  description: >-
    Hand-written V1 endpoints. Merged into the GraphqlRestProxy-generated schema
    at build time.
  version: v1
servers:
  - url: https://{defaultHost}
    variables:
      defaultHost:
        default: api.whop.com/api/v1
security: []
paths:
  /people:
    get:
      tags:
        - People
      summary: List People
      description: >-
        Lists the people (visitors and customers) of an account, aggregated from
        pixel events. The account is inferred from an account API key; other
        credentials must pass account_id.
      operationId: listPeople
      parameters:
        - name: account_id
          in: query
          schema:
            type: string
          required: false
          description: >-
            The ID of the account, which will look like biz_*************.
            Optional for account API keys; required for credentials that can
            access multiple accounts.
        - name: from
          in: query
          schema:
            type: integer
          required: false
          description: >-
            Start of the time range as a Unix timestamp. Defaults to 366 days
            before `to`.
        - name: to
          in: query
          schema:
            type: integer
          required: false
          description: End of the time range as a Unix timestamp. Defaults to now.
        - name: first
          in: query
          schema:
            type: integer
          required: false
          description: The number of people to return (default 100, max 101).
        - name: offset
          in: query
          schema:
            type: integer
          required: false
          description: The number of people to skip, for offset pagination.
        - name: sort
          in: query
          schema:
            type: string
          required: false
          description: >-
            Column to sort by (e.g. last_seen_at, ltv, purchase_count). Defaults
            to last_seen_at.
        - name: direction
          in: query
          schema:
            type: string
            enum:
              - asc
              - desc
          required: false
          description: Sort direction. Defaults to desc.
        - name: filters
          in: query
          schema:
            type: string
          required: false
          description: >-
            A JSON-encoded array of filters, each with field, operator, and
            value keys.
      responses:
        '200':
          description: people listed
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        person_id:
                          type: string
                        name:
                          type:
                            - string
                            - 'null'
                        email:
                          type:
                            - string
                            - 'null'
                        phone:
                          type:
                            - string
                            - 'null'
                        first_seen_at:
                          type: integer
                        last_seen_at:
                          type: integer
                        purchase_count:
                          type: integer
                        has_failed_payment:
                          type: boolean
                        ltv:
                          type: number
                        aov:
                          type: number
                        campaigns:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              name:
                                type:
                                  - string
                                  - 'null'
                              thumbnail_url:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - id
                        ad_sets:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              name:
                                type:
                                  - string
                                  - 'null'
                              thumbnail_url:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - id
                        ads:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              name:
                                type:
                                  - string
                                  - 'null'
                              thumbnail_url:
                                type:
                                  - string
                                  - 'null'
                            required:
                              - id
                      required:
                        - id
                        - person_id
                        - first_seen_at
                        - last_seen_at
                        - purchase_count
                  total_count:
                    type: integer
                required:
                  - data
                  - total_count
        '401':
          $ref: '#/components/responses/Unauthorized'
          description: missing or invalid authentication
      security:
        - bearerAuth:
            - company:basic:read
            - member:basic:read
            - member:journey:read
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/V1ErrorResponse'
  schemas:
    V1ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Machine-readable error code.
            message:
              type: string
              description: Human-readable error message.
          required:
            - type
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: auth-scheme
      description: >-
        An account API key, account scoped JWT, app API key, or user OAuth
        token.

````