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

> Get all distinct event subtypes with event counts.

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

Optionally filter by event_type to see subtypes within a specific type.



## OpenAPI

````yaml /api-reference/corpus-product-openapi.json get /v1/metadata/event-subtypes
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-subtypes:
    get:
      tags:
        - Metadata
      summary: Get Event Subtypes
      description: |-
        Get all distinct event subtypes with event counts.

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

        Optionally filter by event_type to see subtypes within a specific type.
      operationId: get_event_subtypes_v1_metadata_event_subtypes_get
      parameters:
        - name: event_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter subtypes by event type
            title: Event Type
          description: Filter subtypes by event type
        - 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/EventSubtypesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EventSubtypesResponse:
      properties:
        subtypes:
          items:
            $ref: '#/components/schemas/MetadataValueCount'
          type: array
          title: Subtypes
      type: object
      required:
        - subtypes
      title: EventSubtypesResponse
      description: List of event subtypes 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

````