---
title: "Get Tasks Definition"
method: GET
path: "/orders/tasks-definitions/{task_definition_id}"
tags: ["Orders"]
---

# Get Tasks Definition

`GET /orders/tasks-definitions/{task_definition_id}`

## Request

- Base URL: `https://v3.api.hypertrack.com`
- URL: `https://v3.api.hypertrack.com/orders/tasks-definitions/{task_definition_id}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/hypertrack/apis/hypertrack-api/docs/orders/tasks-definitions/:task_definition_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the details of a specific task definition for an order. This endpoint is used to view the structure and requirements of tasks that can be created for orders.

## Path parameters

- `task_definition_id` string, required

## Response `200`

Successful response

- TasksDefinitionResponse
  - `label` string, required: Name of the task definition.
  - `ops_group_handle` string, nullable: Ops group associated with this definition
  - `tasks` BaseOrderTask[], required: List of tasks part of this definition.
    - `label` string, required: Type of task to be created for the order.
    - `task_definition_id` string, nullable: Id of the tasks definition from which this task is picked
    - `description` string, nullable: Description of the task type.
    - `metadata` object, nullable: Additional metadata for the task.
    - `priority` 'none' | 'low' | 'medium' | 'high' | 'null', nullable: Priority of the task. Valid values are none, low, medium, high.
  - `metadata` object, nullable: Additional metadata for this definition.
  - `task_definition_id` string, required: Unique identifier for the task definition.
  - `created_at` string, required: Timestamp when the task definition was created.
  - `updated_at` string, nullable: Timestamp when the task definition was last updated.

## Other responses

- `401`: Authentication error
- `404`: Not found

---

[API](https://skmtc.dev/hypertrack/apis/hypertrack-api.md) - [All operations](https://skmtc.dev/hypertrack/apis/hypertrack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hypertrack/apis/hypertrack-api/revisions/389326c4c9c8?raw)
