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

# CreateEvent



## OpenAPI

````yaml openapi/api_v1_data_openapi3_DOCUMENTATION_ONLY.json POST /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:
    post:
      tags:
        - DataV1
      operationId: CreateEvent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/datav1CreateEventRequest'
        description: Request to create an event.
        required: true
        x-originalParamName: body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/datav1CreateEventResponse'
          description: A successful response.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
          description: An unexpected error response.
components:
  schemas:
    datav1CreateEventRequest:
      description: Request to create an event.
      properties:
        event:
          allOf:
            - $ref: '#/components/schemas/datav1Event'
          description: Event to create.
      type: object
    datav1CreateEventResponse:
      description: Response returned after an event is created.
      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
    protobufAny:
      additionalProperties: {}
      properties:
        '@type':
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Chronosphere API token
      in: header
      name: API-Token
      type: apiKey

````

## Related topics

- [Change event limits](https://docs-xcor.paloaltonetworks.com/administer/limits-licensing/limits/event-limits.md)
- [Use change events](https://docs-xcor.paloaltonetworks.com/observe/enable-events/use-events.md)
- [Send Amazon EventBridge events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party/aws-eventbridge.md)
- [Send third-party events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party.md)
- [Enable change events on dashboards](https://docs-xcor.paloaltonetworks.com/observe/enable-events/dashboards.md)


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