List Session Fields (v1)
Method + Path
GET /v1/workspace/:workspaceId/sessions/fields
Actual backend path: /v1/workspace/:workspaceId/sessions/fields
Description
Get all custom field definitions for sessions, optionally filtered by phase.
Authentication
Required - JWT token in Authorization header
Required Permissions:
sessions.vieworsessions.update
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
phase | string | No | Filter by phase. Valid values: pre, during, post |
includeArchived | string | No | Include archived fields. Valid values: true, false. Default: false |
Response (200)
{
"fields": [
{
"id": "507f1f77bcf86cd799439011",
"key": "pre-session-notes",
"label": "Pre-Session Notes",
"phase": "pre",
"type": "text",
"isRequired": false,
"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