Get Staff Context (v1)
Method + Path
GET /v1/workspace/:workspaceId/staff/context
Actual backend path: /v1/workspace/:workspaceId/staff/context
Description
Get workspace context information for staff operations. This endpoint provides metadata and configuration needed for staff management.
Authentication
Required - JWT token in Authorization header
Required Permissions:
staff.vieworstaff.update
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
Response (200)
{
"workspace": {
"id": "507f1f77bcf86cd799439011",
"name": "My Workspace"
},
"permissions": [
"staff.view",
"staff.create",
"staff.update"
],
"fieldDefinitions": []
}
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Workspace not found
- 500 Internal Server Error: Server error