Retrieves the details of a specific task by its identifier. A task represents an action or activity configured within a stage of a flow.
The response includes task metadata such as name, status, action type, SLA configuration, responsibility type, start trigger, and visual settings (icon and color).
curl --location --request GET 'https://api-develop.enspace.io/c-stage-tasks/2?__relations=user,stage' \
--header 'x-api-key: <api-key>' \
--header 'en-workspace: <api-key>'{
"id": 2,
"name": "Tarefa Grupo",
"status": "active",
"sla": 1,
"stage": {
"id": 1,
"name": "etp",
"status": "active",
"item_type": 2,
"progress_type": "waiting",
"flow": 1,
"is_start": true,
"hex_color": "f39c12",
"icon": "carbon:scales",
"user": 2,
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
},
"responsibility_type": "module_groups",
"sla_type": "days",
"sla_origin": "task_created",
"start_type": "stage_enter",
"hex_color": "487eb0",
"icon": "carbon:scales",
"notification_task": true,
"user": {
"id": 0,
"created_at": "string",
"email": "string",
"meta": {
"fname": "string",
"lname": "string"
}
}
}