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".
| Field | Type | Description |
|---|---|---|
id | integer | |
confirmed | integer | 1 = confirmed, 0 = pending confirmation. |
multi | integer | 0 = one-to-one session (one client, one practitioner), 1 = group session. |
slots | integer | Seats of an open group session clients can book into; 0 for every other session. |
class_id | integer | 0 = not a class. Otherwise the session is a class with enrol and drop deadlines (the id of its class record). |
pract_id | string, up to 2500 characters | Comma-separated practitioner ids (see Practitioners). One id on a one-to-one session. |
client_id | string, up to 2500 characters | Comma-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_clients | text | Clients 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_id | integer | The service (see Services). |
location_id | integer | The location (see Locations). |
recurr_id | integer | The recurring series this session belongs to; every session in the series shares it. 0 when not in a series. |
recurr_on | integer | 1 = part of a recurring series, 0 = a single session. |
session_status | integer | 0 = open, 1 = cancelled, 2 = missed, 3 = completed. Only open sessions can be updated. |
session_reminder | integer | 1 = the e-mail reminder has been sent, 0 = not yet. |
session_sms | integer | 1 = the text (SMS) reminder has been sent, 0 = not yet. |
session_description | text | The title shown on the calendar. |
session_date | string, up to 20 characters | Account time zone. |
session_start_time | string, up to 5 characters | 24-hour clock, account time zone. |
session_end_time | string, up to 5 characters | 24-hour clock, account time zone. |
session_note | text, nullable | Public note, shown to the participants. |
session_private_note | text, nullable | Private note, never shown to clients. The account owner, staff and practitioners can see it. |
session_other_note | text | Other (marketing) note. On a group session in a series, every open session in the series shares it. |
assessment_moderation | integer | 1 = the session's assessment waits for review before clients can see it, 0 = no review needed. |
assessment_present | integer | 1 = an assessment is attached to the session, 0 = none. |
timezone | string | The 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
Parameters
| Parameter | In | Description |
|---|---|---|
limit | query | Records per page, 1 to 1000 (default 100). |
offset | query | Records to skip (default 0). |
client_id | query | Only sessions of this client, including group sessions they are in. |
pract_id | query | Only sessions of this practitioner, including group sessions they are in. |
from | query | Only sessions on or after this date (YYYY-MM-DD, account time zone). |
to | query | Only sessions on or before this date (YYYY-MM-DD, account time zone). |
session_status | query | Only 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"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/sessions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/sessions', {
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.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
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The 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"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/sessions/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/sessions/42', {
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.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
Request body
A JSON object (Content-Type: application/json) with these fields.
| Field | Type | Required | Description |
|---|---|---|---|
client_id | integer or array of integers | yes, unless slots is 1 or more | The 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_id | integer or array of integers | yes | The 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_id | integer | yes | The service. Subscription services cannot be scheduled through the API yet. The Smart Learn service cannot be used. |
location_id | integer | yes | The location. |
session_date | date, YYYY-MM-DD | yes | The date, in the account time zone. With a recurrence, the first date of the series. |
session_start_time | time, HH:MM | yes | 24-hour clock, account time zone. |
session_end_time | time, HH:MM | yes | After the start time, on the same day. |
session_description | string, up to 256 characters | yes | The title shown on the calendar. |
session_note | string | no | Public note, shown to the participants. The API stamps it with your name and the time, as the app does. |
session_private_note | string | no | Private note, never shown to clients; stamped the same way. |
session_other_note | string | no | Other (marketing) note. |
confirmed | boolean | no | Mark the session confirmed (default false). |
slots | integer | no | Seats of an open group session (default 0). |
meeting | object | no | Online 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. |
recurrence | object | no | Repeat 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_deadline | date, YYYY-MM-DD | no | Makes the session a class: the last day clients may enrol (the session date when only drop_deadline is sent). |
drop_deadline | date, YYYY-MM-DD | no | Class: 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
}'<?php
$ch = curl_init('https://www.bizstim.com/api/v1/sessions');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => '{
"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
}',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json', 'Content-Type: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/sessions', {
method: 'POST',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json', 'Content-Type': 'application/json' },
body: JSON.stringify({
"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
})
});
const data = await response.json();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
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The record's id. |
Request body
A JSON object (Content-Type: application/json) with these fields.
| Field | Type | Required | Description |
|---|---|---|---|
client_id | integer or array of integers | no | The 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_id | integer or array of integers | no | The 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_id | integer | no | The service. Subscription services cannot be set through the API yet. The Smart Learn service cannot be used. |
location_id | integer | no | The 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_date | date, YYYY-MM-DD | no | Account 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_time | time, HH:MM | no | 24-hour clock, account time zone. |
session_end_time | time, HH:MM | no | After the start time, on the same day. |
session_description | string, up to 256 characters | no | The title shown on the calendar. |
session_note | string | no | Public note. Replaces the note as sent (no stamp is added on update). |
session_private_note | string | no | Private note, replaced as sent. |
session_other_note | string | no | Other (marketing) note, replaced as sent. On a group session in a series it changes every open session of the series, as in the app. |
confirmed | boolean | no | Confirmed flag. |
slots | integer | no | Seats of an open group session (1 or more). Other sessions keep 0. |
meeting | object | no | Online meeting, as on create. Switching provider tears the previous one down. Left out, the current meeting is kept (see location_id). |
enroll_deadline | date, YYYY-MM-DD | no | Class 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_deadline | date, YYYY-MM-DD | no | Class drop deadline, as enroll_deadline. |
apply_to | string | no | For 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"
}'<?php
$ch = curl_init('https://www.bizstim.com/api/v1/sessions/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS => '{
"session_start_time": "11:00",
"session_end_time": "12:30",
"session_description": "Weekly lesson (moved)",
"apply_to": "this"
}',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json', 'Content-Type: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/sessions/42', {
method: 'PATCH',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json', 'Content-Type': 'application/json' },
body: JSON.stringify({
"session_start_time": "11:00",
"session_end_time": "12:30",
"session_description": "Weekly lesson (moved)",
"apply_to": "this"
})
});
const data = await response.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"
} Delete a session
Parameters
| Parameter | In | Description |
|---|---|---|
id | path | The record's id. |
series | query | true 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"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/sessions/42');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/sessions/42', {
method: 'DELETE',
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.json();Response
{
"id": 42,
"object": "session",
"deleted": true
}