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

# Get Event Types

> Get all distinct event types with event counts.

Use this endpoint to discover valid values for the event_type
filter parameter in event queries.

Optionally filter by category to see types within a specific category.



## OpenAPI

````yaml /api-reference/corpus-product-openapi.json get /v1/metadata/event-types
openapi: 3.1.0
info:
  title: Intrace Corpus Product API
  version: 1.0.0
  description: >-
    Professional API for accessing events, actors, locations, and metadata from
    the Intrace corpus database.
servers:
  - url: https://api.corpus.intrace.ai
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/metadata/event-types:
    get:
      tags:
        - Metadata
      summary: Get Event Types
      description: |-
        Get all distinct event types with event counts.

        Use this endpoint to discover valid values for the event_type
        filter parameter in event queries.

        Optionally filter by category to see types within a specific category.
      operationId: get_event_types_v1_metadata_event_types_get
      parameters:
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter types by event category
            title: Category
          description: Filter types by event category
        - name: api_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: Api Key
          description: Corpus API key
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Corpus API key
            title: X-Api-Key
          description: Corpus API key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EventTypesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EventTypesResponse:
      properties:
        types:
          items:
            $ref: '#/components/schemas/MetadataValueCount'
          type: array
          title: Types
      type: object
      required:
        - types
      title: EventTypesResponse
      description: List of event types with counts.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MetadataValueCount:
      properties:
        value:
          type: string
          title: Value
        count:
          type: integer
          title: Count
      type: object
      required:
        - value
        - count
      title: MetadataValueCount
      description: A single metadata value with its occurrence count.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````