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

# List presets



## OpenAPI

````yaml /api/openapi.json get /api/v1/presets
openapi: 3.0.2
info:
  title: Melius API
  version: '1'
  description: >-
    The Melius REST API. Authenticate with an API key as a bearer token
    (`Authorization: Bearer mel_...`) and select the team to act on with the
    `x-team-id` header. Generations run through the same node + run pipeline as
    the app: create a node on a canvas, start a run, poll the run, then read the
    resulting version asset.
servers:
  - url: https://api.melius.com
security:
  - apiKey: []
    teamId: []
paths:
  /api/v1/presets:
    get:
      tags:
        - preset
      summary: List presets
      operationId: preset.list
      parameters: []
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        title:
                          type: string
                        groupLabel:
                          type: string
                        icon:
                          type: string
                        description:
                          type: string
                        nodes:
                          type: array
                          items:
                            oneOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - text
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      mode:
                                        type: string
                                      prompt:
                                        type: string
                                    required:
                                      - title
                                      - mode
                                      - prompt
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - image
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      src:
                                        type: string
                                      mode:
                                        type: string
                                      aspectRatio:
                                        type: string
                                      prompt:
                                        type: string
                                    required:
                                      - title
                                      - mode
                                      - prompt
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - video
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      src:
                                        type: string
                                      mode:
                                        type: string
                                      aspectRatio:
                                        type: string
                                      duration:
                                        type: string
                                      prompt:
                                        type: string
                                    required:
                                      - title
                                      - mode
                                      - prompt
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - audio
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      src:
                                        type: string
                                      mode:
                                        type: string
                                      prompt:
                                        type: string
                                      voiceId:
                                        type: string
                                    required:
                                      - title
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - file
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      src:
                                        type: string
                                      mediaType:
                                        type: string
                                        enum:
                                          - image
                                          - video
                                    required:
                                      - title
                                      - mediaType
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - custom_text
                                  data:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                      generatedText:
                                        type: string
                                    required:
                                      - title
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - group
                                  data:
                                    type: object
                                    properties:
                                      label:
                                        type: string
                                    required:
                                      - label
                                    additionalProperties: true
                                  key:
                                    type: string
                                  width:
                                    type: number
                                  height:
                                    type: number
                                  column:
                                    type: number
                                  x:
                                    type: number
                                  'y':
                                    type: number
                                  autoModel:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                        minLength: 1
                                      variant:
                                        type: string
                                        minLength: 1
                                    required:
                                      - model
                                      - variant
                                  parentKey:
                                    type: string
                                required:
                                  - type
                                  - data
                                  - key
                        edges:
                          type: array
                          items:
                            type: object
                            properties:
                              sourceKey:
                                type: string
                              targetKey:
                                type: string
                              handleId:
                                type: string
                              targetHandleId:
                                type: string
                            required:
                              - sourceKey
                              - targetKey
                              - handleId
                      required:
                        - id
                        - title
                        - groupLabel
                        - icon
                        - description
                        - nodes
                        - edges
                required:
                  - data
        '401':
          description: Missing, invalid, expired, or revoked API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - statusCode
                  - message
        '403':
          description: The API key's user is not a member of the requested team.
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - statusCode
                  - message
        '429':
          description: Rate limit reached — retry after the `Retry-After` header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  retryAfterSeconds:
                    type: integer
                required:
                  - statusCode
                  - message
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'A Melius API key (`mel_...`), sent as `Authorization: Bearer <key>`.'
    teamId:
      type: apiKey
      in: header
      name: x-team-id
      description: The team (workspace) to act on. Defaults to the key's team when omitted.

````