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

# List runtime config types

> Every type a runtime config can be, with the fields its config takes.



## OpenAPI

````yaml /openapi.yaml get /v1/runtimes/types
openapi: 3.1.0
info:
  title: Mirage API
  version: '0.1'
servers:
  - url: http://127.0.0.1:8765
    description: A local daemon on its default port
security:
  - bearerAuth: []
paths:
  /v1/runtimes/types:
    get:
      tags:
        - Saved runtimes
      summary: List runtime config types
      description: Every type a runtime config can be, with the fields its config takes.
      operationId: list_types_v1_runtimes_types_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TypeTable'
        '401':
          $ref: '#/components/responses/401'
        '429':
          $ref: '#/components/responses/429'
        '501':
          $ref: '#/components/responses/501'
components:
  schemas:
    TypeTable:
      type: object
      description: Each type by name, with the fields its config takes.
      additionalProperties:
        type: array
        items:
          $ref: '#/components/schemas/TypeField'
    TypeField:
      type: object
      properties:
        name:
          type: string
          description: The field's key in `fields`.
        type:
          type: string
          enum:
            - string
            - number
            - boolean
            - list
            - object
        secret:
          type: boolean
          description: 'Kept sealed: write-only, never answered.'
        required:
          type: boolean
        options:
          type: array
          items:
            type: string
          description: The values the field takes, when it is a choice.
        description:
          type: string
        default:
          anyOf:
            - type: string
            - type: number
            - type: boolean
        group:
          type: string
          description: The section a form shows the field under.
      required:
        - name
        - type
        - secret
        - required
    Error:
      type: object
      properties:
        detail:
          description: What went wrong, as text or a structured record.
        errno:
          type: string
          description: The errno of a failed file call, such as ENOENT.
        refusal:
          type: object
          description: The policy refusal, when a policy refused the call.
      required:
        - detail
  responses:
    '401':
      description: The token is missing or wrong
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
        text/plain:
          schema:
            type: string
            description: The Python daemon answers Unauthorized as plain text.
    '429':
      description: Past a rate limit, or a new session past max_sessions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            minimum: 0
    '501':
      description: >-
        The server requires accounts; saved configs are kept only on a server of
        one account
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        The server's token (MIRAGE_AUTH_TOKEN) or a JWT. A daemon in the default
        local mode with no token accepts requests without one.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.