Skip to main content

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.view or task-related permissions

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
staffIdstringYesStaff member identifier

Query Parameters

ParameterTypeRequiredDescription
scopestringNoFilter 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