Get Task (v1)
Method + Path
GET /v1/workspace/staff/:staffId/tasks/:taskId
Actual backend path: /v1/workspace/staff/:staffId/tasks/:taskId
Description
Get a single task by ID for a specific staff member.
Authentication
Required - JWT token in Authorization header
Required Permissions:
staff.viewor task-related permissions
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
staffId | string | Yes | Staff member identifier |
taskId | string | Yes | Task identifier |
Response (200)
{
"task": {
"id": "507f1f77bcf86cd799439011",
"assigneeId": "507f1f77bcf86cd799439012",
"title": "Complete project documentation",
"description": "Write comprehensive documentation for the project",
"status": "in-progress",
"priority": "high",
"dueAt": "2024-01-20T10:00:00Z",
"blockers": [],
"comments": [],
"attachments": [],
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T11:00:00Z"
}
}
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Task or staff member not found
- 500 Internal Server Error: Server error