---
title: "Get all task templates"
method: GET
path: "/api/admin/task-templates"
tags: ["Admin - Task Templates"]
---

# Get all task templates

`GET /api/admin/task-templates`

## Request

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

Retrieve all task templates with optional filtering. Admin only.

## Query parameters

- `cohort_type` string
- `phase` 'cohort_setup' | 'cohort_prep' | 'live_delivery' | 'wrap_renewal'
- `template_type` 'base' | 'group_coaching' | 'one_on_one' | 'workshop'
- `parent_only` boolean
- `is_active` boolean

## Response `200`

List of task templates

- TaskTemplateWithDetails[]
  - `id` string, uuid
  - `cohort_type` string
  - `template_type` 'base' | 'group_coaching' | 'one_on_one' | 'workshop': Determines which cohorts this template applies to
  - `phase` 'cohort_setup' | 'cohort_prep' | 'live_delivery' | 'wrap_renewal', nullable
  - `sub_group` string, nullable: Sub-grouping within a phase (e.g., "Partner Alignment", "Sessions (1st Half)")
  - `milestone_name` string
  - `task_group_name` string
  - `task_title` string: Task title. Can include {session_number} placeholder for session-specific tasks
  - `task_description` string, nullable
  - `job_title_id` string, uuid, nullable
  - `parent_template_id` string, uuid, nullable: Reference to parent template for subtask templates
  - `anchor_type` 'cohort_start' | 'cohort_end' | 'orientation' | 'coach_kickoff' | 'session' | 'final_session' | 'midpoint' | 'endpoint'
  - `anchor_session_number` integer, nullable
  - `days_offset` integer: Days offset from anchor (negative = before, positive = after)
  - `default_priority` 'low' | 'medium' | 'high' | 'urgent'
  - `milestone_order` integer
  - `task_group_order` integer
  - `task_order` integer
  - `is_required` boolean
  - `is_active` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `job_title_name` string, nullable
  - `parent_task_title` string, nullable: Title of parent template if this is a subtask template

## 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)
