---
title: "GET /api/templates/"
method: GET
path: "/api/templates/"
tags: ["Templates"]
---

# GET /api/templates/

`GET /api/templates/`

Lists all the template categories and the related templates that are in that category. The template's `workspace_id` can be used for previewing purposes because that workspace contains the applications that are in the template. All the `get` and `list` endpoints related to that workspace are publicly accessible.

## Response `200`

- TemplateCategories[]
  - `id` integer, required
  - `name` string, required
  - `templates` Template[], required
    - `id` integer, required
    - `name` string, required
    - `slug` string, required — The template slug that is used to match the template with the JSON file name.
    - `icon` string, required — The icon class name that can be used for displaying purposes.
    - `keywords` string — Keywords related to the template that can be used for search.
    - `workspace_id` integer, nullable, required — The group containing the applications related to the template. The read endpoints related to that group are publicly accessible for preview purposes.
    - `is_default` string, required — Indicates if the template must be selected by default. The web-frontend automatically selects the first `is_default` template that it can find.
    - `open_application` integer, nullable — The application ID that must be opened when the template is previewed. If null, then the first will automatically be chosen.

---

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