RankGun logoRankGun

List Session Types

List all active session types for the workspace.

GET /api/sessions/types

Returns 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

StatusMeaning
401Missing API key.
403Invalid API key.
500Internal server error.
Was this page helpful?

On this page