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

> Lists pixel events for a person, most recent first. Events are shaped like the POST /conversions intake: attribution in context, identity in user.



## OpenAPI

````yaml /openapi/api-v1-native.yml get /events
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:
  /events:
    get:
      tags:
        - Events
      summary: List Events
      description: >-
        Lists pixel events for a person, most recent first. Events are shaped
        like the POST /conversions intake: attribution in context, identity in
        user.
      operationId: listEvents
      parameters:
        - name: person_id
          in: query
          schema:
            type: string
          required: true
          description: The ID of the person.
        - 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.
        - 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 events to return.
      responses:
        '200':
          description: events listed
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        event_id:
                          type: string
                        event_name:
                          type: string
                        custom_name:
                          type:
                            - string
                            - 'null'
                        event_time:
                          type: integer
                        url:
                          type:
                            - string
                            - 'null'
                        path:
                          type:
                            - string
                            - 'null'
                        referrer_url:
                          type:
                            - string
                            - 'null'
                        value:
                          type:
                            - number
                            - 'null'
                        currency:
                          type:
                            - string
                            - 'null'
                        total_usd_amount:
                          type:
                            - number
                            - 'null'
                        context:
                          type:
                            - object
                            - 'null'
                          properties:
                            utm_source:
                              type:
                                - string
                                - 'null'
                            utm_campaign:
                              type:
                                - string
                                - 'null'
                            utm_medium:
                              type:
                                - string
                                - 'null'
                            utm_content:
                              type:
                                - string
                                - 'null'
                            utm_term:
                              type:
                                - string
                                - 'null'
                            ad_campaign_id:
                              type:
                                - string
                                - 'null'
                            ad_set_id:
                              type:
                                - string
                                - 'null'
                            ad_id:
                              type:
                                - string
                                - 'null'
                        user:
                          type:
                            - object
                            - 'null'
                          properties:
                            email:
                              type:
                                - string
                                - 'null'
                            first_name:
                              type:
                                - string
                                - 'null'
                            last_name:
                              type:
                                - string
                                - 'null'
                            name:
                              type:
                                - string
                                - 'null'
                            phone:
                              type:
                                - string
                                - 'null'
                            country:
                              type:
                                - string
                                - 'null'
                            state:
                              type:
                                - string
                                - 'null'
                            city:
                              type:
                                - string
                                - 'null'
                      required:
                        - id
                        - event_id
                        - event_name
                        - event_time
                required:
                  - data
        '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.

````