Skip to main content

Get Session by Token (v1)

Method + Path

GET /v1/public/evaluation/:token

Actual backend path: /v1/public/evaluation/:token

Description

Get session data using an evaluation token. This endpoint allows clients to access session information for evaluation purposes without authentication.

Authentication

Not required - This is a public endpoint (token-based access)

Headers

HeaderTypeRequiredDescription
Content-TypestringYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
tokenstringYesEvaluation token (provided by staff after session)

Response (200)

{
"session": {
"id": "507f1f77bcf86cd799439011",
"name": "Consultation Session",
"clientId": "507f1f77bcf86cd799439012",
"scheduledAt": "2024-01-20T10:00:00Z",
"status": "completed",
"evaluationFields": [
{
"id": "507f1f77bcf86cd799439013",
"key": "satisfaction-rating",
"label": "Satisfaction Rating",
"type": "number"
}
]
}
}

Common Errors

  • 400 Bad Request: Invalid token
  • 404 Not Found: Session not found or token invalid
  • 500 Internal Server Error: Server error