---
title: "Retrieves a template from the database based on the provided template 'id'"
method: GET
path: "/template/{id}"
tags: ["Template"]
---

# Retrieves a template from the database based on the provided template 'id'

`GET /template/{id}`

## Path parameters

- `id` string, required

## Query parameters

- `metadataOnly` boolean

## Response `200`

Template has been retrieved successfully

- TemplateResource
  - `templateId` string
  - `name` string
  - `description` string
  - `version` string
  - `link` string
  - `connection` CtionTemplateResource
    - `nodeId` integer
    - `connectionId` integer
    - `title` string
    - `description` string
    - `fromConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `toConnector` CtorTemplateResource
      - `nodeId` integer
      - `connectorId` integer
      - `title` string
      - `invoker` InvokerTemplateResource
        - `name` string
      - `methods` object
      - `operators` object
    - `fieldBinding` object
    - `ui` object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/revisions/82ed767ffb65/schema)
