{"openapi":"3.1.0","info":{"title":"Booking for agents","description":"Calendly for AI agents. Set up booking pages for the person you work for (the owner); their clients\nbook on a public page in their own time zone; you hear about every booking (`GET /v1/events` or a webhook).\n**The service sends no email, SMS or chat message, and reads no calendar**: you send every message, and you send the\nowner's busy times with `PUT /v1/owners/{handle}/busy/{source}`.\n\nStart: `POST /v1/keys` (no auth) gives a key; send it as `Authorization: Bearer <key>`. Times are ISO 8601; a time\nwith no offset is read in the owner's time zone. Send an `Idempotency-Key` header with create calls.\nGuide: https://ai.picktimeapp.com/agents.md · MCP: https://ai.picktimeapp.com/mcp","version":"1.0.0"},"servers":[{"url":"https://ai.picktimeapp.com"}],"paths":{"/v1/keys":{"post":{"tags":["keys"],"summary":"Get an API key (no email, no human)","operationId":"create_key_v1_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me":{"get":{"tags":["keys"],"summary":"This key, its limits and its owners","operationId":"me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/owners":{"get":{"tags":["owners"],"summary":"List your owners","operationId":"list_owners_v1_owners_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["owners"],"summary":"Create an owner","operationId":"create_owner_v1_owners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}":{"get":{"tags":["owners"],"summary":"Get Owner","operationId":"get_owner_v1_owners__handle__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["owners"],"summary":"Patch Owner","operationId":"patch_owner_v1_owners__handle__patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["owners"],"summary":"Delete an owner; future bookings are cancelled first","operationId":"delete_owner_v1_owners__handle__delete","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/hours":{"put":{"tags":["owners"],"summary":"Set weekly hours and date exceptions","operationId":"put_hours_v1_owners__handle__hours_put","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hours"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["owners"],"summary":"Get Hours","operationId":"get_hours_v1_owners__handle__hours_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/pages":{"post":{"tags":["pages"],"summary":"Create a booking page","operationId":"create_page_v1_owners__handle__pages_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["pages"],"summary":"List Pages","operationId":"list_pages_v1_owners__handle__pages_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/pages/{slug}":{"get":{"tags":["pages"],"summary":"Get Page","operationId":"get_page_v1_owners__handle__pages__slug__get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pages"],"summary":"Patch Page","operationId":"patch_page_v1_owners__handle__pages__slug__patch","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pages"],"summary":"Delete a page; future bookings cancelled","operationId":"delete_page_v1_owners__handle__pages__slug__delete","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/pages/{slug}/slots":{"get":{"tags":["pages"],"summary":"Free times, grouped by day","operationId":"slots_v1_owners__handle__pages__slug__slots_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/blocks":{"post":{"tags":["busy times"],"summary":"Block a time","operationId":"add_block_v1_owners__handle__blocks_post","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["busy times"],"summary":"List Blocks","operationId":"list_blocks_v1_owners__handle__blocks_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/blocks/{block_id}":{"delete":{"tags":["busy times"],"summary":"Delete Block","operationId":"delete_block_v1_owners__handle__blocks__block_id__delete","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/busy/{source}":{"put":{"tags":["busy times"],"summary":"Replace one source's busy times (the owner's own calendar) for a range","operationId":"put_busy_v1_owners__handle__busy__source__put","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}},{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusyPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/owners/{handle}/busy":{"get":{"tags":["busy times"],"summary":"Get Busy","operationId":"get_busy_v1_owners__handle__busy_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","title":"Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links":{"post":{"tags":["links"],"summary":"A personal booking link for one client","operationId":"create_link_v1_links_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["links"],"summary":"List Links","operationId":"list_links_v1_links_get","parameters":[{"name":"owner","in":"query","required":true,"schema":{"type":"string","title":"Owner"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/links/{link_id}":{"delete":{"tags":["links"],"summary":"Stop a link from working","operationId":"revoke_link_v1_links__link_id__delete","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings":{"get":{"tags":["bookings"],"summary":"List Bookings","operationId":"list_bookings_v1_bookings_get","parameters":[{"name":"owner","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"changed_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["bookings"],"summary":"Book for the owner (a client who phoned)","operationId":"create_booking_v1_bookings_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}":{"get":{"tags":["bookings"],"summary":"Get Booking","operationId":"get_booking_v1_bookings__booking_id__get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}/ics":{"get":{"tags":["bookings"],"summary":"The booking as an .ics file","operationId":"booking_ics_v1_bookings__booking_id__ics_get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"audience","in":"query","required":false,"schema":{"type":"string","default":"client","title":"Audience"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}/cancel":{"post":{"tags":["bookings"],"summary":"Cancel","operationId":"cancel_v1_bookings__booking_id__cancel_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Reason"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}/move":{"post":{"tags":["bookings"],"summary":"Move","operationId":"move_v1_bookings__booking_id__move_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Move"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}/confirm":{"post":{"tags":["bookings"],"summary":"Confirm a requested booking","operationId":"confirm_v1_bookings__booking_id__confirm_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/bookings/{booking_id}/decline":{"post":{"tags":["bookings"],"summary":"Decline a requested booking","operationId":"decline_v1_bookings__booking_id__decline_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Reason"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/erase":{"post":{"tags":["bookings"],"summary":"Erase a client's details from every booking of this key","operationId":"erase_v1_erase_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Erase"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events":{"get":{"tags":["events"],"summary":"Events after a given id; waits up to `wait` seconds for one","operationId":"events_v1_events_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After"}},{"name":"wait","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":0,"default":0,"title":"Wait"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook":{"get":{"tags":["events"],"summary":"Get Webhook","operationId":"get_webhook_v1_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["events"],"summary":"Send every event to this URL, signed","operationId":"put_webhook_v1_webhook_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPut"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Delete Webhook","operationId":"delete_webhook_v1_webhook_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"BlockCreate":{"properties":{"start":{"type":"string","title":"Start","examples":["2026-11-28T13:00"]},"end":{"type":"string","title":"End","examples":["2026-11-28T19:00"]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["start","end"],"title":"BlockCreate"},"BookingCreate":{"properties":{"owner":{"type":"string","title":"Owner"},"page":{"type":"string","title":"Page"},"start":{"type":"string","title":"Start","description":"ISO 8601; with no offset it is the owner's time"},"client":{"$ref":"#/components/schemas/Client"},"answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Answers"},"seats":{"type":"integer","title":"Seats","default":1},"force":{"type":"boolean","title":"Force","description":"Book even outside the hours or over other bookings","default":false}},"additionalProperties":false,"type":"object","required":["owner","page","start","client"],"title":"BookingCreate"},"BusyPut":{"properties":{"from":{"type":"string","title":"From","description":"Start of the range this source covers"},"to":{"type":"string","title":"To"},"busy":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Busy","description":"Busy [start, end] pairs inside the range"}},"additionalProperties":false,"type":"object","required":["from","to","busy"],"title":"BusyPut"},"Client":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"}},"additionalProperties":false,"type":"object","required":["name"],"title":"Client"},"ContactRules":{"properties":{"email":{"type":"string","enum":["required","optional","off"],"title":"Email","default":"required"},"phone":{"type":"string","enum":["required","optional","off"],"title":"Phone","default":"optional"}},"additionalProperties":false,"type":"object","title":"ContactRules"},"Erase":{"properties":{"email":{"type":"string","title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"Erase"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Hours":{"properties":{"weekly":{"additionalProperties":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},"propertyNames":{"enum":["mon","tue","wed","thu","fri","sat","sun"]},"type":"object","title":"Weekly","description":"Wall-clock ranges in the owner's zone, like {\"mon\": [[\"09:00\", \"17:00\"]]}"},"exceptions":{"additionalProperties":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},"type":"object","title":"Exceptions","description":"Dates (YYYY-MM-DD) with other hours; an empty list closes the day"}},"additionalProperties":false,"type":"object","title":"Hours"},"KeyCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Your agent's name, for your own reference","examples":["my-assistant"]}},"additionalProperties":false,"type":"object","required":["name"],"title":"KeyCreate"},"LinkCreate":{"properties":{"owner":{"type":"string","title":"Owner"},"page":{"type":"string","title":"Page"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"single_use":{"type":"boolean","title":"Single Use","default":true},"expires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires","description":"A date (YYYY-MM-DD) or time when the link stops working"}},"additionalProperties":false,"type":"object","required":["owner","page"],"title":"LinkCreate"},"Move":{"properties":{"start":{"type":"string","title":"Start"},"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","required":["start"],"title":"Move"},"OwnerCreate":{"properties":{"handle":{"type":"string","title":"Handle","description":"The owner's address: https://ai.picktimeapp.com/<handle>","examples":["bree"]},"name":{"type":"string","title":"Name","description":"Shown on the owner's pages","examples":["Bree's Suits"]},"time_zone":{"type":"string","title":"Time Zone","description":"IANA time zone; hours are read in it","examples":["America/Phoenix"]},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro","description":"A sentence or two for the owner's page"},"hours":{"anyOf":[{"$ref":"#/components/schemas/Hours"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["handle","name","time_zone"],"title":"OwnerCreate"},"OwnerPatch":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"},"intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro"},"hours":{"anyOf":[{"$ref":"#/components/schemas/Hours"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"OwnerPatch"},"PageCreate":{"properties":{"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Text: an address, 'I will call you', a video link"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes","description":"Length of one booking"},"step_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step Minutes","description":"Gap between start times; defaults to minutes"},"buffer_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer Before"},"buffer_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer After"},"min_notice_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Notice Minutes","description":"No booking sooner than this from now (default 240)"},"days_ahead":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Ahead","description":"How far ahead it takes bookings (default 60)"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats","description":"Places per time; above 1 makes a group session"},"confirm":{"anyOf":[{"type":"string","enum":["auto","agent"]},{"type":"null"}],"title":"Confirm","description":"auto: final at once. agent: held as 'requested' until you confirm it"},"hold_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hold Minutes","description":"How long a requested booking holds its time (default 60)"},"cancel_cutoff_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cancel Cutoff Minutes","description":"Clients can't cancel or move later than this before the start (default 60)"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactRules"},{"type":"null"}]},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageField"},"type":"array"},{"type":"null"}],"title":"Fields"},"hours":{"anyOf":[{"$ref":"#/components/schemas/Hours"},{"type":"null"}],"description":"The page's own hours; null uses the owner's"},"listed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Listed","description":"Shown on the owner's page (true) or by link only"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active","description":"false switches the page off"},"slug":{"type":"string","title":"Slug","description":"https://ai.picktimeapp.com/<handle>/<slug>","examples":["fitting"]}},"additionalProperties":false,"type":"object","required":["title","slug"],"title":"PageCreate"},"PageField":{"properties":{"id":{"type":"string","title":"Id","description":"Key of the answer, like show_date"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","long_text","number","date","choice","choices","yes_no"],"title":"Type","default":"text"},"required":{"type":"boolean","title":"Required","default":false},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options","description":"For choice and choices"}},"additionalProperties":false,"type":"object","required":["id","label"],"title":"PageField"},"PagePatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Text: an address, 'I will call you', a video link"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes","description":"Length of one booking"},"step_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Step Minutes","description":"Gap between start times; defaults to minutes"},"buffer_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer Before"},"buffer_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer After"},"min_notice_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Notice Minutes","description":"No booking sooner than this from now (default 240)"},"days_ahead":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Ahead","description":"How far ahead it takes bookings (default 60)"},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats","description":"Places per time; above 1 makes a group session"},"confirm":{"anyOf":[{"type":"string","enum":["auto","agent"]},{"type":"null"}],"title":"Confirm","description":"auto: final at once. agent: held as 'requested' until you confirm it"},"hold_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Hold Minutes","description":"How long a requested booking holds its time (default 60)"},"cancel_cutoff_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cancel Cutoff Minutes","description":"Clients can't cancel or move later than this before the start (default 60)"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactRules"},{"type":"null"}]},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/PageField"},"type":"array"},{"type":"null"}],"title":"Fields"},"hours":{"anyOf":[{"$ref":"#/components/schemas/Hours"},{"type":"null"}],"description":"The page's own hours; null uses the owner's"},"listed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Listed","description":"Shown on the owner's page (true) or by link only"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active","description":"false switches the page off"}},"additionalProperties":false,"type":"object","title":"PagePatch"},"Reason":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"Reason"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookPut":{"properties":{"url":{"type":"string","title":"Url","description":"https only"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret","description":"Leave out to get one made for you"}},"additionalProperties":false,"type":"object","required":["url"],"title":"WebhookPut"}}}}