---
title: "Get all task phases"
method: GET
path: "/admin/phases"
tags: ["Task Phases"]
---

# Get all task phases

`GET /admin/phases`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/admin/phases`
- Auth: HTTP bearer

Get all task phases with template counts

## Query parameters

- `include_archived` boolean

## Response `200`

Phases retrieved successfully

- object
  - `success` boolean
  - `data` TaskPhaseWithCount[]
    - `id` string, uuid: Unique identifier
    - `name` string: Phase name
    - `slug` string: URL-friendly identifier
    - `description` string, nullable: Description of the phase
    - `sort_order` integer: Display order
    - `is_active` boolean: Whether the phase is active
    - `is_archived` boolean: Whether the phase is archived
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `template_count` integer: Number of templates in this phase

## Other responses

- `401`: Unauthorized

---

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