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

# Get events schema (deprecated)

> Deprecated. Use `GET /v1/runs/{run_id}/schema` (single-run) or `GET /v1/runs/schema` (project-wide) instead.



## OpenAPI

````yaml https://raw.githubusercontent.com/honeyhiveai/honeyhive-openapi/main/openapi.yaml get /v1/events/schema
openapi: 3.1.0
info:
  title: HoneyHive Data Plane API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: 1.2.1
servers:
  - url: https://api.honeyhive.ai
security:
  - BearerAuth: []
tags:
  - name: Charts
    description: >
      Define and manage saved charts. Charts are visualizations that aggregate
      metrics over time with bucketing, filters, and groupings.
  - name: Configurations
    description: >
      Manage prompt configurations, i.e. model parameters, message templates,
      and response settings that can be versioned and deployed without code
      changes.
  - name: Datapoints
    description: >
      Manage individual records inside datasets, including batch creation and
      mapping to source events.
  - name: Datasets
    description: >
      Curate collections of datapoints used as test sets for evaluations and
      experiments.
  - name: Events
    description: >
      Read and write trace events. Events are the spans that capture every step
      of an AI application's execution.
  - name: Experiments
    description: >
      Run, retrieve, and compare evaluation runs to measure how prompt or
      configuration changes affect agent performance.
  - name: Metric Versions
    description: >
      Snapshot, list, and deploy versions of a metric's definition so changes
      can be reviewed and rolled back without losing history.
  - name: Metrics
    description: >
      Define and run evaluators, i.e. automated quality checks that score traces
      against criteria like accuracy, safety, or correctness.
  - name: Queues
    description: >
      Manage annotation queues for human review of traces, turning expert
      feedback into labeled datasets.
  - name: Sessions
    description: >
      Group related trace events into sessions, the top-level container for a
      multi-step or multi-service AI interaction.
paths:
  /v1/events/schema:
    get:
      tags:
        - Events
      summary: Get events schema (deprecated)
      description: >-
        Deprecated. Use `GET /v1/runs/{run_id}/schema` (single-run) or `GET
        /v1/runs/schema` (project-wide) instead.
      operationId: getEventsSchemaLegacy
      parameters:
        - in: query
          name: dateRange
          required: false
          schema:
            oneOf:
              - type: string
              - $ref: '#/components/schemas/GetEventsSchemaLegacyDateRangeOneOf1'
          description: Filter by date range
        - in: query
          name: evaluation_id
          required: false
          schema:
            type: string
          description: Filter by evaluation/run ID
      responses:
        '200':
          description: Events schema retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetEventsSchemaResponse'
      deprecated: true
components:
  schemas:
    GetEventsSchemaLegacyDateRangeOneOf1:
      type: object
      properties:
        $gte:
          oneOf:
            - type: string
            - type: number
        $lte:
          oneOf:
            - type: string
            - type: number
    GetEventsSchemaResponse:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ExperimentSchemaField'
        datasets:
          type: array
          items:
            type: string
        mappings:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/ExperimentSchemaMappingEntry'
      required:
        - fields
        - datasets
        - mappings
      description: >-
        Response for GET /events/schema, GET /runs/{run_id}/schema, and GET
        /runs/schema
    ExperimentSchemaField:
      type: object
      properties:
        name:
          type: string
        event_type:
          type: string
      required:
        - name
        - event_type
    ExperimentSchemaMappingEntry:
      type: object
      properties:
        field_name:
          type: string
        event_type:
          type: string
      required:
        - field_name
        - event_type
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````