Skip to main content

Summary

Fetch workspace sessions organized by date. Filter by date range and session category to find specific events.

Request

GET https://api.planetaryapp.us/v1/workspace/{workspace_id}/sessions/calendar

Query Parameters

ParameterTypeDescription
startDateISO 8601Filter by date (e.g., 2024-01-01T00:00:00Z)
endDateISO 8601Filter by date (e.g., 2024-01-01T00:00:00Z)
categorystringFilter by Session Type (lowercase)

Response example

{
  "success": true,
  "sessions": [...],
  "sessionsByDate": {
    "2023-10-19": [
      {
        "id": "session-uuid",
        "name": "Weekly Training",
        "date": "2023-10-19T14:00:00.000Z",
        "type": {
          "id": "pattern-uuid",
          "description": "Training Session",
          "category": "training",
          "gameId": 123456789,
          "slots": [...]
        },
        "host": {
          "userId": 123456789,
          "username": "host123",
          "thumbnail": "https://..."
        },
        "participants": [...],
        "status": "scheduled"
      }
    ]
  },
  "dateRange": {
    "startDate": "2023-10-19T00:00:00.000Z",
    "endDate": "2023-10-25T23:59:59.999Z"
  },
  "total": 1
}