Skip to content
Preview. The endpoints on this page are illustrative and are likely to change as they move toward general availability. Documentation is published in advance so you can start shaping your integration; treat request and response details as subject to revision.

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 ​

MethodEndpointDescription
GET/api/v1alpha1/smart-schedulesList 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}/availabilitySubmit 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 ​

ParameterTypeDescription
cursorstringOpaque pagination cursor. Omit on the first request.
limitnumberPage size, 1–100. Default 25; out of range is a 400.
sortstringOne 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.
namestring(optional) Substring filter on the schedule name; case-insensitive.
statusstring(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 — limit is not a whole number from 1 to 100, or status is not active or all. The field property names the parameter.
  • 400 invalid-sort-field — sort is not in the allowlist. The response includes allowedSortFields.
  • 400 invalid-cursor — the cursor is malformed, or was issued for a different sort.

bash
curl -s "https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules?limit=25" \
  -H "X-Cirrus-Api-Key: $TOKEN"
python
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()
csharp
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();
json
{
  "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 ​

ParameterTypeDescription
scheduleIdstringThe smart schedule ID, prefixed sched_.

Response ​

See SmartSchedulemodel for full field documentation.

Notes ​

  • assignees is an unordered list of eligible hosts. Routing priority depends on the form answers and is returned by availability. host.email is the address that availability hosts entries are matched against. It is returned to any token with smart-scheduling:read; see Scopes.
  • publishedAt is the schedule's creation time for a published schedule, and null otherwise.
  • bookingWindow is null when the schedule sets neither bound.
  • surveyQuestions[].key is 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 example mtg_)
  • 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

bash
curl -s "https://altus.cirrusinsight.com/api/v1alpha1/smart-schedules/sched_ZS8aKzxNXm96i5wN" \
  -H "X-Cirrus-Api-Key: $TOKEN"
python
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()
csharp
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();
json
{
  "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 ​

FieldTypeDescription
formValuesobject(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.
hostsarray(optional) 1–100 hosts to narrow the result to. See Narrow to your own hosts.
dateRangeobject(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.startstringISO 8601 timestamp with an offset. Only slots starting at or after this instant are returned.
dateRange.endstringISO 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.
durationMinutesnumber(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.
timeZonestring(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.

AttributeTypeDescription
host.userIdstringThe host's identifier, prefixed usr_. Same value as host.userId on a booked meeting.
host.displayNamestringThe 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.
statusstringbookable or calendar-disconnected. See Hosts with no slots.
slotslistAvailable 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.

statusMeaningWhat to do
bookableThe host has no free time in the requested range.Widen dateRange, or offer a host from a later group.
calendar-disconnectedThe 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 formValues it was issued for. A modified token returns 422 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_…) or email. 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.
  • hostGroups keeps the schedule's priority order. The order of hosts is ignored.
  • Required matching-form fields are not enforced. Any formValues you 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 formValues to POST /scheduled-meetings, or {} if you sent none.

Listed hosts that are not returned appear in unmatchedHosts:

reasonMeaning
not-on-scheduleNo assignee on this schedule has this id or email.
not-matchedThe 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 durationMinutes is 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, or dateRange is sent without both start and end. The response lists each problem field under errors.
  • 400 invalid-resource-id — the schedule id, or a hosts[].userId, carries another resource's prefix
  • 404 schedule-not-found — schedule does not exist, is not visible to this org, or the id does not decode to a schedule
  • 409 schedule-disabled — the schedule is not accepting bookings. The schedule owner must re-enable it.
  • 422 availability-request-invalid — durationMinutes is not a length the schedule offers, dateRange.end is not later than dateRange.start, or hosts is empty, has more than 100 entries, or has an entry without exactly one of userId or email. hosts errors are listed in fieldErrors[] with the key hosts or hosts[i].
  • 422 form-validation — formValues failed 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 a fieldErrors[] 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.

bash
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
  }'
python
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()
csharp
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();
json
{
  "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"
}
json
{
  "hosts": [
    { "userId": "usr_ZS8aKzxNXm96i5wN" },
    { "email": "jane@example.com" }
  ],
  "dateRange": {
    "start": "2026-06-15T00:00:00Z",
    "end":   "2026-06-29T00:00:00Z"
  }
}
json
"unmatchedHosts": [
  { "input": { "email": "bob@example.com" }, "reason": "not-on-schedule" },
  { "input": { "userId": "usr_..." },        "reason": "not-matched" }
]
text
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

Raleigh, NC — a Cirruspath, Inc. company