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

# List task types

> The task types the router classifies into, their families, and the benchmarks each one is scored on. Requires `runs_read`.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/router/task-types
openapi: 3.1.0
info:
  title: OpenType API
  version: 0.1.0
  license:
    name: Apache-2.0
  description: >-
    The OpenType HTTP API: decision runs on Neon 1.1, API keys, usage, quota and
    billing. Every `/v1` route takes `Authorization: Bearer <credential>`, where
    the credential is an API key (`otsk_` followed by 64 hex characters) or a
    console session token. Amounts are integers in micro-USD (1,000,000 = 1 US
    dollar). Errors share one envelope, `{"error": {"code", "message",
    "request_id"}}`. Stripe is named only where it hosts checkout, the billing
    portal and receipts.
servers:
  - url: https://api.opentype.dev
    description: Production
  - url: https://api.opentype.dev
    description: Production
security:
  - bearer: []
  - bearer: []
tags:
  - name: runs
    description: Create, list, retrieve and stream runs.
  - name: keys
    description: Create, list, rotate and revoke API keys.
  - name: usage
    description: Usage rollups, the daily series, the ledger and quota.
  - name: billing
    description: Credit balance, checkout, the billing portal and auto-recharge.
  - name: health
    description: Public liveness and readiness checks.
  - name: router
    description: >-
      Model Router: classify a task with Neon 1.1 and pick a model from the
      benchmark catalog.
paths:
  /v1/router/task-types:
    get:
      tags:
        - router
      summary: List task types
      description: >-
        The task types the router classifies into, their families, and the
        benchmarks each one is scored on. Requires `runs_read`.
      operationId: list_task_types
      responses:
        '200':
          description: The task taxonomy and its benchmark vectors
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RouterTaskTypesResponse'
        '401':
          description: Missing, malformed, or expired credential
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunsErrorBody'
        '403':
          description: The credential lacks runs_read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunsErrorBody'
        '503':
          description: The catalog is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunsErrorBody'
      security:
        - bearer: []
        - bearer: []
components:
  schemas:
    RouterTaskTypesResponse:
      type: object
      required:
        - benchmarks_as_of
        - families
        - task_types
      properties:
        benchmarks_as_of:
          type: string
        families:
          type: array
          items:
            type: string
        task_types:
          type: array
          items:
            $ref: '#/components/schemas/RouterTaskTypeInfo'
    RunsErrorBody:
      type: object
      description: The error envelope, shared by every route. Branch on `error.code`.
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/RunsErrorDetail'
    RouterTaskTypeInfo:
      type: object
      description: A task type the router classifies into.
      required:
        - id
        - family
        - domain
        - description
        - turns
        - weights
      properties:
        id:
          type: string
          example: code_generation
        family:
          type: string
          example: coding
        domain:
          type: string
          description: The v1 domain it reports as.
        description:
          type: string
        turns:
          type: number
          format: double
          description: Expected model turns; agentic types are multi-turn.
        weights:
          type: array
          items:
            $ref: '#/components/schemas/RouterTaskWeight'
          description: The benchmark vector, primary first.
    RunsErrorDetail:
      type: object
      required:
        - code
        - message
        - request_id
      properties:
        code:
          type: string
          description: Stable snake_case code. The only field to branch on.
        message:
          type: string
        request_id:
          type: string
        violations:
          type: array
          items:
            type: string
          description: >-
            Only on `verdict_schema_violation`: up to 10 JSON Pointers into the
            rejected document.
    RouterTaskWeight:
      type: object
      description: One benchmark in a task type's weight vector.
      required:
        - benchmark
        - name
        - weight
      properties:
        benchmark:
          type: string
        name:
          type: string
        weight:
          type: number
          format: double
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (otsk_ + 64 hex) or a console session token.

````