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

# List supported formats

> Returns every format understood by the running binary, with its file extensions, MIME types, and whether it can be used as an input, an output, or both.



## OpenAPI

````yaml /api-reference/cli/openapi.json get /formats
openapi: 3.1.0
info:
  title: screenjson-cli REST API
  description: >-
    REST API exposed by `screenjson serve`. Wraps the same conversion, export,
    validation, and schema engine as the CLI.


    Start locally with `screenjson serve --host 0.0.0.0 --port 8080`.
  version: 1.0.0
  contact:
    name: ScreenJSON
    url: https://screenjson.com
servers:
  - url: http://localhost:8080
    description: Local development
  - url: https://api.try.screenjson.com
    description: Public demo API
security: []
paths:
  /formats:
    get:
      tags:
        - System
      summary: List supported formats
      description: >-
        Returns every format understood by the running binary, with its file
        extensions, MIME types, and whether it can be used as an input, an
        output, or both.
      operationId: listFormats
      responses:
        '200':
          description: Array of format descriptors
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Format'
              example:
                - name: fdx
                  extensions:
                    - .fdx
                  mimeTypes:
                    - application/xml
                  canDecode: true
                  canEncode: true
                  description: Final Draft FDX format
                - name: fountain
                  extensions:
                    - .fountain
                    - .spmd
                  mimeTypes:
                    - text/plain
                  canDecode: true
                  canEncode: true
                  description: Fountain plain-text screenplay format
components:
  schemas:
    Format:
      type: object
      properties:
        name:
          type: string
        extensions:
          type: array
          items:
            type: string
        mimeTypes:
          type: array
          items:
            type: string
        canDecode:
          type: boolean
        canEncode:
          type: boolean
        description:
          type: string

````