Get Staff (v1)
Method + Path
GET /v1/workspace/:workspaceId/staff/:staffId
Actual backend path: /v1/workspace/:workspaceId/staff/:staffId
Description
Get a single staff member by ID.
Authentication
Required - JWT token in Authorization header
Required Permissions:
staff.view
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
staffId | string | Yes | Staff member identifier |
Response (200)
{
"staff": {
"id": "507f1f77bcf86cd799439011",
"fullName": "John Doe",
"email": "john@example.com",
"permissions": ["sessions.view", "sessions.create"],
"status": "active",
"avatarUrl": "https://example.com/avatar.jpg",
"customFields": [
{
"fieldId": "field-id-123",
"fieldKey": "department",
"value": "Sales"
}
],
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T10:00:00Z"
}
}
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions (requires
staff.view) - 404 Not Found: Staff member or workspace not found
- 500 Internal Server Error: Server error