Get Task by ID
Method: GET
/api/v1/tasks/{id}
Description
This endpoint retrieves the details of a specific task by its unique ID.
🔑 Authentication
This endpoint requires authentication via headers.
| Param | Value | Type |
|---|---|---|
countryCode | {{countryCode}} | string (optional) |
userId | {{userId}} | string |
tenantId | {{tenantId}} | string |
Path Parameter
| Name | Type | Description |
|---|---|---|
id | string | The unique ID of the task. |
Response: 200 OK
A successful response returns the details of the task.
Example Response:
{
"taskId": "12345",
"name": "Prepare Monthly Report",
"description": "Complete the monthly financial report by the end of the week.",
"status": "IN_PROGRESS",
"assignedTo": "John Doe",
"dueDate": "2025-02-15T17:00:00.000Z",
"priority": "HIGH",
"createdAt": "2025-02-01T09:30:00.000Z",
"updatedAt": "2025-02-10T12:00:00.000Z"
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/tasks/{id} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!