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

# List template versions

> List every published version of one template.

Lists all published versions of a single template, so you can show a version history or resolve the latest.

## Path parameters

<ParamField path="namespace" type="string" required>
  Template namespace.
</ParamField>

<ParamField path="name" type="string" required>
  Template name.
</ParamField>

## Response

<ResponseField name="versions" type="array">
  Array of template list items, one per published version. Each has `ref`, `digest`, `published`, and the full `template` document.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.orgo.ai/api/templates/default/claude-code \
    -H "Authorization: Bearer $ORGO_API_KEY"
  ```

  ```python Python theme={null}
  import os, requests

  r = requests.get(
      "https://www.orgo.ai/api/templates/default/claude-code",
      headers={"Authorization": f"Bearer {os.environ['ORGO_API_KEY']}"},
  )
  versions = [v["ref"] for v in r.json()["versions"]]
  print(versions)
  ```

  ```javascript JavaScript theme={null}
  const r = await fetch(
    "https://www.orgo.ai/api/templates/default/claude-code",
    { headers: { Authorization: `Bearer ${process.env.ORGO_API_KEY}` } },
  );
  const { versions } = await r.json();
  console.log(versions.map((v) => v.ref));
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "versions": [
    {
      "ref": "default/claude-code@1.0.0",
      "digest": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
      "published": "2026-06-08T17:00:00Z"
    }
  ]
}
```


## OpenAPI

````yaml GET /templates/{namespace}/{name}
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /templates/{namespace}/{name}:
    get:
      tags:
        - Templates
      summary: List template versions
      description: Lists every published version of one template you own.
      operationId: listTemplateVersions
      parameters:
        - name: namespace
          in: path
          required: true
          description: Template namespace.
          schema:
            type: string
        - name: name
          in: path
          required: true
          description: Template name.
          schema:
            type: string
      responses:
        '200':
          description: Versions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateVersionsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    TemplateVersionsResponse:
      type: object
      properties:
        versions:
          type: array
          items:
            $ref: '#/components/schemas/TemplateListItem'
    TemplateListItem:
      type: object
      properties:
        ref:
          type: string
          description: Template ref, `namespace/name@version`.
          example: default/claude-code@1.0.0
        digest:
          type: string
          description: >-
            Content-addressed SHA-256 digest of the canonical template. Two
            semantically identical templates always share a digest.
        published:
          type: string
          format: date-time
        template:
          $ref: '#/components/schemas/Template'
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
    Template:
      type: object
      description: >-
        An orgo.ai/v1 template document. Only `api_version` and `template` are
        required. See the full JSON Schema at GET /template-schema, or the
        schema guide at https://docs.orgo.ai/guides/templates/schema.
      required:
        - api_version
        - template
      additionalProperties: true
      properties:
        api_version:
          type: string
          enum:
            - orgo.ai/v1
        template:
          type: object
          required:
            - name
            - version
          properties:
            name:
              type: string
              description: Lowercase kebab-case, 1-64 chars.
              example: claude-code
            version:
              type: string
              description: Semver, immutable once published.
              example: 1.0.0
            description:
              type: string
        hardware:
          type: object
        secrets:
          type: array
          items:
            type: object
        vars:
          type: object
        env:
          type: object
        build:
          type: object
        files:
          type: array
        apps:
          type: array
        triggers:
          type: array
        terminal:
          type: array
        hooks:
          type: object
        telemetry:
          type: object
        egress_policy:
          type: object
        streaming:
          type: array
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````