New2027 industry reportSee it now

Developers · Public API

Public API and Booking SDK

Build a studio's custom website with live Ollynk data: schedule with capacity, coaches, class packs, memberships, events, services, store and gift cards. Bookings, sign-in and payments run inside the Booking SDK, so your site never touches cards or passwords.

  • 12 JSON REST endpoints
  • Public token per branch, no OAuth to read
  • Booking SDK to book, buy and sign in
  • OpenAPI 3.1 spec
  • Multi-branch

Credentials

Each studio gets these three values in its Ollynk admin. The sdk_token is public: it sits in the page and only gives read access to that branch's public catalogue. Each branch has its own.

Base URL and common parameters

Every call carries the same parameters: in the query string for GET and in the JSON body for POST. Send Accept: application/json. Dates are YYYY-MM-DD in the studio's timezone (from /booking/config).

https://admin.ollynk.io/api
ParameterRequiredDescription
business_idYesBusiness (studio) UUID
branch_idYesUUID of the branch being shown
sdk_tokenYesPublic token of that branch (read-only access to the public catalogue)
langNoes or en (default es)
curl "https://admin.ollynk.io/api/schedules/weekly?business_id=<BUSINESS_ID>&branch_id=<BRANCH_ID>&sdk_token=<SDK_TOKEN>&lang=es&startDate=2026-11-18" \
  -H "Accept: application/json"

Endpoints

GET/booking/config

Studio settings: name, logo, currency, timezone and brand colour

Main fields: business_name, branch_name, logo, country, primary_color, currency{code,symbol}, timezone{name,offset}

Example response

{
  "business_name": "Ollynk Demo Fitness",
  "branch_name": "Santa Fe (CDMX)",
  "logo": "https://admin.ollynk.io/storage/logo.png",
  "language": "es",
  "country": "MX",
  "primary_color": "#000000",
  "currency": {
    "code": "MXN",
    "symbol": "$"
  },
  "timezone": {
    "name": "America/Mexico_City",
    "offset": "-06:00"
  }
}

POST/multi-branch-config

List of branches for a picker (each with its branch_id and sdk_token)

Main fields: business_id, branches[]{branch_id, name, address, logo, sdk_token}

Example response

{
  "business_id": "eac3f474-…",
  "branches": [
    {
      "branch_id": "c300e3cd-…",
      "name": "Santa Fe (CDMX)",
      "address": "…",
      "sdk_token": "sdk_…"
    }
  ]
}

GET/schedules/weekly

Class schedule with capacity, coach, room and waitlist

  • startDate (required): First day to return (YYYY-MM-DD, studio timezone)

Main fields: data[]{id, date, startTime, endTime, className, classId, roomName, coach{name}, totalSpots, availableSpots, waitlist, status}

Example response

{
  "data": [
    {
      "id": "404259",
      "date": "2026-11-18",
      "startTime": "10:20",
      "endTime": "11:10",
      "className": "Pilates Reformer",
      "classId": "2789",
      "roomName": "Sala 1",
      "coach": {
        "name": "Ana Rosales"
      },
      "totalSpots": 12,
      "availableSpots": 5,
      "showSpotCount": true,
      "waitlist": true,
      "status": "available"
    }
  ]
}

GET/instructors

Studio coaches

Main fields: data[]{id, name, nickName, bio, imageUrl, rating}

Example response

{
  "data": [
    {
      "id": "1347",
      "name": "Ana Rosales",
      "bio": null,
      "imageUrl": null,
      "rating": null
    }
  ]
}

GET/series/catalog

Class packs and offers, with price, validity and active promotion

Main fields: series[]{id, slug, name, price, classCount, unlimited, validityDays, type, applicableClassNames, isInscription, isPurchasable, promotion}

Example response

{
  "series": [
    {
      "id": "4627",
      "slug": "paquete-10-clases",
      "name": "10 clases",
      "price": 1200,
      "classCount": 10,
      "unlimited": false,
      "validityDays": 30,
      "type": "purchase",
      "isPurchasable": true,
      "promotion": {
        "active": true,
        "type": "percent",
        "value": 20,
        "end_at": "2026-11-30 23:59:00"
      }
    }
  ]
}

GET/membership

Memberships (recurring or one-time), with benefits and the branches they apply to

Main fields: availablePlans[]{id, name, price, is_subscription, interval, interval_count, unlimited_services, total_sessions, expiration_days, benefits[], promotion, branchNames}

Example response

{
  "availablePlans": [
    {
      "id": 88,
      "name": "Ilimitado mensual",
      "price": 2400,
      "is_subscription": true,
      "interval": "month",
      "interval_count": 1,
      "unlimited_services": true,
      "benefits": [
        "Clases ilimitadas"
      ]
    }
  ]
}

GET/events

Events and workshops with tickets, seats and price (paginated)

  • from_date (required): Only events from this date

Main fields: data[]{id, title, start_date, end_date, price, currency, is_free, total_seats, available_seats, visible_to_customer, timezone}, current_page, last_page, total

Example response

{
  "data": [
    {
      "id": 46,
      "title": "Bootcamp",
      "start_date": "2026-12-06T15:00:00.000000Z",
      "end_date": "2026-12-06T17:00:00.000000Z",
      "price": "100.00",
      "currency": "MXN",
      "is_free": false,
      "total_seats": 20,
      "available_seats": 12,
      "visible_to_customer": true,
      "timezone": "America/Mexico_City"
    }
  ],
  "current_page": 1,
  "last_page": 1,
  "total": 1
}

GET/services

Bookable 1-to-1 services (massage, physio, assessment…), as a list or grouped by category

Main fields: data[] | data{category: []}: {id, name, description, image, duration, price}

Example response

{
  "data": [
    {
      "id": 537,
      "name": "Masaje deportivo",
      "duration": "60",
      "price": 800
    }
  ]
}

GET/facility/products

Store products with stock

Main fields: products[]{id, name, price, image_path, category_name, track_stock, current_stock_level, allow_to_buy, variants}

Example response

{
  "products": [
    {
      "id": 3526,
      "name": "Calcetas antiderrapantes",
      "price": 200,
      "track_stock": true,
      "current_stock_level": 10,
      "allow_to_buy": true,
      "variants": []
    }
  ]
}

GET/gift-cards

Gift cards for sale

Main fields: gift_cards[]{id, slug, name, amount, image_url}

Example response

{
  "success": true,
  "gift_cards": [
    {
      "id": 165,
      "slug": "gift-card-500",
      "name": "Gift card $500",
      "amount": 500
    }
  ]
}

POST/leads

Creates a lead in the studio's CRM (contact form). Returns 422 with per-field errors when something is missing

  • name (required): Name (at least 2 characters)
  • email (required): Valid email
  • phone: 10-digit WhatsApp number
  • interest: Class of interest
  • preferred_time: Preferred time

Main fields: 201 Created · 422 {message, errors{field: [..]}}

Example response

{
  "message": "The name field is required.",
  "errors": {
    "name": [
      "The name field is required."
    ]
  }
}

GET/profile

Signed-in customer (optional, to show their name or initials)

  • Authorization (required): Header with the token of the customer signed in through the Booking SDK

Main fields: customer{first_name, last_name, email}

Example response

{
  "customer": {
    "first_name": "Ana",
    "last_name": "López",
    "email": "ana@example.com"
  }
}

Booking SDK: book, buy and sign in

Everything transactional opens the Ollynk Booking SDK: sign-in with email or phone and a code, card payment, waitlists, credits and purchase limits. Load the script and pass the same config on every call.

<script src="https://booking.ollynk.io/fitness-test/loader/booking-widget.umd.js?v=5"></script>
<script>
  const moduleUrl = "https://booking.ollynk.io/fitness-test/app/app.esm.js?v=5";
  const config = {
    businessId: "<BUSINESS_ID>",
    branchId: "<BRANCH_ID>",
    sdkToken: "<SDK_TOKEN>",
    apiUrl: "https://admin.ollynk.io/api",   // required
    locale: "en",
    onBookingComplete: (detail) => {},
    onPurchaseComplete: (detail) => {},
  };
  // Book class 404259 from the schedule
  BookingSDK.openBooking({ moduleUrl, config, scheduleId: "404259", date: "2026-11-18" });
</script>
CallUsed for
BookingSDK.openBooking({ moduleUrl, config, scheduleId, date })Book a class or join the waitlist (scheduleId = id from /schedules/weekly)
BookingSDK.openPurchase({ moduleUrl, config, kind: 'series', id })Buy a class pack (id = slug from /series/catalog)
BookingSDK.openPurchase({ moduleUrl, config, kind: 'membership', id })Buy a membership
BookingSDK.openPurchase({ moduleUrl, config, kind: 'event', id })Buy an event ticket
BookingSDK.openPurchase({ moduleUrl, config, kind: 'products', id, quantity })Buy a store product
BookingSDK.openPurchase({ moduleUrl, config, kind: 'gift-cards', id })Buy a gift card
BookingSDK.openService({ moduleUrl, config, serviceId })Book a 1-to-1 service
BookingSDK.openCoach({ moduleUrl, config, name, coachId, imageUrl, bio })Coach profile
BookingSDK.openAuth({ moduleUrl, config, onAuthed })Sign in or sign up (email or phone + code)
BookingSDK.init({ moduleUrl, container, config: { ...config, initialRoute, onLogoClick } })Full client Web App inside your site
BookingSDK.onAuthStateChange(callback)Listen for sign-in and sign-out

Good practice

  • If an endpoint returns an empty list, hide that section. Don't show placeholder data.
  • Treat a failed read as “no data” so one section can't break the page.
  • When the visitor switches branch, use that branch's branch_id and sdk_token for every call and in the SDK.
  • Reload /series/catalog after a purchase and /schedules/weekly after a booking.
  • Work out “today” in the studio's timezone, not the visitor's.

Errors

Invalid credentials return 422 with {"status": false, "message": "Invalid branch_id"}. POST /leads returns 422 with per-field errors.

For agents and tools

Building a studio's website?

Write to us and we will help you connect the studio's schedule, packs and checkout.

Ready to get started?