---
title: "Retrieve task details"
method: GET
path: "/api/v2/tasks/{taskId}"
tags: ["Trainer Task"]
---

# Retrieve task details

`GET /api/v2/tasks/{taskId}`

This endpoint returns the details of a specific trainer task.

## Path parameters

- `taskId` integer, required

## Response `200`

Ok

- TaskDTO
  - `id` string — The ID of the task
  - `name` string, required — Task name
  - `type` 'GENERAL' | 'ANAMNESIS' | 'COORDINATION_FITNESS_TEST' | 'HEALTH_FITNESS_TEST' | 'PWC_FITNESS_TEST' | 'MAX_FORCE_FITNESS_TEST' | 'MOBILITY_SCREEN_FITNESS_TEST' | 'BLOOD_PRESSURE_FITNESS_TEST' | 'POLAR_FITNESS_TEST' | 'INBODY_FITNESS_TEST' | 'JAWON_FITNESS_TEST' — Task type
  - `dueDate` string, date, required — Task completion deadline date. format: yyyy-MM-dd
  - `authorId` string, required — The author of the task. EGYM account ID
  - `targetId` string, required — The account of task related to. EGYM account ID
  - `completerId` string — The account who solved the task. EGYM account ID
  - `completed` boolean — If this task has been completed in the gym this will be true, false otherwise.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/egym/apis/mms-api-v2.md) · [All operations](https://skmtc.net/egym/apis/mms-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/egym/mms-api-v2/versions/07d571d34bd8/schema)
