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

# List templates

> The templates your organization can lease, and the pools that run them.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/templates
openapi: 3.1.0
info:
  title: envlink API
  version: 1.0.0
  description: >-
    Lease build environments, wire them to your sandbox, and keep snapshots and
    artifacts.
servers:
  - url: https://envlink-api.projectinwork.com
security:
  - bearerAuth: []
tags:
  - name: Environments
  - name: Templates
  - name: Sandboxes
  - name: Snapshots
  - name: Artifacts
  - name: Projects
  - name: Tokens
  - name: Usage
  - name: Account
paths:
  /v1/templates:
    get:
      tags:
        - Templates
      summary: List templates
      description: The templates your organization can lease, and the pools that run them.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  templates:
                    type: array
                    items:
                      $ref: '#/components/schemas/Template'
                  pools:
                    type: array
                    items:
                      type: string
components:
  schemas:
    Template:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        command:
          type: array
          items:
            type: string
        env:
          type: object
          additionalProperties:
            type: string
        workdir:
          type: string
        exports:
          type: object
          additionalProperties:
            type: string
        shares:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              path:
                type: string
              direction:
                type: string
                enum:
                  - in
                  - out
              exclude:
                type: array
                items:
                  type: string
        writable:
          type: array
          items:
            type: string
        resources:
          type: object
          properties:
            cpus:
              type: number
            memory:
              type: string
              examples:
                - 768m
            pids:
              type: integer
        runtime:
          type: string
          examples:
            - runsc
        restart:
          type: string
        timeouts:
          type: object
          properties:
            idle:
              type: string
            hard:
              type: string
        warm:
          type: integer
        platforms:
          type: array
          items:
            type: string
        buildCache:
          type: boolean
          description: Whether it serves a Bazel cache on localhost:9092.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A CLI token or an organization API key.

````

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