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

# ListEvents



## OpenAPI

````yaml openapi/api_v1_data_openapi3_DOCUMENTATION_ONLY.json GET /api/v1/data/events
openapi: 3.0.3
info:
  description: |

    The Data API provides HTTP/JSON REST endpoints for reading and writing data
    to the Chronosphere system.

    Use this link to download the raw Swagger specification:
    <a href="/api/v1/data/swagger.json">/api/v1/data/swagger.json</a>
  title: Data V1 API
  version: v1
servers:
  - url: https://{tenant}.chronosphere.io
    variables:
      tenant:
        default: tenant
        description: tenant ID assigned by the service provider
security:
  - ApiKeyAuth: []
tags:
  - name: DataV1
paths:
  /api/v1/data/events:
    get:
      tags:
        - DataV1
      operationId: ListEvents
      parameters:
        - description: >-
            Lower bound for the event occurrence time. Set together with
            `happened_before`.

            If both time bounds are omitted, defaults to one hour before the
            current time.
          in: query
          name: happened_after
          schema:
            format: date-time
            type: string
        - description: >-
            Upper bound for the event occurrence time. Set together with
            `happened_after`.

            If both time bounds are omitted, defaults to the current time.
          in: query
          name: happened_before
          schema:
            format: date-time
            type: string
        - description: >-
            Query expression used to filter events.


            Supported comparison operators: `=`, `=~`, `!=`, and `!~`.

            Supported logical operators: `AND` and `OR`.

            Parentheses group nested expressions. Dot notation selects label
            values.

            Single or double quotation marks delimit string literals.


            Examples:
             * `type = "my-type"`
             * `type != 'my-type'`
             * `source !~ "my-source|my-other-source"`
             * `(source != "my-source" AND labels.cluster =~ "my-cluster")`
          in: query
          name: query
          schema:
            type: string
        - description: >-
            Sets the preferred number of items to return per page. If set to
            `0`, the

            server will use its default value. Regardless of the value
            specified, clients

            must never assume how many items will be returned.
          in: query
          name: page.max_size
          schema:
            format: int64
            type: integer
        - description: >-
            An opaque page token that identifies which page the client should
            request.

            An empty value indicates the first page.
          in: query
          name: page.token
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datav1ListEventsResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
          description: An unexpected error response.
components:
  schemas:
    datav1ListEventsResponse:
      description: Response containing a page of events.
      properties:
        events:
          description: Events in the current page.
          items:
            $ref: '#/components/schemas/datav1Event'
          type: array
        page:
          allOf:
            - $ref: '#/components/schemas/configv1PageResult'
          description: Pagination details for the response.
      type: object
    googlerpcStatus:
      properties:
        code:
          format: int32
          type: integer
        details:
          items:
            $ref: '#/components/schemas/protobufAny'
          type: array
        message:
          type: string
      type: object
    datav1Event:
      description: A change event.
      properties:
        category:
          description: >-
            Change Event categories are case sensitive. Each of the listed
            categories are

            lowercase and must be queried in all lowercase. For example,
            `"category":

            "alerts"` is valid, but `"category": "Alerts"` is invalid.


            Palo Alto Networks Support can add and remove custom categories upon
            request.

            Because categories are case sensitive, custom categories must be
            queried using

            the same case they were created. For example, if you create a
            category called

            `INGEST`, any queries in Changes Explorer must use `INGEST` in all
            uppercase

            as the category to query.
          title: |-
            Category used to group the event. Built-in categories:
             * `alerts`
             * `broadcasts`
             * `chronosphere`
             * `deploys`
             * `feature_flags`
             * `infrastructure`
             * `third_party`
          type: string
        happened_at:
          description: >-
            Time when the event occurred. Must be no more than 24 hours before
            or after

            the current time. Default: current time.
          format: date-time
          type: string
        id:
          description: Output only. Unique identifier for the change event.
          readOnly: true
          type: string
        labels:
          additionalProperties:
            type: string
          description: >-
            Map of queryable, user-supplied key-value pairs associated with the
            event.
             * Maximum labels: 200 per event
             * Maximum key length: 200 characters
             * Maximum value length: 5,000 characters
          type: object
        payload_json:
          description: >-
            Original event as a string-escaped JSON value. Set either
            `payload_json` or

            `payload_object`, but not both. This field is not queryable.

            Maximum length: 100,000 characters.
          type: string
        payload_object:
          description: >-
            Input only. JSON payload for an original event in key-value format.
            Set either

            `payload_json` or `payload_object`, but not both.

            Maximum length: 100,000 characters.
          type: object
        source:
          description: >-
            System or integration from which the event originated. Use this
            value to

            identify the instrumentation or integration to update.

            Maximum length: 50 characters.
          type: string
        title:
          description: >-
            A short description of the event, such as a deployment commit
            message.

            Maximum length: 100 characters.
          type: string
        type:
          description: >-
            Event type used to group and distinguish events within a `category`
            or

            `source`.
          type: string
      type: object
    configv1PageResult:
      properties:
        next_token:
          description: |-
            An opaque page token that identifies the next page of items that the
            client should request. An empty value indicates that there are no
            more items to return.
          type: string
      type: object
    protobufAny:
      additionalProperties: {}
      properties:
        '@type':
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````

## Related topics

- [Use change events](https://docs-xcor.paloaltonetworks.com/observe/enable-events/use-events.md)
- [ListEventFieldValues](https://docs-xcor.paloaltonetworks.com/tooling/api-info/data_definition/operations/ListEventFieldValues.md)
- [Cortex XCOR MCP server tools](https://docs-xcor.paloaltonetworks.com/integrate/mcp-server/resources.md)
- [ListExternalConnections](https://docs-xcor.paloaltonetworks.com/tooling/api-info/definition/operations/ListExternalConnections.md)
- [Alert details](https://docs-xcor.paloaltonetworks.com/investigate/alerts/alert-details.md)


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