Skip to main content
GET
/
v1
/
platform
/
classes
/
{id}
Get a class by ID
curl --request GET \
  --url https://api.1club.ai/v1/platform/classes/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "name": "<string>",
  "slug": "<string>",
  "description": "<string>",
  "images": [
    "<string>"
  ],
  "classType": {
    "id": 123,
    "name": "<string>",
    "slug": "<string>"
  },
  "isMultiDay": true,
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "duration": 123,
  "maxCapacity": 123,
  "price": 123,
  "isFree": true,
  "status": "<string>",
  "recurrence": {},
  "sport": "<string>",
  "color": "<string>",
  "club": {
    "id": 123,
    "name": "<string>",
    "slug": "<string>"
  },
  "area": {
    "id": 123,
    "name": "<string>"
  },
  "instructors": [
    {
      "id": 123,
      "contactId": 123,
      "sports": [
        "<string>"
      ],
      "typeId": 123,
      "type": {
        "id": 123,
        "name": "<string>"
      },
      "experience": "<string>",
      "hourlyRate": 123,
      "bio": {},
      "certifications": [
        "<string>"
      ],
      "isActive": true,
      "isBookable": true,
      "contact": {
        "name": "<string>",
        "profileImage": "<string>"
      }
    }
  ],
  "timeStatus": "<string>",
  "availabilityStatus": "<string>",
  "userStatus": "<string>",
  "waitlistPosition": 123,
  "currentBookings": 123,
  "translations": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.1club.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Customer API key obtained from the admin portal (e.g. 1club_sk_live_...)

Path Parameters

id
integer
required

Class ID

Query Parameters

locale
string

Locale for translations

Response

Class details

A class returned by the platform API, including scheduling, capacity, pricing (with tax), club/area context, instructors, and computed status fields.

id
integer
name
string
slug
string | null
description
string | null
images
string[]
classType
object
isMultiDay
boolean
startTime
string<date-time>
endTime
string<date-time>
duration
number<float> | null

Duration in hours when present.

maxCapacity
integer | null
price
number<float> | null

Price including any applicable default tax.

isFree
boolean
visibility
enum<string>
Available options:
Public,
Member_only,
Private
status
string
recurrence
object
sport
string | null
color
string | null
club
object
area
object
instructors
object[]
timeStatus
string | null
availabilityStatus
string | null
userStatus
string | null
waitlistPosition
integer | null
currentBookings
integer | null
translations
object

Per-locale translations keyed by language code (e.g. 'es', 'fr').