> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-stylep-1769453500-e329333.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List all SandboxTemplates

> List all SandboxTemplates in the tenant's sandbox namespace.

This endpoint queries the database for fast performance.



## OpenAPI

````yaml https://api.host.langchain.com/openapi.json get /v2/sandboxes/templates
openapi: 3.1.0
info:
  title: LangSmith Deployment Control Plane API
  description: >
    The LangSmith Deployment Control Plane API is used to programmatically
    create and manage

    Agent Server deployments. For example, the APIs can be orchestrated to

    create custom CI/CD workflows.


    ## Host

    https://api.host.langchain.com


    ## Authentication

    To authenticate with the LangSmith Deployment Control Plane API, set the
    `X-Api-Key` header

    to a valid [LangSmith API
    key](https://docs.langchain.com/langsmith/create-account-api-key#create-an-api-key).


    ## Versioning

    Each endpoint path is prefixed with a version (e.g. `v1`, `v2`).


    ## Quick Start

    1. Call `POST /v2/deployments` to create a new Deployment. The response body
    contains the Deployment ID (`id`) and the ID of the latest (and first)
    revision (`latest_revision_id`).

    1. Call `GET /v2/deployments/{deployment_id}` to retrieve the Deployment.
    Set `deployment_id` in the URL to the value of Deployment ID (`id`).

    1. Poll for revision `status` until `status` is `DEPLOYED` by calling `GET
    /v2/deployments/{deployment_id}/revisions/{latest_revision_id}`.

    1. Call `PATCH /v2/deployments/{deployment_id}` to update the deployment.
  version: 0.1.0
servers: []
security: []
paths:
  /v2/sandboxes/templates:
    get:
      tags:
        - Sandboxes (v2)
      summary: List all SandboxTemplates
      description: |-
        List all SandboxTemplates in the tenant's sandbox namespace.

        This endpoint queries the database for fast performance.
      operationId: list_templates_v2_sandboxes_templates_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxTemplateListResponse'
      security:
        - API Key: []
        - Tenant ID: []
        - Bearer Auth: []
components:
  schemas:
    SandboxTemplateListResponse:
      properties:
        templates:
          items:
            $ref: '#/components/schemas/SandboxTemplateResponse'
          type: array
          title: Templates
      type: object
      required:
        - templates
      title: SandboxTemplateListResponse
      description: Response model for listing SandboxTemplates.
    SandboxTemplateResponse:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
          description: Unique template identifier
        name:
          type: string
          title: Name
        image:
          type: string
          title: Image
        resources:
          anyOf:
            - $ref: >-
                #/components/schemas/host__api__v2__schemas__sandboxes__ResourceSpec
            - additionalProperties: true
              type: object
          title: Resources
          description: Resource limits for sandboxes created from this template
        volume_mounts:
          anyOf:
            - items:
                $ref: '#/components/schemas/VolumeMountSpec'
              type: array
            - items:
                additionalProperties:
                  type: string
                type: object
              type: array
          title: Volume Mounts
          description: Volumes mounted in sandboxes created from this template
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - name
        - image
        - resources
      title: SandboxTemplateResponse
      description: Response model for a SandboxTemplate.
    host__api__v2__schemas__sandboxes__ResourceSpec:
      properties:
        cpu:
          type: string
          title: Cpu
          description: CPU limit (e.g., '500m', '1', '2')
          default: 500m
          examples:
            - 500m
            - '1'
            - '2'
        memory:
          type: string
          title: Memory
          description: Memory limit (e.g., '256Mi', '1Gi')
          default: 512Mi
          examples:
            - 256Mi
            - 512Mi
            - 1Gi
        storage:
          anyOf:
            - type: string
            - type: 'null'
          title: Storage
          description: Ephemeral storage limit (e.g., '1Gi'). Optional.
          examples:
            - 1Gi
            - 5Gi
      type: object
      title: ResourceSpec
      description: Resource specification for a sandbox.
    VolumeMountSpec:
      properties:
        volume_name:
          type: string
          title: Volume Name
          description: Name of the volume to mount (must match an existing volume name)
        mount_path:
          type: string
          title: Mount Path
          description: Path where the volume should be mounted in the container
          examples:
            - /data
            - /mnt/storage
            - /home/user/data
      type: object
      required:
        - volume_name
        - mount_path
      title: VolumeMountSpec
      description: Specification for mounting a volume in a sandbox template.

````