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

# Get state transition statistics

> Returns aggregated statistics about state transitions across all tasks. Provides insights into task processing patterns and bottlenecks.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json get /tasks/state_transitions/stats
openapi: 3.1.0
info:
  title: Herodotus Data Processor Server API
  description: API documentation for the Herodotus Data Processor Server
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://staging.hdp.api.herodotus.cloud
    description: Staging API endpoint
security: []
tags:
  - name: tasks
    description: Task management endpoints
  - name: health
    description: Health check endpoints
  - name: modules
    description: Module registry endpoints
paths:
  /tasks/state_transitions/stats:
    get:
      tags:
        - tasks
      summary: Get state transition statistics
      description: >-
        Returns aggregated statistics about state transitions across all tasks.
        Provides insights into task processing patterns and bottlenecks.
      operationId: getStateTransitionStats
      responses:
        '200':
          description: State transition statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StateTransitionStatsResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    StateTransitionStatsResponse:
      type: object
      required:
        - state_transition_stats
      properties:
        state_transition_stats:
          type: array
          items:
            $ref: '#/components/schemas/StateTransitionStats'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        details:
          type:
            - string
            - 'null'
        error:
          type: string
        message:
          type:
            - string
            - 'null'
        taskId:
          type:
            - string
            - 'null'
    StateTransitionStats:
      type: object
      required:
        - to_status
        - count
      properties:
        count:
          type: integer
          format: int64
          minimum: 0
        from_status:
          type:
            - string
            - 'null'
        to_status:
          type: string

````