Saybooked

Docs

From key to first booking

Base address https://saybooked.com. Every request carries your key: Authorization: Bearer sk_.... Bodies and answers are JSON.

Early access: trial keys (POST /v1/trial) and the test calendar work today. Sign-in and real calendars open soon.

Reserve a free API keyOpenAPI file

Saybooked is not open yet. We write to you once, when your key is ready.

Let an AI assistant do it

Paste this into Claude, ChatGPT, Cursor or any coding agent. POST /v1/trial gives it a key and a test calendar with no sign-up, and agents.md tells it the rest.

Read https://saybooked.com/agents.md and add appointment booking to my agent with Saybooked. Get a trial key from POST https://saybooked.com/v1/trial, build it, test it against the test calendar, then tell me the two things I must do by hand.

Quickstart

  1. Sign in with Google and create your key in the dashboard.
  2. List your calendars. You already have one sandbox calendar for testing: GET /v1/calendars.
  3. Ask for free time, then book, using the calendar id from step 2.
  4. When that works, create a connect link and open it yourself to link a real Google Calendar.
# 1. Make a link and send it to your client
curl -X POST https://saybooked.com/v1/connect-links \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" -d '{"external_id": "client-42"}'

# 2. Ask when they are free
curl "https://saybooked.com/v1/calendars/cal_123/availability?from=tomorrow&duration_minutes=30" \
  -H "Authorization: Bearer $KEY"

# 3. Book
curl -X POST https://saybooked.com/v1/bookings \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"calendar_id": "cal_123", "day": "friday", "time": "10am", "title": "Consultation",
       "attendee": {"name": "Ana Ruiz", "email": "ana@example.com"}}'
# -> "say": "You're booked for Friday 15 January at 10 AM. Your confirmation code is 4 8 2 9 1 3."

Connect a client's calendar

POST /v1/connect-links returns a url. Send it to your client by message or email. They open it, choose their Google account and approve two permissions: seeing when they are busy, and managing the appointments booked through you. They need no account with Saybooked.

Pass external_id to tag the calendar with your own client id, and redirect_url to bring the client back to your site; we add calendar_id and external_id to that address. Without it they see a short confirmation page. Poll GET /v1/connect-links/{id} to learn when the link was used. A link works once and expires after 7 days.

Free time

GET /v1/calendars/{id}/availability takes from, to, duration_minutes and limit. A day can be a date such as 2027-01-15 or plain words: today, tomorrow, friday, 27 october. A full ISO 8601 time without an offset is read in the calendar's own time zone. POST /v1/availability takes the same fields in a JSON body, where day is another name for from. The answer holds slots (each with its day and time in words), a summary, and today and now in the calendar's time zone.

Book, move, cancel

POST /v1/bookings needs calendar_id and a time. Send the time in the caller's words as day and time ("day": "friday", "time": "3pm"), or as an ISO 8601 start. Both are read in the calendar owner's time zone. Add weekday with the day name the caller said: when it does not match the date, nothing is booked.

Words are never guessed. “Next friday”, a bare “4” on a day that is open morning and afternoon, or a date written 10/27 come back as a 422 whose say field is a question for the caller. A bare hour such as “3” is read inside the calendar's opening hours when only one reading fits.

The slot is checked again before writing. After writing, the event is read back from the owner's calendar: verified is true when it was found there at the right time. The answer also carries a six-digit confirmation_code, the day and time in words, and say: a sentence for the caller. Send an Idempotency-Key header or an idempotency_key field to make a retry safe. If the guest has an email, Google sends them an invitation; set "notify": false to stop that. Voice tools can send attendee_name, attendee_email and attendee_phone as flat fields.

POST /v1/bookings/{id}/reschedule takes a new time in the same forms. POST /v1/bookings/{id}/cancel removes the event from the owner's calendar. In both, the id can be the confirmation code. POST /v1/bookings/find finds a caller's booking by code or phone. If the owner deletes or moves the event by hand, GET /v1/bookings/{id} shows the change.

Services, and callers without email

Give a calendar its list of services with PATCH /v1/calendars/{id}: {"rules": {"services": [{"name": "Haircut", "duration_minutes": 30}, {"name": "Colour", "duration_minutes": 120}]}}. Send service with the caller's word when asking for free time or booking. The service sets the length and the name of the appointment. A word that fits none of the services, or several, is refused, and say reads out the list.

No email is needed to book. Send attendee_name, and the caller's number as attendee_phone, caller_phone or an X-Caller-Phone header; when a platform sends the call along with the fields, we read the number for you. The answer carries text_message, a ready text with the day, time and code that your platform can send to the caller. When the caller rings back, POST /v1/bookings/find finds their coming bookings by that number or by the code. For reminder calls, GET /v1/bookings?calendar_id=...&from=tomorrow&to=tomorrow lists tomorrow's bookings.

What a call really did

Send your voice platform's id for the call with each request: an X-Call-Id header, a call_id field, or the platform's own wrapper. After the call, GET /v1/calls/{id} answers with booked true or false, the bookings, every failed attempt and a one-sentence verdict. An agent that told the caller “you're booked” without calling the booking tool shows up here as a call that never asked to book. We keep the call id, the action, the time and the result for 30 days, and no names, numbers or transcripts.

Booking rules

Each calendar has rules. Change any of them with PATCH /v1/calendars/{id}; the rest stay as they were.

{
  "rules": {
    "timezone": "Europe/Madrid",
    "hours": {
      "mon": [
        [
          "09:00",
          "13:00"
        ],
        [
          "15:00",
          "19:00"
        ]
      ],
      "sat": [
        [
          "10:00",
          "13:00"
        ]
      ]
    },
    "slot_minutes": 30,
    "step_minutes": 30,
    "buffer_minutes": 0,
    "min_notice_minutes": 60,
    "max_days_ahead": 60,
    "services": []
  }
}

Days left out of hours keep their current hours. An empty list closes a day.

Voice agents

Any platform that can call a web address from a tool works. On Retell AI, add two custom functions and set an Authorization header with your key on both:

  • check_availability: method GET, address https://saybooked.com/v1/calendars/cal_123/availability, query parameters from and duration_minutes.
  • book_appointment: method POST, address https://saybooked.com/v1/bookings, with these fields:
{
  "calendar_id": "cal_123",
  "day": "friday",
  "time": "3pm",
  "weekday": "friday",
  "title": "Consultation",
  "attendee_name": "Ana Ruiz",
  "attendee_phone": "+34 600 000 000"
}

If your platform wraps the fields in an args object, we unwrap them and read the call id from the wrapper. Tools that cannot send query parameters can use POST /v1/availability with the same fields in the body. On Vapi, use two API Request tools; the Vapi page lists the fields.

Add these lines to the agent's prompt:

Before you offer or book a time, call check_availability. Its answer tells you today's date.
To book, send the day and the time exactly as the caller said them. Also send the weekday if the caller named one.
If the tool answers with a question, ask the caller that question and try again.
Only say the appointment is booked after book_appointment returned a confirmation code. Read the code to the caller.

MCP connector

The connector lives at https://saybooked.com/mcp (Streamable HTTP) and offers the same actions as tools. It reads your key from the Authorization header.

claude mcp add --transport http saybooked https://saybooked.com/mcp \
  --header "Authorization: Bearer sk_..."

Files for agents: llms.txt, docs.md, pricing.md, openapi.json.

Reference

MethodPathWhat it does
POST/v1/trialNo key needed. Returns a trial key and a test calendar, so an AI assistant can build and test before a person signs up. The key lasts 7 days and cannot connect a real calendar.
GET/v1/calendarsList connected calendars. Every account also has one sandbox calendar for testing.
POST/v1/connect-linksMake a link that a calendar owner opens once to connect their Google Calendar.
Body: external_id (your own id for this client (optional)), redirect_url (where to send the owner afterwards (optional))
GET/v1/connect-links/{id}See whether a link was used, and the calendar id it produced.
GET/v1/calendars/{id}One calendar with its booking rules.
PATCH/v1/calendars/{id}Change booking rules: time zone, opening hours, slot length, buffer, notice.
Body: rules (object with any of: timezone, hours, slot_minutes, step_minutes, buffer_minutes, min_notice_minutes, max_days_ahead, services (a list of {name, duration_minutes}))
DELETE/v1/calendars/{id}Disconnect a calendar. The Google permission is withdrawn and stored tokens are erased.
GET/v1/calendars/{id}/availabilityFree slots. Query: from, to, duration_minutes, limit. A day can be a date or plain words: today, tomorrow, friday, 27 october. Each slot comes with its day and time in words, and the answer says today's date in the owner's time zone.
POST/v1/availabilityThe same free slots, for tools that send a JSON body.
Body: calendar_id (required), from (a date, a time, or words such as today, friday or 27 october), to (optional), service (optional: one of the calendar's services; its length is used), duration_minutes (optional), call_id (optional, the voice platform's id for this call)
POST/v1/bookingsBook a slot. Send the caller's own words in day and time, or an ISO time in start. The time is always read in the calendar owner's time zone. The slot is checked again just before writing, the new event is read back from the calendar, and the answer carries a six-digit confirmation code and a sentence to say. Words that can be read two ways are refused with a question for the caller.
Body: calendar_id (required), day (friday, tomorrow, 27 october or 2027-01-15 (with time)), time (3pm, 3:30 pm or 15:00 (with day)), start (ISO 8601, instead of day and time), weekday (optional: the day name the caller said; a booking is refused when it does not match the date), service (optional: one of the calendar's services; sets the length and the name, and a word that fits none is refused with the list), duration_minutes (optional, or send end), title (optional), attendee ({name, email, phone}, optional; no email is needed, and an email gets a calendar invitation), caller_phone (optional: the caller's number, kept as their phone when none is given), notes (optional), idempotency_key (optional, makes a retry safe), call_id (optional, the voice platform's id for this call)
GET/v1/bookingsList bookings. Query: calendar_id, from, to, status, limit, code, phone. from and to take a date or words, so from=tomorrow&to=tomorrow lists the bookings to remind.
POST/v1/bookings/findFind a caller's coming bookings by confirmation code or phone number. Without either, the caller's own number is used when the platform sends it.
Body: code (six-digit confirmation code), phone (the caller's phone number), calendar_id (optional)
GET/v1/bookings/{id}One booking by id or confirmation code, checked against the owner's calendar first.
POST/v1/bookings/{id}/rescheduleMove a booking to a new time, if that time is free. The id can be the confirmation code.
Body: day (with time), time (with day), start (ISO 8601, instead of day and time), weekday (optional check)
POST/v1/bookings/{id}/cancelCancel a booking and remove it from the owner's calendar. The id can be the confirmation code.
GET/v1/calls/{id}What one phone call really did: whether a booking was made, whether it was read back from the calendar, and every failed attempt. Use it after a call to check what the agent told the caller.
GET/v1/activityThe latest requests with their result. Query: call_id, calendar_id, limit.
GET/v1/usagePlan, connected calendars and the month's price.
GET/v1/accountYour account. PATCH with {name} sets the name shown to calendar owners.

Errors

Every error has the same shape: {"error": {"code": "...", "message": "..."}}.

StatusCodeMeaning
401missing_api_key, invalid_api_keySend a valid key in the Authorization header.
402free_limit_reachedThe free plan is full. Ask for the paid plan in the dashboard.
404calendar_not_found, booking_not_foundThe id or confirmation code does not belong to your account.
409slot_takenThe time is no longer free. The answer lists the next free times in alternatives.
409outside_hours, too_soon, too_farThe time breaks one of the calendar's rules.
409calendar_disconnectedThe owner withdrew access. Send them a new connect link.
422date_ambiguous, time_ambiguousThe words fit two readings, such as “next friday” or a bare “4” on a day open all hours. say holds the question to ask the caller.
422date_mismatchThe date and the weekday the caller said do not agree. Nothing was booked.
422service_not_found, service_ambiguousThe word does not match one service on the calendar. say reads out the list.
422date_not_understood, time_not_understoodThe day or time could not be read for certain. Nothing was guessed.
422date_in_pastThe time has passed. The message says today's date in the calendar's time zone.
422invalid_time, invalid_rules, ...A field is missing or malformed. The message says which.
429rate_limitedToo many requests in a minute. Wait and retry.
502calendar_unreachableGoogle did not answer. For a new booking we look for the event before answering: nothing was written. Retry.
502booking_outcome_unknownGoogle did not answer and the check failed too, so the event may or may not be on the calendar. Send the request again with the same Idempotency-Key: the event keeps one id, so a repeat cannot make a second one.
502booking_not_on_calendarThe event could not be found on the calendar after writing. No booking was recorded. Retry.

Limits

  • Google Calendar only, and the owner's main calendar only.
  • Day and time words are read in English.
  • 120 requests a minute per account.
  • At most 31 days of availability per request.
  • One booking per start time on a calendar.
  • Version 0.7.0. Breaking changes will get a new path.