Smart Schedules
List the Smart Schedules in your organization, fetch a schedule's definition (including the matching form to render in your own UI), and submit form answers to get matched hosts and their bookable slots.
All endpoints require the smart-scheduling:read scope.
Endpoints on this page
| Method | Endpoint | Description |
|---|---|---|
GET | /api/v1alpha1/smart-schedules | List schedules visible to the calling org. Details ↓ |
GET | /api/v1alpha1/smart-schedules/{scheduleId} | Fetch one schedule's full definition — matching form, survey questions, assignees. Details ↓ |
POST | /api/v1alpha1/smart-schedules/{scheduleId}/availability | Submit form values, run host routing, return matched host + slot pairs. Details ↓ |
List Smart Schedules
GET /api/v1alpha1/smart-schedules
Returns smart schedules visible to the calling org.
Query parameters
| Parameter | Type | Description |
|---|---|---|
cursor | string | Opaque pagination cursor. Omit on the first request. |
limit | number | Page size, 1–100. Default 25; out of range is a 400. |
sort | string | One of updatedAt, createdAt, name. Without a prefix, updatedAt and createdAt sort newest first and name sorts A–Z. Prefix with - for descending or + (URL-encoded as %2B) for ascending. Default -updatedAt. |
name | string | (optional) Substring filter on the schedule name; case-insensitive. |
status | string | (optional) active (default) or all; case-insensitive. all adds disabled schedules. Draft schedules are always excluded. |
Response
Each item is a SmartScheduleSummarymodel. publishedAt is null for a schedule with no recorded publish state.
Errors
400 form-validation—limitis not a whole number from 1 to 100, orstatusis notactiveorall. Thefieldproperty names the parameter.400 invalid-sort-field—sortis not in the allowlist. The response includesallowedSortFields.400 invalid-cursor— the cursor is malformed, or was issued for a differentsort.
curl -s "https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules?limit=25" \
-H "X-Cirrus-Api-Key: $TOKEN"import requests
response = requests.get(
"https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules",
headers={"X-Cirrus-Api-Key": token},
params={"limit": 25},
)
response.raise_for_status()
page = response.json()using System.Net.Http;
using System.Net.Http.Headers;
using System.Web;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Cirrus-Api-Key", token);
var query = HttpUtility.ParseQueryString(string.Empty);
query["limit"] = "25";
var uri = new UriBuilder("https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules")
{
Query = query.ToString()
}.Uri;
var response = await client.GetAsync(uri);
response.EnsureSuccessStatusCode();
var page = await response.Content.ReadAsStringAsync();{
"items": [
{
"id": "sched_...",
"name": "Demo Call",
"description": "Schedule a product demo with one of our sales engineers.",
"status": "active",
"durationMinutes": 30,
"timeZone": "America/Los_Angeles",
"publishedAt": "2026-05-01T12:00:00Z",
"updatedAt": "2026-07-14T09:30:00Z"
}
],
"nextCursor": null
}Get Smart Schedule
GET /api/v1alpha1/smart-schedules/{scheduleId}
Returns the full schedule definition: the matching form that drives host routing, the survey questions, and the hosts eligible on the schedule.
Path parameters
| Parameter | Type | Description |
|---|---|---|
scheduleId | string | The smart schedule ID, prefixed sched_. |
Response
See SmartSchedulemodel for full field documentation.
Notes
assigneesis an unordered list of eligible hosts. Routing priority depends on the form answers and is returned by availability.host.emailis the address that availabilityhostsentries are matched against. It is returned to any token withsmart-scheduling:read; see Scopes.publishedAtis the schedule's creation time for a published schedule, andnullotherwise.bookingWindowisnullwhen the schedule sets neither bound.surveyQuestions[].keyis derived from the question text, so renaming a question changes its key. See survey-question notes.
Errors
400 invalid-resource-id— the id carries another resource's prefix (for examplemtg_)404 schedule-not-found— the schedule does not exist, is not visible to this token's org, or the id does not decode to a schedule
curl -s "https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/sched_ZS8aKzxNXm96i5wN" \
-H "X-Cirrus-Api-Key: $TOKEN"import requests
schedule_id = "sched_ZS8aKzxNXm96i5wN"
response = requests.get(
f"https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/{schedule_id}",
headers={"X-Cirrus-Api-Key": token},
)
response.raise_for_status()
schedule = response.json()using System.Net.Http;
using System.Net.Http.Headers;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Cirrus-Api-Key", token);
var scheduleId = "sched_ZS8aKzxNXm96i5wN";
var response = await client.GetAsync(
$"https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/{scheduleId}");
response.EnsureSuccessStatusCode();
var schedule = await response.Content.ReadAsStringAsync();{
"id": "sched_...",
"name": "Demo Call",
"description": "Schedule a product demo.",
"status": "active",
"durationMinutes": 30,
"timeZone": "America/Los_Angeles",
"bookingWindow": {
"minAdvanceMinutes": 120,
"maxAdvanceDays": 14
},
"matchingForm": {
"fields": [
{
"key": "fld_cmVnaW9u",
"label": "Region",
"type": "select",
"options": [
{ "value": "opt_TkEtRWFzdA", "label": "NA-East" },
{ "value": "opt_TkEtV2VzdA", "label": "NA-West" },
{ "value": "opt_RU1FQQ", "label": "EMEA" }
],
"required": true
},
{
"key": "fld_c2l6ZQ",
"label": "Company size",
"type": "select",
"options": [
{ "value": "opt_MS0xMA", "label": "1-10" },
{ "value": "opt_MTEtNTA", "label": "11-50" },
{ "value": "opt_NTEtMjAw", "label": "51-200" },
{ "value": "opt_MjAxKw", "label": "201+" }
],
"required": true
}
]
},
"surveyQuestions": [
{ "key": "what-brings-you-here-today", "label": "What brings you here today?", "type": "long-text", "required": false }
],
"assignees": [
{ "host": { "userId": "usr_...", "displayName": "Alex Rivera", "email": "alex.rivera@example.com" } },
{ "host": { "userId": "usr_...", "displayName": "Sam Chen", "email": "sam.chen@example.com" } }
],
"publishedAt": "2026-05-01T12:00:00Z",
"updatedAt": "2026-07-14T09:30:00Z"
}Get availability (match + slots)
POST /api/v1alpha1/smart-schedules/{scheduleId}/availability
Submits form answers, routes them to the matching hosts, and returns each host's available slots in the requested date range.
Request body
| Field | Type | Description |
|---|---|---|
formValues | object | (optional, default {}) Map of matchingForm.fields[].key (fld_…) → the chosen option's value (opt_…). A single-select field takes one value; a multi-select field takes an array, or a single value. Values must be strings. Send the option's value, not its label. An unrecognized key or value returns 422 form-validation. Required fields are enforced unless hosts is sent. |
hosts | array | (optional) 1–100 hosts to narrow the result to. See Narrow to your own hosts. |
dateRange | object | (optional) Window to fetch availability for. Limited to the schedule's booking horizon; defaults to the whole horizon when omitted. A range entirely outside the horizon returns no slots. When sent, both start and end are required. |
dateRange.start | string | ISO 8601 timestamp with an offset. Only slots starting at or after this instant are returned. |
dateRange.end | string | ISO 8601 timestamp with an offset. Only slots ending at or before this instant are returned, so a slot is never truncated by the boundary. Must be later than start. |
durationMinutes | number | (optional) Meeting length to offer, in minutes. Must be the schedule's default length or one of its configured booking periods. Omit it (or send 0) to use the default. An unsupported value returns 422 availability-request-invalid. |
timeZone | string | (optional) Ignored. Slots are always returned in UTC. |
Response
Fields
hostGroups list
A nested list. The outer list is priority groups: group 0 holds the most-preferred hosts, group 1 the next, and so on. The inner list holds equally-ranked hosts within a group.
To respect routing priority, offer hosts from earlier groups first. To ignore it, flatten the list.
Host reference fields
Each entry carries a host reference with userId and displayName only. A booked meeting's host has the full set of fields.
| Attribute | Type | Description |
|---|---|---|
host.userId | string | The host's identifier, prefixed usr_. Same value as host.userId on a booked meeting. |
host.displayName | string | The host's display name (first + last, falling back to email when no name is stored). May be shown directly to end-users. Empty when the matched host is no longer listed on the schedule. |
status | string | bookable or calendar-disconnected. See Hosts with no slots. |
slots | list | Available slots for this host within the requested window. Each is an AvailableSlotmodel. |
Hosts with no slots
status tells you why a host's slots list is empty.
status | Meaning | What to do |
|---|---|---|
bookable | The host has no free time in the requested range. | Widen dateRange, or offer a host from a later group. |
calendar-disconnected | The host's calendar could not be read. slots is always empty. Usually the host has disconnected their calendar. | Offer a host from a later group. If it persists, tell the schedule owner. |
unmatchedHosts list
Each hosts entry that is not in hostGroups, with the reason. Empty when hosts was not sent. See Narrow to your own hosts.
matchedAt string
UTC timestamp of when this response was computed.
Slot tokens
- Tokens are valid for 10 minutes from issue. An older token returns
410 slot-expired. - A token is bound to its schedule, host, start time, end time, and the
formValuesit was issued for. A modified token returns422 slot-token-invalid. - Tokens are opaque. Do not parse, modify, or generate them.
- A slot can be taken before its token expires. Booking it then returns
409 slot-unavailable.
See AvailableSlotmodel for the full slot object.
Narrow to your own hosts
If you choose hosts in your own system, you can still apply utilization priority by sending them in hosts. Only those hosts' calendars are read.
- Each entry has exactly one of
userId(usr_…) oremail. Emails match case-insensitively. A host listed twice is returned once. - Only hosts that are assignees on the schedule are returned. To make a host available, add them to the schedule's assignees.
hostGroupskeeps the schedule's priority order. The order ofhostsis ignored.- Required matching-form fields are not enforced. Any
formValuesyou send are still validated. - With
formValues, only listed hosts who are also among the schedule's best matches for those answers are returned. - To book a slot, send the same
formValuestoPOST /scheduled-meetings, or{}if you sent none.
Listed hosts that are not returned appear in unmatchedHosts:
reason | Meaning |
|---|---|
not-on-schedule | No assignee on this schedule has this id or email. |
not-matched | The host is an assignee, but the formValues sent exclude them. |
Performance
Response time grows with the number of matched hosts and the number of days in dateRange.
- Request only the range you display. Each day in the range is read in full for every matched host.
- Widen progressively. Request a short range first and extend it only when you need more slots:
- Changing only
durationMinutesis fast. A repeat request for the same schedule and range with a different length reuses recent calendar reads. - Expect slightly stale slots. A host's free/busy data can be cached for a few minutes, so a returned slot may already be taken. Booking re-checks the slot and returns
409 slot-unavailable. - Rate limit. 60 requests per minute per token. See Rate Limits.
Errors
400— the body is not valid JSON, ordateRangeis sent without bothstartandend. The response lists each problem field undererrors.400 invalid-resource-id— the schedule id, or ahosts[].userId, carries another resource's prefix404 schedule-not-found— schedule does not exist, is not visible to this org, or the id does not decode to a schedule409 schedule-disabled— the schedule is not accepting bookings. The schedule owner must re-enable it.422 availability-request-invalid—durationMinutesis not a length the schedule offers,dateRange.endis not later thandateRange.start, orhostsis empty, has more than 100 entries, or has an entry without exactly one ofuserIdoremail.hostserrors are listed infieldErrors[]with the keyhostsorhosts[i].422 form-validation—formValuesfailed the schedule's matching-form validation (missing required field, value outside allowed option list, a list sent to a single-select field, etc.). Response body includes afieldErrors[]array of{ key, message }.
An empty hostGroups list returns 200. It means no host matched the answers or the hosts list, the range is outside the schedule's booking horizon, or the schedule has no bookable days.
curl -s -X POST "https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/sched_ZS8aKzxNXm96i5wN/availability" \
-H "X-Cirrus-Api-Key: $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"formValues": {
"fld_cmVnaW9u": "opt_TkEtRWFzdA",
"fld_c2l6ZQ": "opt_NTEtMjAw"
},
"dateRange": {
"start": "2026-06-15T00:00:00Z",
"end": "2026-06-29T00:00:00Z"
},
"durationMinutes": 30
}'import requests
schedule_id = "sched_ZS8aKzxNXm96i5wN"
response = requests.post(
f"https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/{schedule_id}/availability",
headers={"X-Cirrus-Api-Key": token},
json={
"formValues": {
"fld_cmVnaW9u": "opt_TkEtRWFzdA",
"fld_c2l6ZQ": "opt_NTEtMjAw",
},
"dateRange": {
"start": "2026-06-15T00:00:00Z",
"end": "2026-06-29T00:00:00Z",
},
"durationMinutes": 30,
},
)
response.raise_for_status()
availability = response.json()using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-Cirrus-Api-Key", token);
var scheduleId = "sched_ZS8aKzxNXm96i5wN";
var body = new
{
formValues = new Dictionary<string, string>
{
["fld_cmVnaW9u"] = "opt_TkEtRWFzdA",
["fld_c2l6ZQ"] = "opt_NTEtMjAw",
},
dateRange = new
{
start = "2026-06-15T00:00:00Z",
end = "2026-06-29T00:00:00Z",
},
durationMinutes = 30,
};
var request = new HttpRequestMessage(
HttpMethod.Post,
$"https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/{scheduleId}/availability")
{
Content = new StringContent(
JsonSerializer.Serialize(body),
Encoding.UTF8,
"application/json"),
};
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
var availability = await response.Content.ReadAsStringAsync();{
"hostGroups": [
[
{
"host": { "userId": "usr_...", "displayName": "Alex Rivera" },
"status": "bookable",
"slots": [
{
"startTime": "2026-06-16T17:00:00Z",
"endTime": "2026-06-16T17:30:00Z",
"slotToken": "eyJzaWQiOiJzY2hlZF8..."
},
{
"startTime": "2026-06-16T19:30:00Z",
"endTime": "2026-06-16T20:00:00Z",
"slotToken": "eyJzaWQiOiJzY2hlZF8..."
}
]
}
],
[
{
"host": { "userId": "usr_...", "displayName": "Sam Chen" },
"status": "bookable",
"slots": [
{
"startTime": "2026-06-17T16:00:00Z",
"endTime": "2026-06-17T16:30:00Z",
"slotToken": "eyJzaWQiOiJzY2hlZF8..."
}
]
},
{
"host": { "userId": "usr_...", "displayName": "Jordan Blake" },
"status": "calendar-disconnected",
"slots": []
}
]
],
"unmatchedHosts": [],
"matchedAt": "2026-06-15T14:22:00Z"
}{
"hosts": [
{ "userId": "usr_ZS8aKzxNXm96i5wN" },
{ "email": "jane@example.com" }
],
"dateRange": {
"start": "2026-06-15T00:00:00Z",
"end": "2026-06-29T00:00:00Z"
}
}"unmatchedHosts": [
{ "input": { "email": "bob@example.com" }, "reason": "not-on-schedule" },
{ "input": { "userId": "usr_..." }, "reason": "not-matched" }
]range = first 3 days
loop:
response = POST /availability with range
offer slots from hostGroups in order (group 0 first)
if enough slots to show -> stop
if range has reached the schedule's booking horizon -> stop
range = next 3 days