Skip to content

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

ScopeAllows
classes:readListing classes
bookings:readListing bookings
bookings:writeCreating and cancelling bookings
members:readListing members
members:writeCreating members
memberships:readListing memberships
instructors:readListing instructors

Endpoints

MethodPathWhat it does
GET/api/v1/classesUpcoming classes, with places left
GET/api/v1/bookingsBookings, by member, class or status
POST/api/v1/bookingsBooks a member into a class
DELETE/api/v1/bookings?bookingId=…Cancels a booking
GET/api/v1/membersMembers, optionally by email
POST/api/v1/membersCreates a member
GET/api/v1/membershipsMemberships
GET/api/v1/instructorsInstructors

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.