---
title: "EventQuery"
url: "https://developers.vzconnect.com/apis/video-event-api-1/versions/ca29ffe3-f50c-46b4-b1d1-213c2a218c4c/schemas/EventQuery"
---

> Full API specification: https://developers.vzconnect.com/apis/video-event-api-1/versions/ca29ffe3-f50c-46b4-b1d1-213c2a218c4c.md

# EventQuery

criteria to search for events

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Video Event API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    Conditions:
      maxItems: 15
      minItems: 1
      type: array
      description: Group of conditions to filter by the resource representation.
      example:
        - field: occurredAt
          values:
            - 2024-12-08 05:43:32
            - 2024-12-08 21:27:44.333
          operator: BETWEEN
        - field: classification
          values:
            - MINOR
            - MODERATE
            - MAJOR
            - CRITICAL
          operator: CONTAINS_ANY
        - field: coachingStatus
          values:
            - REVIEW_PENDING
          operator: CONTAINS_ANY
        - field: activities
          values:
            - VIDEO_WATCHED
            - VIDEO_STARRED
          operator: CONTAINS_ALL
        - field: tagCategory
          values:
            - HDE
            - REQUESTED
            - ADAS
            - DMS
          operator: CONTAINS_ANY
      items:
        required:
          - field
          - operator
          - values
        type: object
        properties:
          field:
            maxLength: 100
            minLength: 1
            pattern: ^(occurredAt|driverId|vehicleId|fleetItemId|address|classification|tags|coachingStatus|activities|videoEventId|createdAt|tagCategory)$
            type: string
            description: Name of the property to be evaluated.
          values:
            maxItems: 8000
            minItems: 1
            type: array
            description: Value to evaluate.
            items:
              maxLength: 500
              minLength: 1
              pattern: ^[a-zA-Z0-9\s_\W]+$
              type: string
          operator:
            type: string
            description: Operator to use to compare between property values and a defined
              set of values. The available operators include 'BETWEEN',
              'CONTAINS_ANY', 'CONTAINS_NONE', 'CONTAINS_ALL', "EQUALS".
            enum:
              - BETWEEN
              - CONTAINS_ANY
              - CONTAINS_NONE
              - CONTAINS_ALL
              - EQUALS
            default: BETWEEN
        additionalProperties: false
    EventQuery:
      type: object
      properties:
        pagination:
          required:
            - limit
          type: object
          properties:
            pageToken:
              maxLength: 36
              minLength: 10
              pattern: ^[a-zA-Z0-9_]+$
              type: string
              description: An optional pagination token from a previous API response. Provide
                this token to retrieve the next page of results. If omitted or
                null, the search will return the first page.
              nullable: true
            limit:
              maximum: 100
              minimum: 1
              type: integer
              description: It defines the number of entries on the selected page. The default
                value is 20.
              format: int32
              default: 20
            totalRequired:
              type: boolean
              description: It is used to return the total number of items.
              default: false
          additionalProperties: false
          description: It defines parameters for controlling the pagination of results,
            allowing users to navigate through large datasets.
          example:
            limit: 20
            totalRequired: true
        orderBy:
          maxItems: 1
          minItems: 1
          type: array
          description: Group of sorting requests of the resource representation based on
            one or more properties of the entity.
          example:
            - field: occurredAt
              sortOrder: DESC
          items:
            required:
              - field
              - sortOrder
            type: object
            properties:
              field:
                maxLength: 255
                minLength: 1
                pattern: ^occurredAt$
                type: string
                description: Name of the property to be sorted by.
              sortOrder:
                type: string
                description: Sort order
                enum:
                  - DESC
                default: DESC
            additionalProperties: false
        conditions:
          $ref: "#/components/schemas/Conditions"
        fields:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Resource properties to return. If not provided, the response will
            include the default properties.
          example:
            - videoEventId
            - occurredAt
            - driverId
            - vehicleId
            - address
            - classification
            - tags
            - triggers
            - coachingStatus
            - media
            - activities
          items:
            maxLength: 255
            minLength: 1
            pattern: ^(videoEventId|occurredAt|driverId|vehicleId|fleetItemId|address|classification|tags|triggers|coachingStatus|media|activities)$
            type: string
            description: Field or property name
      additionalProperties: false
      description: criteria to search for events
      writeOnly: true
```
