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

# List Templates

> Returns all available OS templates at a given location, identified by slug. Use the template `slug` when creating or reinstalling a server. Templates are deduplicated across nodes — you don't need to know which node will be selected.



## OpenAPI

````yaml GET /locations/{location_id}/templates
openapi: 3.0.3
info:
  title: CloudBlast API
  description: >-
    The CloudBlast V2 API provides a modern RESTful interface for managing your
    cloud infrastructure programmatically. All responses follow a consistent `{
    "data": ... }` or `{ "error": ... }` format.
  version: 2.0.0
servers:
  - url: https://console.cloudblast.io/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /locations/{location_id}/templates:
    get:
      tags:
        - Locations
      summary: List templates for a location
      description: >-
        Returns all available OS templates at a given location, identified by
        slug. Use the template `slug` when creating or reinstalling a server.
        Templates are deduplicated across nodes — you don't need to know which
        node will be selected.
      operationId: listLocationTemplates
      parameters:
        - name: location_id
          in: path
          required: true
          schema:
            type: integer
          description: Location ID
      responses:
        '200':
          description: Template list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Template'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Template:
      type: object
      properties:
        slug:
          type: string
          description: Unique template identifier used in API requests
          example: ubuntu-24.04
        name:
          type: string
          description: Display name
          example: Ubuntu 24.04 LTS
        group_name:
          type: string
          description: Template category
          example: Ubuntu
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
  responses:
    Unauthenticated:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: >-
                Missing or invalid Authorization header. Use: Authorization:
                Bearer <token>
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Server not found.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from your CloudBlast account settings. Pass as `Authorization:
        Bearer <token>`.

````