API ReferenceSessions
List Session Types
List all active session types for the workspace.
GET /api/sessions/typesReturns all active session types (training, tryout, meeting, etc.) for the workspace. Use this to populate dropdowns or resolve a human-friendly name to a sessionTypeId for creating sessions.
Headers
Prop
Type
Request
No body or query parameters.
curl https://api.rankgun.works/api/sessions/types \
-H "x-api-key: YOUR_API_KEY"Response
200 OK
{
"success": true,
"types": [
{
"id": "j5abc...",
"name": "Training",
"description": "Weekly group training",
"color": "#8b5cf6",
"defaultDurationMinutes": 60,
"isActive": true
}
]
}Session Type Fields
Prop
Type
Errors
| Status | Meaning |
|---|---|
401 | Missing API key. |
403 | Invalid API key. |
500 | Internal server error. |
Was this page helpful?