API ReferenceSessions
List Sessions
Paginated list of sessions with optional status and date filters.
GET /api/sessionsReturns a paginated list of sessions for the workspace. Results are ordered by scheduledStartAt descending (most recent first).
Headers
Prop
Type
Query Parameters
Prop
Type
curl "https://api.rankgun.works/api/sessions?status=scheduled&limit=50" \
-H "x-api-key: YOUR_API_KEY"Response
200 OK
{
"success": true,
"sessions": [
{
"id": "k7...",
"title": "Saturday Training",
"sessionTypeId": "j5...",
"sessionTypeName": "Training",
"status": "scheduled",
"scheduledStartAt": 1712345678,
"scheduledEndAt": 1712349278,
"actualStartAt": null,
"actualEndAt": null,
"createdByRobloxId": 123456,
"createdByUsername": "Builderman",
"cancelledAt": null,
"cancellationReason": null,
"createdAt": 1712000000,
"updatedAt": 1712000000
}
],
"nextCursor": "eyJpZCI6..."
}All timestamp fields are seconds since epoch (Unix time). See the Timestamps section.
Pagination
- If
nextCursoris non-null, pass it back as thecursorquery param to fetch the next page. nextCursorisnullwhen there are no more results.
Session Summary Fields
Prop
Type
Errors
| Status | Meaning |
|---|---|
400 | Invalid query parameters (bad status, negative limit, from > to). |
401 | Missing API key. |
403 | Invalid API key. |
500 | Internal server error. |
Was this page helpful?