Book appointment
/api/v1/ext/appointments
Book a contact on a calendar.
The calendar's booking rules apply, as for the booking page and the AI: start_at must be a time Free slots offers — inside the calendar's availability, on its slot times, within its notice and booking window, and not in the past (400 OUTSIDE_AVAILABILITY). Send ignore_booking_rules: true to book outside them, as staff can on the dashboard. A time that is already taken is always refused (409).
Without end_at the calendar's slot length is used. Booking runs any workflow that triggers on Appointment booked, sends the calendar's reminders, and syncs to a linked Google or Outlook calendar.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | body | number | yes | The workspace. |
| calendar_id | body | number | yes | A calendar of that workspace. |
| contact_id | body | number | yes | A contact in that workspace. |
| start_at | body | string | yes | ISO 8601, e.g. a time from Free slots. |
| end_at | body | string | no | ISO 8601. Default start + the calendar's slot length. |
| title | body | string | no | Default the calendar's title template. |
| description | body | string | no | Notes. |
| timezone | body | string | no | IANA timezone of the contact. |
| assignee_id | body | number | no | A team member assigned to the workspace. |
| location_text | body | string | no | Address or location note. |
| meeting_link | body | string | no | Video meeting link. |
| ignore_booking_rules | body | boolean | no | Default false. Double-booking is refused either way. |
Responses
| Status | When |
|---|---|
201 | Booked |
400 | Missing field |
400 | Not a time Free slots offers |
401 | Missing or invalid token |
403 | Missing scope |
404 | Workspace, calendar or contact not found or not accessible |
409 | The time is already booked |
Response schema
appointmentobjectidnumberAppointment id.
700workspace_idnumberThe workspace it belongs to.
7calendar_idnumberThe calendar it is booked on.
5calendarobjectid, name and color of the calendar.
contactobjectThe contact: id, first_name, last_name, email, phone_number, company_name.
assigneeobjectThe team member it is assigned to: id and name.
titlestringAppointment title.
descriptionstringNotes for the appointment.
start_atstring (ISO 8601)Start time, UTC.
end_atstring (ISO 8601)End time, UTC.
timezonestringIANA timezone it was booked in.
Australia/Sydneystatusstring"confirmed", "cancelled", "no_show" or "completed".
confirmedsourcestringWhere it was booked: api (this API), dashboard, booking_page, agent, mcp …
location_textstringAddress or location note.
meeting_linkstringVideo meeting link.
reschedule_countnumberHow many times it has been moved.
cancelled_atstring (ISO 8601)When it was cancelled.
cancel_reasonstringReason given on cancel.
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/appointments" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 7,
"calendar_id": 5,
"contact_id": 1234,
"start_at": "2026-11-03T00:00:00Z",
"title": "Intro call with Ann Lee",
"timezone": "Australia/Sydney"
}'{
"success": true,
"message": "Appointment booked",
"data": {
"id": 700,
"workspace_id": 7,
"calendar_id": 5,
"calendar": {
"id": 5,
"name": "Sales calls",
"color": "#3b82f6"
},
"contact_id": 1234,
"contact": {
"id": 1234,
"first_name": "Ann",
"last_name": "Lee",
"email": "ann@example.com",
"phone_number": "+61412345678",
"company_name": "Lee Studio"
},
"assignee_id": null,
"assignee": null,
"title": "Intro call with Ann Lee",
"description": null,
"start_at": "2026-11-03T00:00:00.000Z",
"end_at": "2026-11-03T00:30:00.000Z",
"timezone": "Australia/Sydney",
"status": "confirmed",
"source": "dashboard",
"location_text": null,
"meeting_link": "https://meet.example.com/abc",
"reschedule_count": 0,
"cancelled_at": null,
"cancel_reason": null,
"created_at": "2026-10-27T09:00:00.000Z",
"updated_at": "2026-10-27T09:00:00.000Z"
}
}« Contact's appointments
Update / reschedule appointment »
