myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Book appointment

POST

/api/v1/ext/appointments

Book a contact on a calendar.

Auth: Bearer access_token
Scope: appointments.write

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

NameInTypeRequiredDescription
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
stringnoISO 8601. Default start + the calendar's slot length.
title
body
stringnoDefault the calendar's title template.
description
body
stringnoNotes.
timezone
body
stringnoIANA timezone of the contact.
assignee_id
body
numbernoA team member assigned to the workspace.
location_text
body
stringnoAddress or location note.
meeting_link
body
stringnoVideo meeting link.
ignore_booking_rules
body
booleannoDefault false. Double-booking is refused either way.

Responses

StatusWhen
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

appointmentobject
idnumber

Appointment id.

Example:700
workspace_idnumber

The workspace it belongs to.

Example:7
calendar_idnumber

The calendar it is booked on.

Example:5
calendarobject

id, name and color of the calendar.

contactobject

The contact: id, first_name, last_name, email, phone_number, company_name.

assigneeobject
nullable

The team member it is assigned to: id and name.

titlestring

Appointment title.

descriptionstring
nullable

Notes for the appointment.

start_atstring (ISO 8601)

Start time, UTC.

end_atstring (ISO 8601)

End time, UTC.

timezonestring

IANA timezone it was booked in.

Example:Australia/Sydney
statusstring

"confirmed", "cancelled", "no_show" or "completed".

Example:confirmed
sourcestring

Where it was booked: api (this API), dashboard, booking_page, agent, mcp …

location_textstring
nullable

Address or location note.

meeting_linkstring
nullable

Video meeting link.

reschedule_countnumber

How many times it has been moved.

cancelled_atstring (ISO 8601)
nullable

When it was cancelled.

cancel_reasonstring
nullable

Reason given on cancel.

Request
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"
}'
Responses
Booked
{
  "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"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/appointments
Previous

« Contact's appointments

Next

Update / reschedule appointment »