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

# Get template details

> Retrieve complete configuration and metadata for a specific template.
Use this to inspect template parameters before creating applications from it.



## OpenAPI

````yaml /api-reference/services_documented/fastedge_api.yaml get /fastedge/v1/template/{template_id}
openapi: 3.1.0
info:
  title: Gcore OpenAPI – FastEdge API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: '2026-05-15T06:37:28.230198+00:00'
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - description: Application templates
    name: FastEdge Templates
    x-displayName: Templates
  - description: Client-level settings and limits
    name: FastEdge Clients
    x-displayName: Clients
  - description: >-
      Apps are descriptions of edge apps, that reference the binary and may
      contain app-specific settings, such as environment variables.
    name: Apps
    x-displayName: Apps
  - description: >-
      Binaries are WebAssembly executables that are actually executed when app
      is ran.
    name: Binaries
    x-displayName: Binaries
  - description: Statistics of edge app use
    name: Stats
    x-displayName: Stats
  - description: Secret values that can be used in apps
    name: FastEdge Secrets
    x-displayName: Secrets
  - description: Key-value edge storage for apps
    name: Edge Storage
    x-displayName: Edge Storage
paths:
  /fastedge/v1/template/{template_id}:
    get:
      tags:
        - FastEdge Templates
      summary: Get template details
      description: >-
        Retrieve complete configuration and metadata for a specific template.

        Use this to inspect template parameters before creating applications
        from it.
      operationId: getTemplate
      parameters:
        - description: Unique identifier of the template to retrieve
          in: path
          name: template_id
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/template'
          description: Returns complete template configuration and metadata
        '404':
          description: Template not found
      x-codeSamples:
        - lang: Python
          source: |-
            import os
            from gcore import Gcore

            client = Gcore(
                api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
            )
            template = client.fastedge.templates.get(
                0,
            )
            print(template.binary_id)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/G-Core/gcore-go\"\n\t\"github.com/G-Core/gcore-go/option\"\n)\n\nfunc main() {\n\tclient := gcore.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\ttemplate, err := client.Fastedge.Templates.Get(context.TODO(), 0)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", template.BinaryID)\n}\n"
components:
  schemas:
    template:
      type: object
      required:
        - binary_id
        - name
        - params
        - api_type
        - owned
      properties:
        binary_id:
          type: integer
          format: int64
          description: ID of the WebAssembly binary to use for this template
          example: 12345
        name:
          type: string
          description: Unique name for the template (used for identification and searching)
          minLength: 1
          maxLength: 128
          pattern: ^[a-zA-Z0-9_ -]*$
          example: api-gateway-template
        short_descr:
          type: string
          description: Brief one-line description displayed in template listings
          maxLength: 255
          example: HTTP API gateway with authentication
        long_descr:
          type: string
          description: Detailed markdown description explaining template features and usage
          maxLength: 4096
          example: >-
            Complete API gateway solution with JWT authentication, rate
            limiting, and request transformation capabilities.
        api_type:
          readOnly: true
          type: string
          description: Wasm API type
        owned:
          type: boolean
          description: Is the template owned by user?
        params:
          type: array
          description: Parameters
          items:
            $ref: '#/components/schemas/template_param'
    template_param:
      type: object
      required:
        - name
        - data_type
        - mandatory
      properties:
        name:
          type: string
          description: >-
            Parameter name used as a placeholder in template (e.g., `API_KEY`,
            `DATABASE_URL`)
          minLength: 1
          maxLength: 64
          example: api_key
        data_type:
          type: string
          description: >-
            Parameter type determines validation and UI rendering:  

            string - text input  

            number - numeric input  

            date - date picker  

            time - time picker  

            secret - references a secret  

            store - references an edge store  

            bool - boolean toggle  

            json - JSON editor or multiline text area with JSON validation  

            enum - dropdown/select with allowed values defined via parameter
            metadata
          enum:
            - string
            - number
            - date
            - time
            - secret
            - store
            - bool
            - json
            - enum
          example: string
        mandatory:
          type: boolean
          description: >-
            If true, this parameter must be provided when instantiating the
            template
          default: false
          example: true
        descr:
          type: string
          description: Human-readable explanation of what this parameter controls
          example: API key for external service authentication
        metadata:
          type: string
          description: >-
            Optional JSON-encoded string for additional parameter metadata, such
            as allowed values for enum types
  securitySchemes:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````