> ## 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 machine config types

> Every type a machine config can be, with the fields its config takes. The example shows one registered type; the response includes all types available on the server.

> [accordion] Errors
>
> | Status | Meaning |
> | - | - |
> | `401` | The token is missing or wrong |
> | `429` | Past a rate limit, or a new session past max\_sessions |
> | `501` | The server requires accounts; saved configs are kept only on a server of one account |
>
> See [error examples and recovery steps](https://docs.mirage.strukto.ai/api/errors.md). The [complete OpenAPI contract](https://github.com/strukto-ai/mirage/blob/main/docs/openapi.yaml) includes every response schema.


## OpenAPI

````yaml /openapi.yaml get /v1/machines/types
openapi: 3.2.0
info:
  title: Mirage API
  version: '0.1'
servers:
  - url: http://127.0.0.1:8765
    description: A local server on its default port
security:
  - bearerAuth: []
tags:
  - name: Workspace operations
    x-group: Workspaces
  - name: Workspaces
    x-group: Lifecycle
    parent: Workspace operations
  - name: Sessions
  - name: Shell
    parent: Workspace operations
  - name: VFS
    parent: Workspace operations
  - name: Tools
  - name: Documents
    parent: Workspace operations
  - name: Snapshots
  - name: Templates
  - name: Saved VFS
    x-group: VFS
    parent: Saved configurations
  - name: Saved CLIs
    x-group: CLIs
    parent: Saved configurations
  - name: Saved runtimes
    x-group: Runtimes
    parent: Saved configurations
  - name: Saved machines
    x-group: Machines
    parent: Saved configurations
  - name: Saved configurations
  - name: Policies
  - name: Asks
    parent: Workspace operations
  - name: Lines
    parent: Workspace operations
  - name: Jobs
    parent: Workspace operations
  - name: Processes
    parent: Workspace operations
  - name: Machines
    parent: Workspace operations
  - name: Service
  - name: Daemon
  - name: Auth
paths:
  /v1/machines/types:
    get:
      tags:
        - Saved machines
      summary: List machine config types
      description: >-
        Every type a machine config can be, with the fields its config takes.
        The example shows one registered type; the response includes all types
        available on the server.
      operationId: list_types_v1_machines_types_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              example:
                docker:
                  - name: container
                    type: string
                    secret: false
                    required: true
              schema:
                $ref: '#/components/schemas/TypeTable'
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
  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.