---
title: "Get template counts by type"
method: GET
path: "/api/admin/task-templates/counts"
tags: ["Admin - Task Templates"]
---

# Get template counts by type

`GET /api/admin/task-templates/counts`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/admin/task-templates/counts`
- Auth: none declared

Get the count of non-archived parent templates for each template type. Admin only.

## Response `200`

Template counts by type

- object
  - `success` boolean
  - `data` object
    - `base` integer
    - `group_coaching` integer
    - `one_on_one` integer
    - `workshop` integer

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
