Skip to main content

List Staff Fields (v1)

Method + Path

GET /v1/workspace/:workspaceId/staff/fields

Actual backend path: /v1/workspace/:workspaceId/staff/fields

Description

Get a list of all custom field definitions for staff members in a workspace.

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

Query Parameters

ParameterTypeRequiredDescription
includeArchivedstringNoInclude archived fields. Valid values: true, false. Default: false

Response (200)

{
"fields": [
{
"id": "507f1f77bcf86cd799439011",
"key": "department",
"label": "Department",
"description": "Staff department",
"type": "text",
"isRequired": false,
"isUnique": false,
"isFilterable": true,
"order": 1,
"createdAt": "2024-01-15T10:00:00Z"
}
]
}

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