List Tasks (v1)
Method + Path
GET /v1/workspace/staff/:staffId/tasks
Actual backend path: /v1/workspace/staff/:staffId/tasks
Description
Get a list of all tasks for a specific staff member, optionally filtered by scope.
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 |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
scope | string | No | Filter tasks by scope. Valid values: all, today, upcoming, overdue. Default: all |
Response (200)
{
"tasks": [
{
"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": [],
"createdAt": "2024-01-15T10:00:00Z"
}
]
}
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Staff member not found
- 500 Internal Server Error: Server error