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

# List workspace templates



## OpenAPI

````yaml openapi.json GET /v1/templates
openapi: 3.1.0
info:
  title: DocKiln API
  version: 1.1.0-review
  description: >-
    Workspace-scoped document generation. All timestamps are Unix milliseconds
    unless documented otherwise. The parity additions in this review
    specification require the matching server build. Dynamic rendering also
    requires operator configuration.
servers:
  - url: https://dockiln.io
    description: DocKiln hosted API
security: []
paths:
  /v1/templates:
    get:
      summary: List workspace templates
      responses:
        '200':
          description: List workspace templates
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Template'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
        default:
          description: Validation, authorization, quota or service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
      security:
        - bearer: []
        - session: []
components:
  schemas:
    Template:
      type: object
      properties:
        id:
          type: string
          format: uuid
        draft:
          $ref: '#/components/schemas/StoredDefinition'
        published:
          type:
            - integer
            - 'null'
        updated:
          type: integer
        slug:
          type:
            - string
            - 'null'
    Problem:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    StoredDefinition:
      oneOf:
        - $ref: '#/components/schemas/HtmlDefinition'
        - $ref: '#/components/schemas/Definition'
    HtmlDefinition:
      type: object
      properties:
        kind:
          type: string
          enum:
            - html
        title:
          type: string
          maxLength: 100
        html:
          type: string
          maxLength: 100000
        sample:
          type: object
        page:
          $ref: '#/components/schemas/Page'
        slug:
          type: string
          maxLength: 63
      required:
        - kind
        - title
        - html
        - sample
    Definition:
      type: object
      properties:
        title:
          type: string
        subtitle:
          type: string
        person:
          type: string
        footer:
          type: string
        accent:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
        columns:
          type: array
          items:
            type: string
        fields:
          type: array
          items:
            type: string
        rows:
          type: string
        sample:
          type: object
          additionalProperties: true
        page:
          $ref: '#/components/schemas/Page'
        slug:
          type: string
          maxLength: 63
      required:
        - title
        - subtitle
        - person
        - footer
        - accent
        - columns
        - fields
        - rows
        - sample
        - page
    Page:
      type: object
      properties:
        format:
          type: string
          enum:
            - A4
            - Letter
            - Legal
            - Label
        margin:
          type: integer
          minimum: 8
          maximum: 35
        landscape:
          type: boolean
        header:
          type: string
        footer:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
    session:
      type: apiKey
      in: cookie
      name: dockiln

````

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