Skip to main content

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

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier

Query Parameters

ParameterTypeRequiredDescription
phasestringNoFilter by phase. Valid values: pre, during, post
includeArchivedstringNoInclude 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