---
title: "Retrieves all templates from database"
method: GET
path: "/template/all"
tags: ["Template"]
---

# Retrieves all templates from database

`GET /template/all`

## Query parameters

- `metadataOnly` boolean

## Response `200`

All templates have 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)
