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

# List events

> Retrieve events for the authenticated client with filters and pagination.



## OpenAPI

````yaml /openapi.json get /client/events
openapi: 3.0.1
info:
  title: MailerPath API
  description: This is the API for MailerPath, a service for managing and sending emails.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.38.0
servers:
  - url: https://api.mailerpath.com/api/v1
security: []
paths:
  /client/events:
    get:
      tags:
        - Events
      summary: List events
      description: >-
        Retrieve events for the authenticated client with filters and
        pagination.
      parameters:
        - name: id
          in: query
          description: Filter by event ID
          schema:
            type: integer
        - name: contact_id
          in: query
          description: Filter by contact ID
          schema:
            type: integer
        - name: event_type
          in: query
          description: >-
            Filter by event type: 1=signup, 2=purchase, 3=core_activity,
            4=referral, 5=feature_used, 6=support_ticket, 7=cart,
            8=re_engagement
          schema:
            type: string
        - name: source
          in: query
          description: Filter by source (contains, case-insensitive)
          schema:
            type: string
        - name: status
          in: query
          description: Filter by status
          schema:
            type: string
        - name: action_type
          in: query
          description: Filter by action type
          schema:
            type: string
        - name: feature
          in: query
          description: Filter by feature
          schema:
            type: string
        - name: plan
          in: query
          description: Filter by plan
          schema:
            type: string
        - name: processed
          in: query
          description: Filter by processed status
          schema:
            type: boolean
        - name: from
          in: query
          description: Start datetime (RFC3339)
          schema:
            type: string
        - name: to
          in: query
          description: End datetime (RFC3339)
          schema:
            type: string
        - name: q
          in: query
          description: Search in external_id, idempotency_key, and metadata
          schema:
            type: string
        - name: page
          in: query
          description: Page number
          schema:
            type: integer
            default: 1
        - name: page_size
          in: query
          description: Items per page
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/internal_api.APIResponse'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: >-
                            #/components/schemas/internal_api.ClientEventResponse
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api.APIResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api.APIResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    internal_api.APIResponse:
      type: object
      properties:
        data:
          type: object
        errors:
          type: array
          items:
            $ref: '#/components/schemas/internal_api.ValidationError'
        message:
          type: string
          example: Operation successful
        meta:
          type: object
        success:
          type: boolean
          example: true
    internal_api.ClientEventResponse:
      type: object
      properties:
        action:
          type: string
        amount:
          type: number
        client_id:
          type: integer
        contact:
          $ref: '#/components/schemas/internal_api.EventContactInfo'
        contact_id:
          type: integer
        created_at:
          type: string
        external_id:
          type: string
        feature:
          type: string
        id:
          type: integer
        idempotency_key:
          type: string
        metadata:
          type: object
        plan:
          type: string
        process_error:
          type: string
        processed:
          type: boolean
        processed_at:
          type: string
        source:
          type: string
        status:
          type: string
        ts:
          type: string
        type:
          type: string
        upgrade:
          type: boolean
    internal_api.ValidationError:
      type: object
      properties:
        condition:
          type: string
          example: format
        error:
          type: string
          example: Invalid email format
        key:
          type: string
          example: email
    internal_api.EventContactInfo:
      type: object
      properties:
        email:
          type: string
        first_name:
          type: string
        last_name:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      description: JWT Bearer token or raw API key via Authorization header
      name: Authorization
      in: header

````