Skip to main content

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.view or staff.update

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

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