To text an invitee when they book on Calendly, subscribe a webhook to new bookings, verify its signature, pull out the invitee's name, phone number and start time, format that time in the invitee's own timezone, and call POST /v1/messages. The one condition: send only if the person agreed to texts. A booking by itself isn't that agreement.

We make Ready, so the send step uses only the request shape we document. Calendly's payload and signing details belong to Calendly. This post says what to look for and leaves exact field names to their webhook docs.

What you need from the booking

For a confirmation text you need three things, and only the first two come from the booking itself:

  • The invitee's name, for a friendly opener.
  • A phone number, if your Calendly event collects one. Calendly doesn't require one on every event type, so add a phone question and make it required.
  • The start time and the invitee's timezone, so the text says "3:30 PM" in a time they'll read correctly.

If your event doesn't collect a phone number, there's nothing to text. Don't go hunting for the number elsewhere and text it anyway.

The consent caveat

Someone who books a call hasn't necessarily agreed to texts. Add a checkbox question to the event, unticked by default, with wording that names your business, says what you'll text about (the booking) and that they can reply STOP. Only when that box is ticked do you set consent_attested to true. Ready doesn't keep a per-contact opt-in record, so store the booking and the checkbox answer on your side as your proof.

Our consent wording guide has phrasing that registration reviewers accept. This isn't legal advice; have your counsel look at the final wording.

The receiver

A small Flask receiver. It verifies the signature on the raw body, returns 200, and queues the work. Calendly sends its signature in a header with its own format, so treat signature_ok as the place to match their documented scheme.

import hashlib
import hmac
import json
import os

from flask import Flask, request

app = Flask(__name__)
SIGNING_KEY = os.environ["CALENDLY_SIGNING_KEY"].encode()


def signature_ok(raw: bytes, header: str) -> bool:
    if not header:
        return False
    expected = hmac.new(SIGNING_KEY, raw, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, header)


@app.post("/hooks/calendly")
def calendly():
    raw = request.get_data()
    if not signature_ok(raw, request.headers.get("Calendly-Webhook-Signature", "")):
        return "", 401
    event = json.loads(raw)
    queue_confirmation(event)
    return "", 200

The hex digest of the raw body is the simple case. Some senders sign a timestamp joined to the body, and put both in one header; if Calendly does, split the header, rebuild the signed string exactly as their docs describe, then compare. The rule that never changes: sign the bytes you received, compare in constant time, and reject on mismatch.

The worker

The worker reads the payload, checks the consent answer, formats the time and sends. The names below (invitee, start_time, timezone, the consent answer) are placeholders for whatever Calendly's webhook docs show for your event type, so check a real test delivery before you rely on them.

import os
from datetime import datetime
from zoneinfo import ZoneInfo

import requests


def send_confirmation(name: str, phone: str, start_iso: str, tz_name: str, event_id: str):
    start = datetime.fromisoformat(start_iso.replace("Z", "+00:00"))
    local = start.astimezone(ZoneInfo(tz_name))
    when = local.strftime("%A %B %d at %I:%M %p")

    res = requests.post(
        "https://api.tryready.com/v1/messages",
        headers={
            "X-API-Key": os.environ["READY_API_KEY"],
            "Idempotency-Key": f"calendly-confirm-{event_id}",
        },
        json={
            "to": phone,
            "body": f"Hi {name}, you're booked for {when}.",
            "consent_attested": True,
        },
        timeout=15,
    )
    if res.status_code == 429 or res.status_code >= 500:
        raise RuntimeError(f"retry {res.status_code}")
    return res

Call it only after you've confirmed the phone is present and the consent box was ticked. to is E.164, so normalize a number a user typed with spaces or brackets before sending. Unless the account turns it off, Ready adds "Reply STOP to opt out" and your business name to the first text to each contact, so you don't type it into the body. Keep the text plain ASCII where you can: an emoji drops the segment limit from 160 to 70 characters.

Timezone mistakes to avoid

  • Never format the time in your server's zone. A server in UTC would tell someone in Denver they're booked for 9 PM.
  • Store the IANA name (such as America/Denver), not a numeric offset. Offsets change with daylight saving.
  • Format the text in the invitee's zone and the calendar invite in whatever the invitee's calendar uses. They'll compare the two.
  • If the payload doesn't carry a timezone, say the zone name in the text, or skip the time and link to the booking page.

Retries, duplicates and night bookings

SituationWhat to do
Calendly redelivers the webhookKey the send on the booking's own id, so the repeat produces the same Idempotency-Key
429 or 5xx from the APIRetry with the same key, bounded attempts
Other 4xxLog it and stop; a bad number won't fix itself
409 QUIET_HOURS_BLOCKA time rule: send again once the window opens

Someone who books at 11 PM may trigger that last row. An API text is held only if the recipient's window opens within a few hours; otherwise it's refused with 409 QUIET_HOURS_BLOCK and you send it again once the window opens. The quiet hours 409 guide has the retry pattern. For a reminder before the call, POST /sms/schedule takes a send_at time; see the scheduled messages docs.

For the general shape of a confirmation message, see our appointment confirmation text examples.

FAQ

Does a Calendly booking count as consent to text?

Not by itself. Add a text-consent checkbox to the event and send only when it's ticked.

What if the invitee gave no phone number?

Then you don't text them. Make the phone question required on the event type if confirmations by text matter to you, and send an email confirmation either way.

Should the receiver send the text before returning 200?

No. Return 200 first and do the send from a queue or background task, so a slow call never makes Calendly redeliver.

The short version

Verify the signature on the raw body, require the phone and the consent box, format the time in the invitee's zone, and key the send to the booking. Every field is in the messages API docs, and you can open an account at tryready.com/signup.