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

# List sandbox templates

> Saved sandbox definitions. Start a sandbox from one by sending its id as `template` to `POST /sandboxes`.



## OpenAPI

````yaml https://api.twinbay.ai/openapi.json get /sandbox-templates
openapi: 3.1.0
info:
  title: Twinbay
  description: Backend API
  version: 0.1.0
servers:
  - url: https://api.twinbay.ai
    description: Production
security: []
tags:
  - name: healthchecks
    description: Healthcheck endpoints
  - name: users
    description: >-
      The current user. Sign-up and sign-in happen in WorkOS AuthKit, which
      issues the access tokens this API accepts.
  - name: organizations
    description: >-
      Organizations the caller belongs to. Every authenticated request acts
      inside exactly one organization — the one its access token names — so
      these routes address it as `current`.
  - name: api-keys
    description: >-
      Long-lived credentials for callers that cannot hold an AuthKit session —
      agents, SDKs, CI. A key is accepted wherever an access token is, and acts
      with the role its creator holds when the request arrives.
  - name: sandboxes
    description: >-
      Create and edit isolated provider sandboxes. Each sandbox contains
      behavioural twins from the `twins` package.
  - name: twins
    description: Browse the digital twins available for new sandboxes.
paths:
  /sandbox-templates:
    get:
      tags:
        - sandboxes
      summary: List sandbox templates
      description: >-
        Saved sandbox definitions. Start a sandbox from one by sending its id as
        `template` to `POST /sandboxes`.
      operationId: list_sandbox_templates
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SandboxTemplateResponse'
                type: array
                title: Response List Sandbox Templates
        '401':
          description: The credential is missing, malformed, expired, or not trusted
        '403':
          description: The credential does not act inside an organization
      security:
        - Access token: []
        - Organization API key: []
components:
  schemas:
    SandboxTemplateResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        twins:
          items:
            $ref: '#/components/schemas/SandboxTemplateTwinResponse'
          type: array
          title: Twins
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - name
        - twins
        - created_at
      title: SandboxTemplateResponse
    SandboxTemplateTwinResponse:
      properties:
        twin:
          type: string
          title: Twin
        scenario_template:
          anyOf:
            - type: string
            - type: 'null'
          title: Scenario Template
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
      type: object
      required:
        - twin
      title: SandboxTemplateTwinResponse
      description: A slot a template asks for, named as a create request names it.
  securitySchemes:
    Access token:
      type: http
      description: Access token issued by WorkOS AuthKit.
      scheme: bearer
    Organization API key:
      type: apiKey
      description: >-
        An organization API key, as minted by POST
        /organizations/current/api-keys.
      in: header
      name: X-API-Key

````