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

# Get events

> Retrieve billable events filtered by event type.



## OpenAPI

````yaml get /v1/events
openapi: 3.1.0
info:
  title: Hyperline Ingest API
  version: 0.0.0
servers:
  - url: https://ingest.hyperline.co
  - url: https://sandbox.ingest.hyperline.co
security: []
paths:
  /v1/events:
    get:
      tags:
        - Usage > Billable events
      summary: Get events
      description: Retrieve billable events filtered by event type.
      operationId: getEvents
      parameters:
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            maximum: 100
            default: 50
          required: false
          name: take
          in: query
        - schema:
            type:
              - number
              - 'null'
            minimum: 0
            default: 0
          required: false
          name: skip
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
            description: Sort direction.
            example: desc
          required: false
          description: Sort direction.
          name: order
          in: query
        - schema:
            type: string
            enum:
              - timestamp
            description: Field used to sort the results.
          required: false
          description: Field used to sort the results.
          name: sort
          in: query
        - schema:
            type: string
            description: Event type to filter by
            example: api_call
          required: true
          description: Event type to filter by
          name: event_type
          in: query
        - schema:
            type: string
            description: Filter by customer ID
            example: cus_xyz789
          required: false
          description: Filter by customer ID
          name: customer_id
          in: query
        - schema:
            type: string
            description: >-
              Filter by record ID. Supports comma-separated list for multiple
              records.
            example: rec_123
          required: false
          description: >-
            Filter by record ID. Supports comma-separated list for multiple
            records.
          name: record_id__in
          in: query
        - schema:
            type: object
            additionalProperties:
              type: string
            description: >-
              Filter on properties of the event record, passed as
              `record[<property>]=<value>` (for example
              `record[case_id]=cas_123`). Append `__in` to the property name to
              match a comma-separated list, such as
              `record[case_id__in]=cas_123,cas_456`. Values are compared as
              strings, several properties can be combined and are joined with a
              logical AND, and at most 5 properties can be filtered at once.
            example:
              case_id: cas_123
          required: false
          description: >-
            Filter on properties of the event record, passed as
            `record[<property>]=<value>` (for example
            `record[case_id]=cas_123`). Append `__in` to the property name to
            match a comma-separated list, such as
            `record[case_id__in]=cas_123,cas_456`. Values are compared as
            strings, several properties can be combined and are joined with a
            logical AND, and at most 5 properties can be filtered at once.
          name: record
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Filter events with timestamp greater than or equal to this ISO8601
              date.
            example: '2024-01-01T00:00:00Z'
          required: false
          description: >-
            Filter events with timestamp greater than or equal to this ISO8601
            date.
          name: timestamp_gte
          in: query
        - schema:
            type: string
            format: date-time
            description: >-
              Filter events with timestamp less than or equal to this ISO8601
              date.
            example: '2024-01-31T23:59:59Z'
          required: false
          description: >-
            Filter events with timestamp less than or equal to this ISO8601
            date.
          name: timestamp_lte
          in: query
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedEvent'
      security:
        - bearer: []
components:
  schemas:
    PaginatedEvent:
      type: object
      properties:
        meta:
          type: object
          properties:
            total:
              type: number
              description: Total of existing items.
              example: 1
            taken:
              type: number
              description: Number of items returned.
              example: 1
            skipped:
              type: number
              description: Number of items skipped.
              example: 0
          required:
            - total
            - taken
            - skipped
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                description: Event ID in Hyperline.
                example: evt_abc123def456
              event_type:
                type: string
                description: Type of the event, as defined when ingesting events.
                example: api_call
              timestamp:
                type: string
                description: Timestamp of when the event occurred.
                example: '2024-01-15T10:30:00.000Z'
              customer_id:
                type:
                  - string
                  - 'null'
                description: ID of the customer associated with this event.
                example: cus_xyz789
              record_id:
                type: string
                description: External record ID provided when ingesting the event.
                example: rec_123
              record:
                type: object
                additionalProperties: {}
                description: JSON payload of the event record.
                example:
                  id: rec_123
                  endpoint: /api/users
                  method: GET
            required:
              - id
              - event_type
              - timestamp
              - customer_id
              - record_id
              - record
          description: List of Event.
      required:
        - meta
        - data
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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