Public API
Read classes and members, and create bookings.
1 min read
Ritempo's public API lets your own systems read classes, members and memberships, and create bookings and members.
Authentication
Create an API key in Settings → Developer, and choose its scopes. Send it as a bearer token with every request:
curl https://app.ritempo.com/api/v1/classes \
-H "Authorization: Bearer ak_your_key"
Keys start with ak_. Keep them secret, give each key only the scopes it needs, and revoke a key from Settings if it's ever exposed.
Scopes
| Scope | Allows |
|---|---|
classes:read | Listing classes |
bookings:read | Listing bookings |
bookings:write | Creating and cancelling bookings |
members:read | Listing members |
members:write | Creating members |
memberships:read | Listing memberships |
instructors:read | Listing instructors |
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/classes | Upcoming classes, with places left |
| GET | /api/v1/bookings | Bookings, by member, class or status |
| POST | /api/v1/bookings | Books a member into a class |
| DELETE | /api/v1/bookings?bookingId=… | Cancels a booking |
| GET | /api/v1/members | Members, optionally by email |
| POST | /api/v1/members | Creates a member |
| GET | /api/v1/memberships | Memberships |
| GET | /api/v1/instructors | Instructors |
Listing classes
GET /api/v1/classes returns the next 14 days by default. Use days (up to 90), serviceTypeId and instructorId to narrow it.
{
"data": [
{
"id": "tz4a98xxat96iws9zmbrgj3a",
"title": "Reformer Flow",
"startTime": "2026-10-24T17:30:00.000Z",
"endTime": "2026-10-24T18:20:00.000Z",
"capacity": 12,
"bookedCount": 9,
"availableSpots": 3,
"status": "SCHEDULED"
}
],
"count": 1,
"nextCursor": "tz4a98xxat96iws9zmbrgj3a"
}
Creating a booking
curl -X POST https://app.ritempo.com/api/v1/bookings \
-H "Authorization: Bearer ak_your_key" \
-H "Content-Type: application/json" \
-d '{ "classId": "tz4a98xxat96iws9zmbrgj3a", "clientId": "pfh0haxfpzowht3oi213cqos" }'
Pagination
List endpoints return up to 50 items, or as many as limit asks for, up to 200. When there are more, the response includes nextCursor: pass it back as cursor for the next page.
Errors and limits
Errors return a JSON body with an error message and the matching HTTP status. Each key can make 120 read requests and 30 write requests a minute; past that, requests return status 429 until the minute is up.