Skip to content
Try For Free
Bizstim
Free tools
Pricing Contact Log in
Try For Free Book Demo
Home / API Reference / Sessions
Resource

Sessions

Scheduled appointments, lessons and classes. Dates and times are in the account time zone (the timezone field).

The session object

Every session record carries these fields in this order, after object, which is always "session".

FieldTypeDescription
idinteger
confirmedinteger1 = confirmed, 0 = pending confirmation.
multiinteger0 = one-to-one session (one client, one practitioner), 1 = group session.
slotsintegerSeats of an open group session clients can book into; 0 for every other session.
class_idinteger0 = not a class. Otherwise the session is a class with enrol and drop deadlines (the id of its class record).
pract_idstring, up to 2500 charactersComma-separated practitioner ids (see Practitioners). One id on a one-to-one session.
client_idstring, up to 2500 charactersComma-separated client ids (see Clients). One id on a one-to-one session; "0" on an open group session no client has booked yet.
cancel_clientstextClients who cancelled out of this group session with a charge. Comma-separated entries of client_id|charge id|id of the cancellation session that holds the charge; empty when none.
service_idintegerThe service (see Services).
location_idintegerThe location (see Locations).
recurr_idintegerThe recurring series this session belongs to; every session in the series shares it. 0 when not in a series.
recurr_oninteger1 = part of a recurring series, 0 = a single session.
session_statusinteger0 = open, 1 = cancelled, 2 = missed, 3 = completed. Only open sessions can be updated.
session_reminderinteger1 = the e-mail reminder has been sent, 0 = not yet.
session_smsinteger1 = the text (SMS) reminder has been sent, 0 = not yet.
session_descriptiontextThe title shown on the calendar.
session_datestring, up to 20 charactersAccount time zone.
session_start_timestring, up to 5 characters24-hour clock, account time zone.
session_end_timestring, up to 5 characters24-hour clock, account time zone.
session_notetext, nullablePublic note, shown to the participants.
session_private_notetext, nullablePrivate note, never shown to clients. The account owner, staff and practitioners can see it.
session_other_notetextOther (marketing) note. On a group session in a series, every open session in the series shares it.
assessment_moderationinteger1 = the session's assessment waits for review before clients can see it, 0 = no review needed.
assessment_presentinteger1 = an assessment is attached to the session, 0 = none.
timezonestringThe account time zone the session date and times are in.

Example

{
    "object": "session",
    "id": 42,
    "confirmed": 1,
    "multi": 1,
    "slots": 1,
    "class_id": 7,
    "pract_id": "7",
    "client_id": "7",
    "cancel_clients": "7",
    "service_id": 7,
    "location_id": 7,
    "recurr_id": 7,
    "recurr_on": 1,
    "session_status": 1,
    "session_reminder": 1,
    "session_sms": 1,
    "session_description": "Weekly lesson",
    "session_date": "2026-01-15",
    "session_start_time": "09:00",
    "session_end_time": "10:00",
    "session_note": "An example note.",
    "session_private_note": "An example note.",
    "session_other_note": "An example note.",
    "assessment_moderation": 1,
    "assessment_present": 1,
    "timezone": "America/Toronto"
}

List sessions

GET /api/v1/sessions

Parameters

ParameterInDescription
limitqueryRecords per page, 1 to 1000 (default 100).
offsetqueryRecords to skip (default 0).
client_idqueryOnly sessions of this client, including group sessions they are in.
pract_idqueryOnly sessions of this practitioner, including group sessions they are in.
fromqueryOnly sessions on or after this date (YYYY-MM-DD, account time zone).
toqueryOnly sessions on or before this date (YYYY-MM-DD, account time zone).
session_statusqueryOnly sessions with this status: 0 = open, 1 = cancelled, 2 = missed, 3 = completed. One status or a comma-separated list (1,2).

Returns

A list envelope of session records (see Pagination).

Request

curl "https://www.bizstim.com/api/v1/sessions" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "object": "list",
    "total": 2,
    "limit": 100,
    "offset": 0,
    "has_more": false,
    "data": [
        {
            "object": "session",
            "id": 42,
            "confirmed": 1,
            "multi": 1,
            "slots": 1,
            "class_id": 7,
            "pract_id": "7",
            "client_id": "7",
            "cancel_clients": "7",
            "service_id": 7,
            "location_id": 7,
            "recurr_id": 7,
            "recurr_on": 1,
            "session_status": 1,
            "session_reminder": 1,
            "session_sms": 1,
            "session_description": "Weekly lesson",
            "session_date": "2026-01-15",
            "session_start_time": "09:00",
            "session_end_time": "10:00",
            "session_note": "An example note.",
            "session_private_note": "An example note.",
            "session_other_note": "An example note.",
            "assessment_moderation": 1,
            "assessment_present": 1,
            "timezone": "America/Toronto"
        },
        {
            "object": "session",
            "id": 43,
            "confirmed": 1,
            "multi": 1,
            "slots": 1,
            "class_id": 7,
            "pract_id": "7",
            "client_id": "7",
            "cancel_clients": "7",
            "service_id": 7,
            "location_id": 7,
            "recurr_id": 7,
            "recurr_on": 1,
            "session_status": 1,
            "session_reminder": 1,
            "session_sms": 1,
            "session_description": "Weekly lesson",
            "session_date": "2026-01-15",
            "session_start_time": "09:00",
            "session_end_time": "10:00",
            "session_note": "An example note.",
            "session_private_note": "An example note.",
            "session_other_note": "An example note.",
            "assessment_moderation": 1,
            "assessment_present": 1,
            "timezone": "America/Toronto"
        }
    ]
}

Retrieve a session

GET /api/v1/sessions/{id}

Parameters

ParameterInDescription
idpathThe record's id.

Returns

One session record, or 404 not_found when no record with that id exists on your account.

Request

curl "https://www.bizstim.com/api/v1/sessions/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "object": "session",
    "id": 42,
    "confirmed": 1,
    "multi": 1,
    "slots": 1,
    "class_id": 7,
    "pract_id": "7",
    "client_id": "7",
    "cancel_clients": "7",
    "service_id": 7,
    "location_id": 7,
    "recurr_id": 7,
    "recurr_on": 1,
    "session_status": 1,
    "session_reminder": 1,
    "session_sms": 1,
    "session_description": "Weekly lesson",
    "session_date": "2026-01-15",
    "session_start_time": "09:00",
    "session_end_time": "10:00",
    "session_note": "An example note.",
    "session_private_note": "An example note.",
    "session_other_note": "An example note.",
    "assessment_moderation": 1,
    "assessment_present": 1,
    "timezone": "America/Toronto"
}

Create a session

POST /api/v1/sessions

Request body

A JSON object (Content-Type: application/json) with these fields.

FieldTypeRequiredDescription
client_idinteger or array of integersyes, unless slots is 1 or moreThe client, or the clients of a group session. Send an empty array together with slots to create an open group session clients book into.
pract_idinteger or array of integersyesThe practitioner, or the practitioners of a group session. One client and one practitioner make a one-to-one session; anything else is a group session. The Smart Learn practitioner cannot be added.
service_idintegeryesThe service. Subscription services cannot be scheduled through the API yet. The Smart Learn service cannot be used.
location_idintegeryesThe location.
session_datedate, YYYY-MM-DDyesThe date, in the account time zone. With a recurrence, the first date of the series.
session_start_timetime, HH:MMyes24-hour clock, account time zone.
session_end_timetime, HH:MMyesAfter the start time, on the same day.
session_descriptionstring, up to 256 charactersyesThe title shown on the calendar.
session_notestringnoPublic note, shown to the participants. The API stamps it with your name and the time, as the app does.
session_private_notestringnoPrivate note, never shown to clients; stamped the same way.
session_other_notestringnoOther (marketing) note.
confirmedbooleannoMark the session confirmed (default false).
slotsintegernoSeats of an open group session (default 0).
meetingobjectnoOnline meeting: {"provider": "none" | "lessonspace" | "pencilspaces" | "other", "url": "...", "password": "..."}. lessonspace and pencilspaces need that provider connected on the account; other needs url (up to 4096 characters) and takes password (up to 255). Left out, the app's rule applies: the forced default provider (Settings > Calendar), else the provider mapped to the location, else none.
recurrenceobjectnoRepeat the session: {"frequency": "weekly" | "biweekly", "days": [1-7, Monday = 1], "count": N}, {"frequency": "monthly" | "yearly", "count": N} (repeats on the day of session_date), the same with "until": "YYYY-MM-DD" instead of count, or an explicit list {"dates": ["YYYY-MM-DD", ...]}. count is at most 128 (biweekly 48, monthly 24, yearly 3); until must fall inside the planning window the app allows for the frequency.
enroll_deadlinedate, YYYY-MM-DDnoMakes the session a class: the last day clients may enrol (the session date when only drop_deadline is sent).
drop_deadlinedate, YYYY-MM-DDnoClass: the last day clients may drop (the session date when only enroll_deadline is sent).

Returns

201 with the new session record. With a recurrence, 201 with a list envelope of every session created, oldest first. 400 invalid_request names the field to fix; 409 conflict when the app refused the session.

Request

curl -X POST "https://www.bizstim.com/api/v1/sessions" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "client_id": 7,
    "pract_id": 7,
    "service_id": 1,
    "location_id": 1,
    "session_date": "2026-01-15",
    "session_start_time": "09:00",
    "session_end_time": "10:00",
    "session_description": "Weekly lesson",
    "session_note": "Bring the workbook.",
    "confirmed": true
}'

Response (201)

{
    "object": "session",
    "id": 42,
    "confirmed": 1,
    "multi": 1,
    "slots": 1,
    "class_id": 7,
    "pract_id": "7",
    "client_id": "7",
    "cancel_clients": "7",
    "service_id": 7,
    "location_id": 7,
    "recurr_id": 7,
    "recurr_on": 1,
    "session_status": 1,
    "session_reminder": 1,
    "session_sms": 1,
    "session_description": "Weekly lesson",
    "session_date": "2026-01-15",
    "session_start_time": "09:00",
    "session_end_time": "10:00",
    "session_note": "An example note.",
    "session_private_note": "An example note.",
    "session_other_note": "An example note.",
    "assessment_moderation": 1,
    "assessment_present": 1,
    "timezone": "America/Toronto"
}

Update a session

PATCH /api/v1/sessions/{id}

Parameters

ParameterInDescription
idpathThe record's id.

Request body

A JSON object (Content-Type: application/json) with these fields.

FieldTypeRequiredDescription
client_idinteger or array of integersnoThe full client list after the change. A one-to-one session keeps exactly one client (it may be swapped). On a group session the participants change one session at a time (apply_to "this"); an empty array leaves an open group session without clients. Class deadlines apply: no new client after the enrol deadline, no removal after the drop deadline.
pract_idinteger or array of integersnoThe full practitioner list after the change. A one-to-one session keeps exactly one practitioner; on a group session the change applies to this session only. The Smart Learn practitioner cannot be added.
service_idintegernoThe service. Subscription services cannot be set through the API yet. The Smart Learn service cannot be used.
location_idintegernoThe location. Without a meeting in the same request, the meeting software mapped to the new location applies (a typed meeting link is kept when the location maps to none).
session_datedate, YYYY-MM-DDnoAccount time zone. In a series it moves this session only (apply_to "this"); a one-to-one series edit keeps each session's own date.
session_start_timetime, HH:MMno24-hour clock, account time zone.
session_end_timetime, HH:MMnoAfter the start time, on the same day.
session_descriptionstring, up to 256 charactersnoThe title shown on the calendar.
session_notestringnoPublic note. Replaces the note as sent (no stamp is added on update).
session_private_notestringnoPrivate note, replaced as sent.
session_other_notestringnoOther (marketing) note, replaced as sent. On a group session in a series it changes every open session of the series, as in the app.
confirmedbooleannoConfirmed flag.
slotsintegernoSeats of an open group session (1 or more). Other sessions keep 0.
meetingobjectnoOnline meeting, as on create. Switching provider tears the previous one down. Left out, the current meeting is kept (see location_id).
enroll_deadlinedate, YYYY-MM-DDnoClass enrol deadline. On a one-to-one session, sending both deadlines as "" turns a class back into a plain session and a deadline on a plain session makes it a class; a group session changes the deadlines of an existing class only.
drop_deadlinedate, YYYY-MM-DDnoClass drop deadline, as enroll_deadline.
apply_tostringnoFor a session in a recurring series: "this" (default) changes only this session, "series" every open session in the series, "unedited" (one-to-one series only) every open session in the series that was not edited on its own before. A one-to-one class session always behaves as "series".

Returns

200 with the updated session record (the one addressed, also when apply_to changed its whole series). 400 invalid_request names the field to fix; 404 not_found; 409 conflict when the session is not open or the app refused a change (on a group session the fields saved before the refused one stay saved, as on the app's group page).

Request

curl -X PATCH "https://www.bizstim.com/api/v1/sessions/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "session_start_time": "11:00",
    "session_end_time": "12:30",
    "session_description": "Weekly lesson (moved)",
    "apply_to": "this"
}'

Response

{
    "object": "session",
    "id": 42,
    "confirmed": 1,
    "multi": 1,
    "slots": 1,
    "class_id": 7,
    "pract_id": "7",
    "client_id": "7",
    "cancel_clients": "7",
    "service_id": 7,
    "location_id": 7,
    "recurr_id": 7,
    "recurr_on": 1,
    "session_status": 1,
    "session_reminder": 1,
    "session_sms": 1,
    "session_description": "Weekly lesson",
    "session_date": "2026-01-15",
    "session_start_time": "09:00",
    "session_end_time": "10:00",
    "session_note": "An example note.",
    "session_private_note": "An example note.",
    "session_other_note": "An example note.",
    "assessment_moderation": 1,
    "assessment_present": 1,
    "timezone": "America/Toronto"
}

Delete a session

DELETE /api/v1/sessions/{id}

Parameters

ParameterInDescription
idpathThe record's id.
seriesquerytrue deletes every open session of the recurring series this session belongs to.

Returns

200 with {"id", "object": "session", "deleted": true}. With series=true, 200 with a list envelope of one such record per open session of the series that was deleted. 404 not_found; 409 conflict when the session may not be deleted (a temporary cancellation copy whose original still exists).

Request

curl -X DELETE "https://www.bizstim.com/api/v1/sessions/42" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Accept: application/json"

Response

{
    "id": 42,
    "object": "session",
    "deleted": true
}