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

# Get template presets

> Returns the available presets for a template, including their default values.



## OpenAPI

````yaml api/openapi.json GET /v1/templates/{code}/presets
openapi: 3.1.0
info:
  title: Connections Hub API
  version: 1.0.0
  description: >-
    Run HSS Connections Hub calculators programmatically: create projects,
    create and solve sheets from any calculator template, run batches, and
    export reports to PDF.


    All endpoints require API key authentication.
servers:
  - url: https://api.calcs.com
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: >-
      Create and manage calculation projects. Each user can have multiple
      projects to organize their calculations.
  - name: Sheets
    description: >-
      Manage individual calculation sheets — read one back, update its inputs,
      solve or re-solve it, and delete single sheets or clean up many at once.
  - name: Templates
    description: >-
      Run calculations using any enabled template. Supports all calculator types
      without requiring endpoint-specific code.
paths:
  /v1/templates/{code}/presets:
    get:
      tags:
        - Templates
      summary: Get template presets
      description: >-
        Returns the available presets for a template, including their default
        values.
      operationId: template-presets
      parameters:
        - name: Authorization
          in: header
          required: true
          example: Bearer YOUR_KEY_HERE
          schema:
            type: string
          description: >-
            The `Authorization` header is used to authenticate with the API
            using your API key. Value is of the format `Bearer YOUR_KEY_HERE`.
        - name: code
          in: path
          required: true
          schema:
            type: string
          description: >-
            Template code, as returned by `GET /v1/templates` (e.g.
            `steelConnectionHssBeamToHssMomentAISC360-22`).
      responses:
        '200':
          description: Template presets
          content:
            application/json:
              schema:
                type: object
                properties:
                  presets:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Preset code used in calculate requests
                        name:
                          type: string
                          description: Human-readable preset name
                        values:
                          type: object
                          description: >-
                            Default attribute values applied by this preset. For
                            `enum` fields the values are option labels; values
                            matching no option are returned as-is. A preset may
                            also carry a value for a widget the template hides,
                            which is decoded here for readability but is not
                            settable and does not appear in a sheet read or in
                            `fields[]` — so not every key here is one you can
                            send back.
                          additionalProperties: true
        '404':
          description: The template does not exist, or is not accessible with this API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                not_found:
                  summary: >-
                    Template does not exist, or is not accessible with this API
                    key
                  value:
                    error:
                      code: NOT_FOUND
                      message: Template not found.
        '500':
          description: Failed to get template presets
      security:
        - api_key: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: >-
        Standard error envelope for handler errors. `code` is a stable
        machine-readable error code (e.g. NOT_FOUND, UPSTREAM_ERROR); `message`
        is human-readable and may change.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code.
            message:
              type: string
              description: Human-readable error message.
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your API key as a bearer token: `Authorization: Bearer
        YOUR_API_KEY`. Every endpoint requires one.
    api_key:
      type: http
      scheme: bearer

````

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