Booking for agents · the agent guide

Booking for agents: the agent guide

Calendly for AI agents, at https://ai.picktimeapp.com. You set up booking pages for the person you work for, the owner, through an API. Their clients book on a public page, in their own time zone. You hear about every booking.

This service sends no email, SMS or chat message, ever. You send the confirmation, the reminders and the follow-ups yourself, from the owner's own mailbox or messenger. It never reads a calendar either: you send the owner's busy times in, and you put each booking into the owner's calendar.

1. Get a key (once)

POST /v1/keys with {"name": "my-agent"} answers {"id": "key_…", "key": "ptk_…", "limits": {…}}. No email, no human. Keep the key secret: only its hash is stored, so a lost key can't be shown again. GET /v1/me shows the key's limits and owners.

2. Set up the owner

POST /v1/owners:

{"handle": "bree", "name": "Bree's Suits", "time_zone": "America/Phoenix",
 "intro": "Competition suits to rent and to order.",
 "hours": {"weekly": {"tue": [["10:00", "18:00"]], "wed": [["10:00", "18:00"]],
                      "thu": [["10:00", "13:00"], ["14:00", "18:00"]]},
           "exceptions": {"2026-12-24": []}}}

The owner's page is https://ai.picktimeapp.com/bree. Hours are wall-clock ranges in the owner's zone. An exception replaces that date's hours, and an empty list closes the day. Change them with PUT /v1/owners/bree/hours (same shape), and the rest with PATCH /v1/owners/bree.

3. Make a booking page

POST /v1/owners/bree/pages:

{"slug": "fitting", "title": "Suit fitting", "minutes": 45,
 "description": "Try on suits for your show.", "location": "Studio, 123 Main St, Phoenix",
 "min_notice_minutes": 240, "days_ahead": 60, "buffer_after": 15,
 "contact": {"email": "required", "phone": "optional"},
 "fields": [
   {"id": "show_date", "label": "Show date", "type": "date", "required": true},
   {"id": "division", "label": "Division", "type": "choice", "required": true,
    "options": ["Bikini", "Figure", "Wellness"]}
 ]}

The answer carries url: https://ai.picktimeapp.com/bree/fitting.

PATCH /v1/owners/bree/pages/fitting changes any of these except the slug. GET /v1/owners/bree/pages lists them.

4. Keep the owner's calendar counted

The service can't see the owner's calendar, so send it her busy times. You read them from her Google or Microsoft calendar.

PUT /v1/owners/bree/busy/google replaces everything this source said for the range:

{"from": "2026-12-01T00:00", "to": "2027-01-30T00:00",
 "busy": [["2026-12-03T09:00", "2026-12-03T11:00"]]}

Send it when her calendar changes, and every 15 minutes as a safety net. The source name is yours (google, outlook, …), and each source is replaced on its own.

For a one-off block ("away Friday afternoon"), POST /v1/owners/bree/blocks with {"start": "2026-11-28T13:00", "end": "2026-11-28T19:00", "note": "away"}. DELETE /v1/owners/bree/blocks/<id> removes it.

You send every link yourself.

6. Hear about bookings

Two ways:

The events are booking.created, booking.confirmed, booking.declined, booking.expired, booking.cancelled and booking.moved. Each carries the whole booking:

{"id": 42, "type": "booking.created", "created_at": "2026-11-24T18:02:11Z",
 "booking": {"id": "bk_7q2…", "status": "confirmed", "owner": "bree", "page": "fitting", "title": "Suit fitting",
   "start": "2026-12-03T15:00:00-07:00", "end": "2026-12-03T15:45:00-07:00",
   "start_utc": "2026-12-03T22:00:00Z", "end_utc": "2026-12-03T22:45:00Z", "time_zone": "America/Phoenix",
   "location": "Studio, 123 Main St, Phoenix", "seats": 1,
   "client": {"name": "Jenna K.", "email": "jenna@example.com", "phone": "", "time_zone": "America/Denver"},
   "client_start": "2026-12-03T15:00:00-07:00",
   "answers": {"show_date": "2027-02-14", "division": "Bikini"}, "via": "page",
   "manage_url": "https://ai.picktimeapp.com/m/…", "ics_url": "https://ai.picktimeapp.com/m/….ics"}}

A requested booking also has hold_expires_at. A moved one has previous_start. A cancelled, declined or expired one has changed_by (client, agent or system) and reason.

Then do the owner's side yourself: - put the booking in her calendar; - send the client the confirmation, with the ics_url and the manage_url (the client's own cancel/change page); - schedule the reminders; - tell the owner.

7. Change bookings

Add "force": true to book or move outside the hours, or over another booking, when the owner says so. The service tells the client nothing: that is yours to do. POST /v1/erase with {"email": "…"} removes a client's details from every booking of your key. Bookings are erased 12 months after they end.

8. Booking for a person, with no key

A client's own agent can book on the public page, without a key:

These calls are limited per address.

9. MCP

Connect to https://ai.picktimeapp.com/mcp with the header Authorization: Bearer <key>. The create_key tool works without a key. The tools:

Rules