curl --request POST \
--url https://chat.trysetter.com/api/v1/bookings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bot_id": 700,
"phone": "+447813194799",
"start_time": "2026-05-25T14:00:00Z",
"end_time": "2026-05-25T15:00:00Z",
"time_zone": "Europe/London",
"source": "calendly",
"external_id": "calendly-invitee-abc"
}
'{
"id": 555,
"event_id": 999,
"bot_id": 700,
"contact_id": 42,
"source": "calendly",
"external_id": "calendly-invitee-abc",
"start_time": "2026-05-25T14:00:00.000Z",
"end_time": null,
"time_zone": "Europe/London",
"deduplicated": true
}API Reference
Create Booking
Record an externally-booked appointment so the bot stops asking the contact to book again
POST
/
api
/
v1
/
bookings
curl --request POST \
--url https://chat.trysetter.com/api/v1/bookings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bot_id": 700,
"phone": "+447813194799",
"start_time": "2026-05-25T14:00:00Z",
"end_time": "2026-05-25T15:00:00Z",
"time_zone": "Europe/London",
"source": "calendly",
"external_id": "calendly-invitee-abc"
}
'{
"id": 555,
"event_id": 999,
"bot_id": 700,
"contact_id": 42,
"source": "calendly",
"external_id": "calendly-invitee-abc",
"start_time": "2026-05-25T14:00:00.000Z",
"end_time": null,
"time_zone": "Europe/London",
"deduplicated": true
}Overview
This endpoint records an appointment that was booked outside of Setter (e.g. directly on your Calendly, a manual phone callback, or any other calendar tool). Once a booking is stored against a contact, the bot will see it on the next inbound message and will not ask the contact to book another appointment or send a booking link.Authentication: All requests require a Bearer token in the Authorization header.
Contact Identification
You must provide eitherphone or wa_id to locate the contact. The contact must already exist in Setter — bookings cannot create new contacts. Lookup order:
- Exact
wa_idmatch (ifwa_idis supplied) wa_idderived fromphone(E.164 minus the leading+)sms_phone_numbermatch (both with and without leading+)
phone and wa_id are provided, wa_id is tried first. Pass default_country (ISO 3166-1 alpha-2) to disambiguate national-format phone numbers.
Bot Scope
A booking is only visible to thebot_id it was filed against. A bot that runs on multiple channels (e.g. WhatsApp + SMS) sees the same booking on both channels, but a separate bot owned by the same organization will not. Find the bot_id in the dashboard URL.
Idempotency
Ifexternal_id is provided, the unique key (organization_id, source, external_id) makes retries safe. A re-POST with the same triple returns the existing booking with deduplicated: true and HTTP 200 instead of creating a duplicate.
Important Notes
- Authentication: All requests require a Bearer token in the Authorization header
- Phone Format: Accepted with or without leading
+and separators (parsed via libphonenumber) - Bot Visibility: Bookings are scoped to the
bot_idthey were filed against - Soft Cancellation: Use Cancel Booking to remove a booking from the bot’s context
- Time Zone: Pass an IANA
time_zone(e.g.Europe/London) for correct rendering in the bot’s context
Getting Your API Key
API keys can be generated from your Setter AI dashboard under Settings > API Keys. Keep your API key secure and never expose it in client-side code.Example Usage
Create by phone number
curl -X POST https://chat.trysetter.com/api/v1/bookings \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"bot_id": 700,
"phone": "+447813194799",
"start_time": "2026-05-25T14:00:00Z",
"end_time": "2026-05-25T15:00:00Z",
"time_zone": "Europe/London",
"source": "calendly",
"external_id": "calendly-invitee-abc"
}'
Create by WhatsApp ID
curl -X POST https://chat.trysetter.com/api/v1/bookings \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"bot_id": 700,
"wa_id": "447813194799",
"start_time": "2026-05-25T14:00:00Z",
"time_zone": "Europe/London",
"source": "manual"
}'
Body
application/json
Response
Idempotent replay — a booking with the same (organization_id, source, external_id) already existed and is returned with deduplicated: true.

