{"openapi":"3.1.1","info":{"title":"HTTP API","version":"1","description":"The HTTP API at https://bookameet.ing, as described for agents at https://bookameet.ing/api.md. Every time is an ISO 8601 instant, and answers give times in UTC. A top-level body field a route does not list is refused with `invalid_input` that names it. An unknown key inside a nested object, such as an `invitee`, a question or a recurrence, is dropped, not refused. A known path called with a method it does not take answers 405, `#/components/responses/Error405`. Its `Allow` header names the methods it takes. Every answer carries `X-OpenAPI-Hash`, the hash of this document as served: a client that cached it fetches it again when that differs."},"servers":[{"url":"https://bookameet.ing"}],"paths":{"/api/v1/hosts/find":{"post":{"operationId":"findListedHosts","description":"Finds hosts listed on Discover by the start of a handle or of a word of a name: at most five. A client can search 30 times an hour.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","minLength":3,"maxLength":60,"description":"3 to 60 characters"}},"required":["query"],"additionalProperties":false},"example":{"query":"ada"}}}},"responses":{"200":{"description":"{ hosts: [{ handle: string, hostName: string, bio: string, eventTypes: [{ slug: string, path: string | null, title: string, durations: number[] (Minutes) }], moreEventTypes: number }], more: boolean }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindListedHostsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/links/{handle}":{"get":{"operationId":"getProfile","description":"A host’s public page: their public meeting types, as links.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ada"}],"responses":{"200":{"description":"{ handle: string, hostName: string, eventTypes: PublicEventType[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProfileAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/links/{handle}/{slug}":{"get":{"operationId":"getLink","description":"One link: its title, durations, time zone, the questions a booking must answer, and its price. The price is null when free, and add-ons the answers choose cost extra. It is read-only, set in the dashboard.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ada"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"intro"},{"name":"with","in":"query","required":false,"description":"a group link’s other handles, comma-separated","schema":{"description":"a group link’s other handles, comma-separated","type":"array","items":{"type":"string"}},"style":"form","explode":false}],"responses":{"200":{"description":"PublicEventType & { seriesStarts?: instant[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/links/{handle}/{slug}/times":{"get":{"operationId":"getAvailability","description":"The bookable times of one link. Book one of the returned slots’ `start`.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ada"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"intro"},{"name":"duration","in":"query","required":false,"description":"minutes: one of the link’s durations. Defaults to the first","schema":{"description":"minutes: one of the link’s durations. Defaults to the first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"example":"30"},{"name":"from","in":"query","required":false,"description":"start of the range. Defaults to now","schema":{"description":"start of the range. Defaults to now","type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","schema":{"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","type":"string","format":"date-time"}},{"name":"with","in":"query","required":false,"description":"a group link’s other handles, comma-separated","schema":{"description":"a group link’s other handles, comma-separated","type":"array","items":{"type":"string"}},"style":"form","explode":false}],"responses":{"200":{"description":"Availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/teams/{team}/links/{slug}":{"get":{"operationId":"getTeamLink","description":"One link of a team’s own, as `getLink` answers a host’s: its `hosts` are all at the meeting.","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"engines"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"panel"}],"responses":{"200":{"description":"PublicEventType & { seriesStarts?: instant[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/teams/{team}/links/{slug}/times":{"get":{"operationId":"getTeamAvailability","description":"The bookable times of one link of a team’s: those every host can make. Book one by its `start`, with `team` in place of `handle`.","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"engines"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"panel"},{"name":"duration","in":"query","required":false,"description":"minutes: one of the link’s durations. Defaults to the first","schema":{"description":"minutes: one of the link’s durations. Defaults to the first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"from","in":"query","required":false,"description":"start of the range. Defaults to now","schema":{"description":"start of the range. Defaults to now","type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","schema":{"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","type":"string","format":"date-time"}}],"responses":{"200":{"description":"Availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/availability":{"get":{"operationId":"getMyAvailability","description":"The bookable times of one of the host’s meeting types, public or not.","parameters":[{"name":"duration","in":"query","required":false,"description":"minutes: one of the link’s durations. Defaults to the first","schema":{"description":"minutes: one of the link’s durations. Defaults to the first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"from","in":"query","required":false,"description":"start of the range. Defaults to now","schema":{"description":"start of the range. Defaults to now","type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","schema":{"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","type":"string","format":"date-time"}},{"name":"eventTypeId","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/availability/fit":{"post":{"operationId":"fitOfferedTimes","description":"Which of the windows someone offered you, you can meet in by your own rules. These are a meeting type’s rules when `eventTypeId` is given, else your default hours and your limits across all types. Holds, books and stores nothing.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"eventTypeId":{"description":"one of your meeting types. Without it, your default schedule and limits across all types decide","type":"string"},"durationMinutes":{"description":"the meeting’s length: one of the type’s, default its first. With no type, any length, default 30","type":"integer","exclusiveMinimum":0,"maximum":1440},"windows":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"timeZone":{"type":"string"}},"required":["start","end","timeZone"]},"description":"each { start, end, timeZone: the IANA zone the offer was written in }, at least the meeting’s length and at most 24 hours, all within 14 days of the earliest start"}},"required":["windows"],"additionalProperties":false},"example":{"windows":[{"start":"2026-12-03T17:00:00Z","end":"2026-12-03T19:00:00Z","timeZone":"America/Los_Angeles"},{"start":"2026-12-04T16:00:00Z","end":"2026-12-04T17:00:00Z","timeZone":"America/Los_Angeles"}]}}}},"responses":{"200":{"description":"{ hostTimeZone: string, windows: [{ start: instant, end: instant, local: { host: { … }, given: { … } }, fits: boolean, bestStart: instant | null, bestStartLocal: { host: instant (The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window.), given: instant (The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window.) } | null, longestMinutes: number | null, reasons: [{ code: \"buffer\" | \"booked\" | \"outside_hours\" | \"outside_restriction\" | \"not_on_grid\" | \"min_notice\" | \"beyond_window\" | \"outside_date_range\" | \"away\" | \"calendar_busy\" | \"limit_count\" | \"limit_minutes\" | \"host_limit_count\" | \"host_limit_minutes\" | \"not_first_slot\" | \"day_not_offered\", period?: \"day\" | \"week\" | \"month\", blockedBy?: { … } }] }], liveCheck: \"complete\" | \"incomplete\" }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitOfferedTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/free-times":{"post":{"operationId":"getMyFreeTimes","description":"Your own free time, by your default hours and your calendar as last synced, with no meeting type’s rules. It gives free, as merged spans whole up to through, and a few starts in it to offer. It never says what keeps the rest busy. Holds, books and stores nothing.","requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"from":{"description":"defaults to now","type":"string","format":"date-time"},"to":{"description":"defaults to from + 7 days, at most 62 days after from","type":"string","format":"date-time"},"durationMinutes":{"default":30,"description":"the meeting’s length, 5 to 720, default 30: every span holds it","type":"integer","minimum":5,"maximum":720},"timeZone":{"description":"the IANA zone whose half hours and days the starts go by. Defaults to your schedule’s","type":"string"},"dayHours":{"description":"these hours of every day, in minutes after midnight on the half hour, in place of your working hours. Days away stay closed","type":"object","properties":{"startMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30},"endMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30}},"required":["startMinute","endMinute"]},"taken":{"description":"starts already chosen: no start answered is within an hour, or the length, of one","maxItems":100,"type":"array","items":{"type":"string","format":"date-time"},"default":[]},"limit":{"default":10,"description":"how many starts, 1 to 100, default 10","type":"integer","minimum":1,"maximum":100}},"additionalProperties":false},"example":{"durationMinutes":45,"timeZone":"America/Los_Angeles"}}}},"responses":{"200":{"description":"{ timeZone: string, durationMinutes: number, hours: \"working\" | \"given\", free: [{ start: instant, end: instant }], through: instant, starts: instant[], startsLeft: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMyFreeTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/away":{"get":{"operationId":"listAway","description":"The host’s time away and public holidays that have not ended, by start date. A dismissed holiday is left out.","responses":{"200":{"description":"[{ id: string, startDate: string, endDate: string, source: \"manual\" | \"holiday\", note: string | null, setBy: { name: string } | null (The admin of their team who set it for them. Null for their own and for a holiday) }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAwayAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536},"post":{"operationId":"addAway","description":"Marks the host away from startDate to endDate, both included: those dates offer no time.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD, on or after startDate"},"note":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["startDate","endDate"],"additionalProperties":false},"example":{"startDate":"2026-12-21","endDate":"2026-12-31","note":"Winter break"}}}},"responses":{"201":{"description":"{ id: string, startDate: string, endDate: string, source: \"manual\" | \"holiday\", note: string | null, setBy: { name: string } | null (The admin of their team who set it for them. Null for their own and for a holiday), upcomingBooked: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAwayAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/me/away/{id}":{"delete":{"operationId":"removeAway","description":"Removes a span of time away. A holiday is dismissed, so the yearly refresh never adds it back.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"AWAY_SPAN_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/me/holidays":{"get":{"operationId":"listHolidayCountries","description":"The countries whose public holidays the host can take off, and their choice. chosen.knownThrough is the last year its holidays are stored for. If it is below next year, the last refresh did not reach it. chosen.worked lists the holidays of that country the host dismissed that have not ended.","responses":{"200":{"description":"{ countries: [{ code: string, name: string }], chosen: { countryCode: string, subdivision: string | null, knownThrough: number | null, worked: [{ id: string, startDate: string, endDate: string, source: \"manual\" | \"holiday\", note: string | null, setBy: { … } | null (The admin of their team who set it for them. Null for their own and for a holiday) }] } | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListHolidayCountriesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536},"put":{"operationId":"setHolidayCountry","description":"Chooses the country whose public holidays close the host’s dates, or none with countryCode null. Its nationwide holidays close them, and one region’s too when subdivision is given. With no subdivision, the stored region stays for the same country. Null is nationwide only.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"countryCode":{"description":"a two-letter country code, like DE. Null for none","type":["string","null"]},"subdivision":{"description":"an ISO 3166-2 region of countryCode, like DE-BY, for its own holidays too. Needs a countryCode","type":["string","null"]}},"required":["countryCode"],"additionalProperties":false},"example":{"countryCode":"DE","subdivision":"DE-BY"}}}},"responses":{"200":{"description":"{ countryCode: string, subdivision: string | null } | null","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetHolidayCountryAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/me/holidays/{countryCode}/regions":{"get":{"operationId":"listHolidaySubdivisions","description":"The regions of a country whose own public holidays the host can add, each its ISO 3166-2 code and English name, by name. [] when every holiday is nationwide.","parameters":[{"name":"countryCode","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"DE"}],"responses":{"200":{"description":"{ countryCode: string, subdivisions: [{ code: string, name: string }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListHolidaySubdivisionsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/availability/explain":{"get":{"operationId":"explainTime","description":"Why one of the host’s meeting types does or does not offer a time. It gives offered, and each rule in the way, as reasons: { code, period?, blockedBy? }.","parameters":[{"name":"eventTypeId","in":"query","required":true,"schema":{"type":"string"},"example":"EVENT_TYPE_ID"},{"name":"start","in":"query","required":true,"description":"the start to explain","schema":{"description":"the start to explain","type":"string","format":"date-time"},"example":"2026-12-03T10:00:00Z"},{"name":"end","in":"query","required":false,"description":"explain the starts from start to here instead, at most 25 hours on: offered when one is, reasons those of the rest","schema":{"description":"explain the starts from start to here instead, at most 25 hours on: offered when one is, reasons those of the rest","type":"string","format":"date-time"}},{"name":"duration","in":"query","required":false,"description":"minutes: one of the type’s lengths. Defaults to the first","schema":{"description":"minutes: one of the type’s lengths. Defaults to the first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"{ offered: boolean, reasons: [{ code: \"buffer\" | \"booked\" | \"outside_hours\" | \"outside_restriction\" | \"not_on_grid\" | \"min_notice\" | \"beyond_window\" | \"outside_date_range\" | \"away\" | \"calendar_busy\" | \"limit_count\" | \"limit_minutes\" | \"host_limit_count\" | \"host_limit_minutes\" | \"not_first_slot\" | \"day_not_offered\", period?: \"day\" | \"week\" | \"month\", blockedBy?: { start: instant, end: instant } }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainTimeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/email-times":{"get":{"operationId":"emailTimes","description":"The first times one of the host’s meeting types offers, ready to paste into an email. It gives html and text, in the reader’s timeZone, and each time links to its own booking page.","parameters":[{"name":"eventTypeId","in":"query","required":true,"schema":{"type":"string"},"example":"EVENT_TYPE_ID"},{"name":"timeZone","in":"query","required":true,"description":"IANA time zone the times are shown in","schema":{"type":"string","description":"IANA time zone the times are shown in"},"example":"America/New_York"},{"name":"from","in":"query","required":false,"description":"defaults to now","schema":{"description":"defaults to now","type":"string","format":"date-time"}},{"name":"days","in":"query","required":false,"description":"default 7","schema":{"description":"default 7","type":"integer","minimum":1,"maximum":14}},{"name":"max","in":"query","required":false,"description":"default 6","schema":{"description":"default 6","type":"integer","minimum":1,"maximum":12}}],"responses":{"200":{"description":"{ html: string, text: string, slots: [{ start: instant, url: string }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536}},"/api/v1/me/holidays/worked/{id}/restore":{"post":{"operationId":"restoreHoliday","description":"Closes again a public holiday the host dismissed, one of chosen.worked in GET /api/v1/me/holidays. Its date offers no time from now on. Bookings already made on it stay.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"AWAY_SPAN_ID"}],"responses":{"200":{"description":"{ id: string, startDate: string, endDate: string, source: \"manual\" | \"holiday\", note: string | null, setBy: { name: string } | null (The admin of their team who set it for them. Null for their own and for a holiday) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreHolidayAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/bookings":{"post":{"operationId":"createBooking","description":"Books a time. Answers 201 with the booking. Keep its `manageUrl` to move or cancel it. A priced meeting type, with a `price` that is not null in `getLink`, or a one-off link with a price is booked unpaid. The answer is 201 with `status: pending_payment`, `payment` with its amount, `pendingUntil` when the held time lapses unpaid, and `checkoutUrl` while its checkout is open. The person who books pays there. The booking is `confirmed` once the payment arrives, and is released at `pendingUntil` if it does not. The amount is the price plus any add-on the answers choose, and `quoteBooking` totals it before the booking. A priced type paid by invoice is refused with 409 `conflict`, and so is any priced booking on a server that takes no payments. Nothing is held. A free booking has no `checkoutUrl`. With `packageToken`, the booking spends one of that package purchase’s sessions, one for each occurrence of a series, and is confirmed with nothing to pay. A purchase with none left is 403 `forbidden`, `package_used_up`. One for another meeting type is 403 `package_not_for_this`. A package pays for the session alone, so an answer that chooses a priced add-on is 400 `invalid_input` on that answer. `quoteBooking` lists them in `notWithCredits`.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"description":"the host’s handle. Or `team`, never both","type":"string"},"with":{"description":"a group link: the handles of its other hosts, beside `handle`","type":"array","items":{"type":"string"}},"team":{"description":"in place of `handle`: the team’s address, for one of its own links","type":"string"},"slug":{"type":"string"},"start":{"description":"a slot’s start from the times route","type":"string","format":"date-time"},"durationMinutes":{"description":"defaults to the link’s first duration","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"invitee":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"],"description":"who books: their name, their email, where the confirmation goes, and their IANA time zone, for example America/New_York"},"guests":{"description":"up to 10 more attendee emails, none the same as `invitee.email` or another guest’s","maxItems":10,"type":"array","items":{"type":"string"},"default":[]},"answers":{"default":{},"description":"question id to answer, every required one. A choice is an option’s text or id, from `optionIds`, or a list of them","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","maxLength":2000}}]}},"oneOffLinkId":{"description":"when booking a one-off link: its id","type":"string"},"attemptKey":{"description":"22 to 64 of A-Z a-z 0-9 _ -, random and unguessable. New for each attempt, and the same on its retries, with the same `invitee`, start and duration. A retry answers the booking already made","type":"string","pattern":"^[A-Za-z0-9_-]{22,64}$"},"verificationCode":{"description":"the code emailed by the email-code route, when the meeting type asks bookers to confirm their email","type":"string","pattern":"^\\d{6}$"},"locale":{"description":"the language of the booking’s emails, English by default","type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"utm":{"description":"the link’s tracking values, each at most 200 characters, kept with the booking for the host","type":"object","properties":{"source":{"type":"string","maxLength":200},"medium":{"type":"string","maxLength":200},"campaign":{"type":"string","maxLength":200},"term":{"type":"string","maxLength":200},"content":{"type":"string","maxLength":200}},"additionalProperties":false},"locationIndex":{"description":"which of the meeting type’s places, from 0. Needed when it offers more than one","type":"integer","minimum":0,"maximum":9007199254740991},"inviteePhone":{"description":"the phone number of the person who books, at most 50 characters, for a phone meeting where the host calls them, and only then","type":"string","maxLength":50},"recurringCount":{"description":"books this many occurrences from start, on a meeting type that repeats: every one or none","type":"integer","minimum":2,"maximum":12},"packageToken":{"description":"a package purchase’s token, the end of its /pkg link: books with one of its sessions, and pays nothing","type":"string","minLength":1,"maxLength":200}},"required":["slug","start","invitee"],"additionalProperties":false},"example":{"handle":"ada","slug":"intro","start":"2026-12-03T10:00:00Z","invitee":{"name":"Grace Hopper","email":"grace@example.com","timeZone":"America/New_York"}}}}},"responses":{"201":{"description":"NewBooking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBooking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/bookings/{manageToken}":{"get":{"operationId":"getBooking","description":"A booking, by the token in its manage URL.","parameters":[{"name":"manageToken","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGE_TOKEN"}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/bookings/{manageToken}/reschedule":{"post":{"operationId":"rescheduleBooking","description":"Moves a booking to a new start, and keeps its length. Pick the start from the times route. A host’s own key acts as the host, and needs `charge_fees` for a paid booking, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"manageToken","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGE_TOKEN"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"description":"the new start","type":"string","format":"date-time"}},"required":["start"],"additionalProperties":false},"example":{"start":"2026-12-04T10:00:00Z"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/bookings/{manageToken}/cancel":{"post":{"operationId":"cancelBooking","description":"Cancels a booking. The body can be empty. A paid booking is refunded, less the host’s late-cancellation fee inside the cut-off of `cancelPolicy`. A booking that saved a card for that fee is charged it. The person who booked is emailed what was refunded or charged. A host’s own key acts as the host, and needs `charge_fees` for a paid booking, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"manageToken","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGE_TOKEN"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"told to both sides","type":"string"}},"additionalProperties":false},"example":{"reason":"Something came up"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/bookings":{"get":{"operationId":"listBookings","description":"The bookings the host hosts, a page at a time, by start time: earliest first, or latest first with order=desc. With sort=created, by when each was made. Each has the answers of the person that the booking is for to the meeting type's questions. With `id`, only that booking, or an empty page when it is not one of the host's. sort=created with order=desc lists new bookings first, whatever their start: what a \"new booking\" trigger polls.","parameters":[{"name":"id","in":"query","required":false,"description":"one booking, by its id","schema":{"description":"one booking, by its id","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"q","in":"query","required":false,"description":"Only bookings whose person, a guest or a seat has this text in their name or email","schema":{"description":"Only bookings whose person, a guest or a seat has this text in their name or email","type":"string","maxLength":200}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]}},{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page, with the same filters, order and sort","schema":{"description":"nextCursor from the previous page, with the same filters, order and sort","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"order","in":"query","required":false,"schema":{"default":"asc","type":"string","enum":["asc","desc"]}},{"name":"sort","in":"query","required":false,"description":"start, the default: by start time. created: by when each booking was made","schema":{"default":"start","description":"start, the default: by start time. created: by when each booking was made","type":"string","enum":["start","created"]}}],"responses":{"200":{"description":"{ bookings: HostBooking[], nextCursor: string | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBookingsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_bookings","x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/reschedule":{"post":{"operationId":"rescheduleHostedBooking","description":"Moves a booking the host hosts to a new start, as the host, and keeps its length. Both sides are emailed the new time. A key needs `charge_fees` to move a paid booking, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"description":"the new start","type":"string","format":"date-time"}},"required":["start"],"additionalProperties":false},"example":{"start":"2026-12-04T10:00:00Z"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"move_bookings","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/cancel":{"post":{"operationId":"cancelHostedBooking","description":"Cancels a booking the host hosts, as the host. The body can be empty. A paid booking is refunded in full, and the person who booked is emailed the refund. A key needs `charge_fees` for one, else 403 `forbidden`, `not_allowed_by_host`. With `scope: this_and_following` on a date of a series, it cancels that date and every later date still to come. Each side gets one email that lists them. On a booking with no series, that scope is 400 `invalid_input`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"told to both sides","type":"string"},"scope":{"default":"this","description":"this, the default, or this_and_following: this date of a series and every later one","type":"string","enum":["this","this_and_following"]}},"additionalProperties":false},"example":{"reason":"Something came up"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"move_bookings","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/approve":{"post":{"operationId":"approveBooking","description":"Approves a request to book the host: it is confirmed, gets its calendar event, and both sides are emailed the confirmation. A series is approved whole. The body can be empty. A paid request, with a held card, is charged first, and the answer says the result. `confirmed`: it was charged. `pending_approval` with `toFollow` holding `payment`: the charge still settles. Its settlement confirms or declines it, so a second approve changes nothing. `declined` with `payment.failure`, Stripe's code: the charge failed for good, and the hold is released. A key needs `charge_on_approval` for a paid request, and also `move_bookings`, as `x-capability-checked` says. A charge that changed nothing is refused. That is 502 `provider_error` with `detail.reason` `stripe_needs_reconnecting` or `stripe_refused` and `detail.failure`. Or it is 503 `busy` with `detail.reason` `capture_unanswered`: try again after `Retry-After`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"move_bookings","x-capability-checked":["charge_on_approval"],"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/decline":{"post":{"operationId":"declineBooking","description":"Declines a request to book the host: its time is free at once and the person who asked is emailed, with the reason if given.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"at most 2000 characters, told to the other side","type":"string"}},"additionalProperties":false},"example":{"reason":"I am away that week"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"move_bookings","x-max-body-bytes":65536}},"/api/v1/approvals/{token}":{"get":{"operationId":"getApprovalRequest","description":"What an approve or decline link from the host’s request email names, and where the request stands. Changes nothing.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"APPROVAL_TOKEN"}],"responses":{"200":{"description":"{ action: \"approve\" | \"decline\", eventTitle: string, start: instant, end: instant, hostName: string, hostTimeZone: string, hostLocale: \"en\" | \"es\" | \"fr\" | \"de\" | \"pt-BR\" | \"it\" | \"nl\" | \"ja\", seriesDates?: instant[], state: \"cancelled\" | \"declined\" | \"approved\" | \"lapsed\" | \"settling\" (settling: approved, its charge still settling, so nothing to approve) } | { action: \"approve\" | \"decline\", eventTitle: string, start: instant, end: instant, hostName: string, hostTimeZone: string, hostLocale: \"en\" | \"es\" | \"fr\" | \"de\" | \"pt-BR\" | \"it\" | \"nl\" | \"ja\", seriesDates?: instant[], state: \"waiting\", invitee: { name: string, email: string }, answers: BookingAnswer[], pendingUntil: instant, charge?: Money (What approving takes from the card held since the person asked. Absent with no hold) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetApprovalRequestAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536},"post":{"operationId":"actOnApprovalToken","description":"Takes the action that an approve or decline link from the host’s request email carries, as the host. A second press changes nothing: 409. Approving a paid request answers as `approveBooking` does: `confirmed`, `pending_approval` with `toFollow` holding `payment` while its charge settles, or `declined` with `payment.failure`. A charge that changed nothing is refused the same way: 502 `provider_error` or 503 `busy`.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"APPROVAL_TOKEN"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/no-show":{"post":{"operationId":"markNoShow","description":"Marks who did not come to a started meeting: the person that the booking is for, or with `attendeeId` one seat of a group meeting. The host’s no-show workflows and webhooks run, and the workflows can email them. If the person who booked saved a card for the type’s no-show fee, the booking’s `noShowFee` is charged to it. They are emailed the charge. A key needs `charge_fees` for a mark that charges, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"attendeeId":{"description":"a seat’s attendeeId from the seats route. Needed for a group meeting","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"mark_no_shows","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/reschedule-request":{"post":{"operationId":"requestReschedule","description":"Asks the person that the booking is for to pick a new time. The booking is cancelled as the host’s, and that person, or each seat holder, is emailed a link to book again. A paid booking is refunded in full, and the person who booked is emailed the refund. A key needs `charge_fees` for one, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"at most 2000 characters, told to the other side","type":"string"}},"additionalProperties":false},"example":{"reason":"Something came up"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"request_reschedules","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/seats":{"get":{"operationId":"listSeats","description":"A group meeting’s guest list: every seat in the order taken, cancelled ones too, each with its answers. Empty for a booking without seats.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"responses":{"200":{"description":"Seat[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSeatsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_bookings","x-max-body-bytes":65536}},"/api/v1/series/{manageToken}":{"get":{"operationId":"getSeries","description":"Every occurrence of the recurring booking an occurrence’s manage link belongs to, in start order, cancelled ones too.","parameters":[{"name":"manageToken","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGE_TOKEN"}],"responses":{"200":{"description":"Occurrence[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSeriesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/series/{manageToken}/cancel":{"post":{"operationId":"cancelSeries","description":"Cancels this occurrence with `this`, or it and every later one with `this_and_following`. Both sides get one email that lists the dates. Answers the series. A host’s own key acts as the host, and needs `charge_fees` for a paid booking, else 403 `forbidden`, `not_allowed_by_host`.","parameters":[{"name":"manageToken","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGE_TOKEN"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["this","this_and_following"],"description":"this occurrence, or this and every later one"},"reason":{"description":"at most 2000 characters, told to the other side","type":"string"}},"required":["scope"],"additionalProperties":false},"example":{"scope":"this_and_following"}}}},"responses":{"200":{"description":"Occurrence[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSeriesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/seats":{"get":{"operationId":"listSeatsOf","description":"The guest lists of many of the host’s bookings at once, in the order asked. Each is as `GET /api/v1/me/bookings/{id}/seats` answers one. A booking the host does not host is left out. One whose stored answers cannot be read has `unreadable`, which says why, in place of `seats`.","parameters":[{"name":"bookingIds","in":"query","required":true,"description":"comma-separated booking ids, at most 100","schema":{"description":"comma-separated booking ids, at most 100","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"style":"form","explode":false,"example":"BOOKING_ID"}],"responses":{"200":{"description":"({ bookingId: string, seats: Seat[] } | { bookingId: string, unreadable: string })[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSeatsOfAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_bookings","x-max-body-bytes":65536}},"/api/v1/me/series":{"get":{"operationId":"listSeriesOf","description":"Many of the host’s recurring bookings at once, by a booking’s `seriesId`, in the order asked: every occurrence in start order, cancelled ones too. A series the host does not host is left out.","parameters":[{"name":"seriesIds","in":"query","required":true,"description":"comma-separated series ids, as a booking’s seriesId, at most 100","schema":{"description":"comma-separated series ids, as a booking’s seriesId, at most 100","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"style":"form","explode":false,"example":"SERIES_ID"}],"responses":{"200":{"description":"[{ seriesId: string, occurrences: Occurrence[] }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSeriesOfAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_bookings","x-max-body-bytes":65536}},"/api/v1/me/booking-payments":{"get":{"operationId":"listPaymentsOf","description":"The payments of many of the host’s bookings at once, in the order asked. For each booking: its own, its seats’, its fees’, its invoices’ and its series’, oldest first. Each has what was asked, paid and refunded, Stripe’s code for any failure, and the refunds made. A booking the host does not host is left out.","parameters":[{"name":"bookingIds","in":"query","required":true,"description":"comma-separated booking ids, at most 100","schema":{"description":"comma-separated booking ids, at most 100","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"style":"form","explode":false,"example":"BOOKING_ID"}],"responses":{"200":{"description":"[{ bookingId: string, payments: [{ kind: \"booking\" | \"seat\" | \"series\" | \"setup\" | \"no_show_fee\" | \"late_cancel_fee\" | \"invoice\", status: \"pending\" | \"authorized\" | \"paid\" | \"released\" | \"refunded\" | \"failed\" | \"expired\" | \"voided\", amount: Money, paid: Money | null (What Stripe took. Null until Stripe takes money), refunded: Money, failure: string | null (The code that Stripe gave for the failure. Null with no failure), attendeeId: string | null (A seat’s payment: whose seat), refunds: [{ amount: Money | null (null: all that was left), state: \"in_progress\" | \"refunded\" | \"failed\", atStripe: boolean (In progress and accepted by Stripe, where it is pending. So refunded counts it), failure: string | null }] }] }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPaymentsOfAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_bookings","x-max-body-bytes":65536}},"/api/v1/one-off/{id}":{"get":{"operationId":"getOneOffLink","description":"A one-off link, by the id in /o/{id}, and the times it still offers. Book one with POST /api/v1/bookings: `link.handle`, `link.slug` and `oneOffLinkId`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ONE_OFF_ID"}],"responses":{"200":{"description":"{ link: PublicEventType, durationMinutes: number, slots: [{ start: instant, end: instant }], state: \"closed\" | \"expired\" | \"open\" | \"used\", generatedAt: instant, available: boolean, unavailableReason?: \"calendar_disconnected\" }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOneOffLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/one-off-links":{"get":{"operationId":"listOneOffLinks","description":"The host’s one-off links, newest first, with the times each was made with, and if it is open, used, closed or expired.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"[{ id: string, url: string, eventTypeId: string, eventTitle: string, durationMinutes: number, times: [{ start: instant, end: instant }], expiresAt: instant | null, closedAt: instant | null, state: \"closed\" | \"expired\" | \"open\" | \"used\", label: string | null, createdAt: instant, price: Money | null (The own price of a payment link, charged instead of the price and add-ons of the meeting type. Null for the price of the type) }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOneOffLinksAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_one_off_links","x-max-body-bytes":65536},"post":{"operationId":"createOneOffLink","description":"Creates a one-off link that offers a few hand-picked times. With `price`, it is a payment link. The person who books pays that price, in place of the meeting type’s price and add-ons, on the host’s Stripe account. That account must be connected, and the price is in its currency.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"eventTypeId":{"type":"string"},"starts":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","format":"date-time"},"description":"the times offered, none repeated"},"durationMinutes":{"description":"one of the meeting type’s lengths. Defaults to its first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"expiresAt":{"description":"after it, the link offers nothing","type":"string","format":"date-time"},"price":{"description":"{ amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD)","type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},"label":{"description":"your own name for it, never shown to the person who books","type":"string","minLength":1,"maxLength":100}},"required":["eventTypeId","starts"],"additionalProperties":false},"example":{"eventTypeId":"EVENT_TYPE_ID","starts":["2026-12-03T15:00:00Z","2026-12-04T15:00:00Z"],"durationMinutes":30}}}},"responses":{"200":{"description":"{ id: string, url: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOneOffLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"make_one_off_links","x-max-body-bytes":65536}},"/api/v1/me/one-off-links/{id}/close":{"post":{"operationId":"closeOneOffLink","description":"Closes a one-off link: it offers no time from now on. Again changes nothing. A booking made with it stays.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ONE_OFF_LINK_ID"}],"responses":{"200":{"description":"{ id: string, state: \"closed\" | \"expired\" | \"open\" | \"used\", closedAt: instant }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseOneOffLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"make_one_off_links","x-max-body-bytes":65536}},"/api/v1/me/event-types":{"get":{"operationId":"listEventTypes","description":"The host’s meeting types.","responses":{"200":{"description":"EventType[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEventTypesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_meeting_types","x-max-body-bytes":65536},"post":{"operationId":"createEventType","description":"Creates a meeting type.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,48}[a-z0-9]$"},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440},"description":"minutes, distinct. The first is the default"},"scheduleId":{"type":"string"},"incrementMinutes":{"description":"minutes between offered starts. On create, defaults to the first duration rounded up to a multiple of 15","type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"description":"asked of each person who books. An update keeps an id, and a question without one is new","maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"description":"where the meeting happens. The person who books picks one when there are several","maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"description":"the policy: its text, the cut-off in hours, and the late fee charged on a cancellation inside it. If the late fee is left out, the one already set is kept, and null removes it. A late fee needs a cut-off above 0. Without one it is refused, reason late_fee_needs_cutoff","anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"description":"charged to a card saved at the booking, if the person who booked does not come. Not with a price. { amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD). Null for none","anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"description":"what a booking charges, at a Stripe checkout. { amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD). Null for none","anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"description":"checkout: paid when booking; invoice: Stripe emails an invoice once booked","type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"description":"with paymentMode invoice: how many days the person who booked has to pay it","type":"integer","minimum":1,"maximum":365},"addOnPrices":{"description":"added to the price when an answer chooses the option: { questionId, option, amountMinor } in the price’s currency","maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"description":"the https origins whose pages can embed the booking page, like https://example.com","maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"description":"the days of the week it is offered on, inside its schedule’s hours. ISO, 1 Monday to 7 Sunday, distinct, on the date in the schedule’s zone. Null for every day","anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]}},"required":["slug","title","durations"],"additionalProperties":false},"example":{"slug":"intro","title":"Intro call","durations":[30],"approval":{"kind":"always"}}}}},"responses":{"200":{"description":"EventType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_meeting_types","x-max-body-bytes":65536}},"/api/v1/me/event-types/{id}":{"patch":{"operationId":"updateEventType","description":"Changes the given fields of a meeting type. While its unreadableSettings names a setting, the type offers no times and an update must send each one named. Money, a price or a fee, needs a Stripe account connected under Payments, and is in its currency.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"EVENT_TYPE_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,48}[a-z0-9]$"},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"description":"minutes, distinct. The first is the default","minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440}},"scheduleId":{"type":"string"},"incrementMinutes":{"description":"minutes between offered starts. On create, defaults to the first duration rounded up to a multiple of 15","type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"description":"asked of each person who books. An update keeps an id, and a question without one is new","maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"description":"where the meeting happens. The person who books picks one when there are several","maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"description":"the policy: its text, the cut-off in hours, and the late fee charged on a cancellation inside it. If the late fee is left out, the one already set is kept, and null removes it. A late fee needs a cut-off above 0. Without one it is refused, reason late_fee_needs_cutoff","anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"description":"charged to a card saved at the booking, if the person who booked does not come. Not with a price. { amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD). Null for none","anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"description":"what a booking charges, at a Stripe checkout. { amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD). Null for none","anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"description":"checkout: paid when booking; invoice: Stripe emails an invoice once booked","type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"description":"with paymentMode invoice: how many days the person who booked has to pay it","type":"integer","minimum":1,"maximum":365},"addOnPrices":{"description":"added to the price when an answer chooses the option: { questionId, option, amountMinor } in the price’s currency","maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"description":"the https origins whose pages can embed the booking page, like https://example.com","maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"description":"the days of the week it is offered on, inside its schedule’s hours. ISO, 1 Monday to 7 Sunday, distinct, on the date in the schedule’s zone. Null for every day","anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]}},"additionalProperties":false},"example":{"cancelPolicy":{"text":"Cancel at least one day before.","cutoffHours":24}}}}},"responses":{"200":{"description":"EventType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_meeting_types","x-max-body-bytes":65536},"delete":{"operationId":"deleteEventType","description":"Deletes a meeting type.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"EVENT_TYPE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_meeting_types","x-max-body-bytes":65536}},"/api/v1/me/event-types/changes":{"post":{"operationId":"changeEventTypes","description":"Makes one change to some meeting types at once. If one cannot take it, none changes, and detail.eventTypeId names it.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}},"change":{"oneOf":[{"type":"object","properties":{"what":{"type":"string","const":"on"}},"required":["what"],"additionalProperties":false},{"type":"object","properties":{"what":{"type":"string","const":"off"}},"required":["what"],"additionalProperties":false},{"type":"object","properties":{"what":{"type":"string","const":"hours"},"scheduleId":{"type":"string"}},"required":["what","scheduleId"],"additionalProperties":false},{"type":"object","properties":{"what":{"type":"string","const":"notice"},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647}},"required":["what","minNoticeMinutes"],"additionalProperties":false},{"type":"object","properties":{"what":{"type":"string","const":"ahead"},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["what","windowDays"],"additionalProperties":false},{"type":"object","properties":{"what":{"type":"string","const":"color"},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]}},"required":["what","color"],"additionalProperties":false}]}},"required":["ids","change"],"additionalProperties":false},"example":{"ids":["EVENT_TYPE_ID","OTHER_EVENT_TYPE_ID"],"change":{"what":"notice","minNoticeMinutes":120}}}}},"responses":{"200":{"description":"EventType[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeEventTypesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_meeting_types","x-max-body-bytes":65536}},"/api/v1/me/schedules":{"get":{"operationId":"listSchedules","description":"The host’s schedules.","responses":{"200":{"description":"Schedule[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSchedulesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_hours","x-max-body-bytes":65536},"put":{"operationId":"upsertSchedule","description":"Creates a schedule, or replaces one when `id` is given. zoneChanges are for travel: from each fromDate on, the hours are in that time zone. zoneChanges replaces the changes dated after today, and without it they are kept. Answers the schedule with upcomingOutside: how many upcoming confirmed bookings on it the saved hours do not offer now. None is moved or cancelled.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"description":"the schedule to replace. Without it, a new one","type":"string"},"name":{"type":"string","minLength":1},"timeZone":{"description":"IANA time zone, e.g. Europe/London","type":"string"},"weekly":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"number","enum":[1,2,3,4,5,6,7]},"startMinute":{"type":"integer","minimum":0,"maximum":1440},"endMinute":{"type":"integer","minimum":0,"maximum":1440}},"required":["weekday","startMinute","endMinute"]},"description":"open windows by ISO weekday, 1 is Monday, in minutes from midnight. Windows on one weekday cannot overlap"},"overrides":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"windows":{"type":"array","items":{"type":"object","properties":{"startMinute":{"type":"integer","minimum":0,"maximum":1440},"endMinute":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMinute","endMinute"]}}},"required":["date","windows"]},"description":"dates as YYYY-MM-DD, with their own windows in place of the week’s. No windows means closed. One override a date"},"isDefault":{"type":"boolean"},"zoneChanges":{"description":"travel: from each fromDate on, as YYYY-MM-DD, the hours are in that time zone. One change a date","type":"array","items":{"type":"object","properties":{"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string"}},"required":["fromDate","timeZone"]}}},"required":["name","timeZone","weekly","overrides","isDefault"],"additionalProperties":false},"example":{"name":"Working hours","timeZone":"Europe/London","weekly":[{"weekday":1,"startMinute":540,"endMinute":1020}],"overrides":[],"isDefault":true,"zoneChanges":[{"fromDate":"2026-12-14","timeZone":"America/New_York"}]}}}},"responses":{"200":{"description":"Schedule & { upcomingOutside: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertScheduleAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/me/schedules/{id}":{"delete":{"operationId":"deleteSchedule","description":"Deletes a schedule.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"SCHEDULE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_hours","x-max-body-bytes":65536}},"/api/v1/unsubscribe/{token}":{"get":{"operationId":"getOutreachToken","description":"What an email’s unsubscribe link is about: whose emails, if its address opted out of them, and the outreach it belongs to. Changes nothing.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"UNSUBSCRIBE_TOKEN"}],"responses":{"200":{"description":"{ hostName: string, hostHandle: string | null, optedOut: boolean, outreach: { status: \"cancelled\" | \"booked\" | \"active\" | \"declined\" | \"unsubscribed\" | \"finished\" | \"bounced\" } | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOutreachTokenAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536},"post":{"operationId":"actOnOutreachToken","description":"Acts on an email’s unsubscribe link. `unsubscribe` stops every later email of that host to the address. `decline` stops only the link’s follow-ups. Idempotent.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"UNSUBSCRIBE_TOKEN"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["unsubscribe","decline"],"description":"unsubscribe, or decline for no thanks"}},"required":["action"],"additionalProperties":false},"example":{"action":"unsubscribe"}}}},"responses":{"200":{"description":"{ hostName: string, hostHandle: string | null, optedOut: boolean, outreach: { status: \"cancelled\" | \"booked\" | \"active\" | \"declined\" | \"unsubscribed\" | \"finished\" | \"bounced\" } | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetOutreachTokenAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/outreach":{"post":{"operationId":"sendLinkByEmail","description":"Emails to one address the host’s link to one of their meeting types, `eventTypeId`. Or it emails a listed person’s personal link to one of the host’s open polls, `poll`. That is `pollId` and `participantId`, someone on its list who has not answered. Give exactly one of the two. The email is in the host’s name, as `{host} via {product}`, and replies go to the host. Up to 3 follow-ups come after it, each `nudgeAfterHours[n]` hours after the email before it: 24 to 336, all within 30 days. It stops by itself when the person books, says no thanks or unsubscribes. For a poll, it stops when they answer, and the outreach is `answered`. It also stops when the poll closes: `cancelled`, `stopReason` `poll_closed`. A poll’s link goes only to the address that person gave the poll, when they gave one. Else it is `invalid_input` on `email`. It is `invalid_input` on `poll` for a poll not the host’s, or a person not on its list. It is `conflict` for a closed poll, `closed`, or someone who has answered, `answered`. It is also `conflict` for someone whose poll link is already on its way to any address: `outreach_active_for_person`, with its `id`. Cancel that one to send again. An email sent cannot be unsent. It refuses with `conflict` past 20 new addresses a day: `detail.reason` `daily_limit`, with `retryAfterSeconds`. It also refuses with `conflict` while one is already on its way to the address, `already_active`, and within 30 days of a no thanks, `declined`. It does so too with no reply address, `no_reply_address`, and while this server cannot send, `sending_not_set_up`. It refuses with `forbidden` an address that unsubscribed or bounced. Each refusal’s `message` is a plain sentence to show the host as it is. Pass an `attemptKey` to make a retry safe: a UUID you make once for each send. It is yours alone, never shared with another host. A repeat of the same send answers the first send’s outreach and sends nothing more. Anything different under it is `conflict`: `attempt_reused`, with an issue on `attemptKey`.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"attemptKey":{"description":"a UUID made once for this send. A repeat of it sends nothing more","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"description":"one address","type":"string"},"name":{"description":"their name, one line","type":"string","minLength":1,"maxLength":200},"eventTypeId":{"description":"one of the host’s meeting types. Or give `poll`","type":"string"},"poll":{"description":"one of the host’s open polls, `pollId`, and a person on its list who has not answered, `participantId`. Or give `eventTypeId`","type":"object","properties":{"pollId":{"type":"string"},"participantId":{"type":"string"}},"required":["pollId","participantId"],"additionalProperties":false},"note":{"description":"the host’s own words in the email","type":"string","maxLength":1000},"nudgeAfterHours":{"default":[],"description":"the follow-ups, each the hours after the email before it. Together they span at most the longest sequence the host can send","maxItems":3,"type":"array","items":{"type":"integer","minimum":24,"maximum":336}}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com","name":"Grace Hopper","eventTypeId":"EVENT_TYPE_ID","note":"Good to meet you last week.","nudgeAfterHours":[72,168]}}}},"responses":{"201":{"description":"Outreach","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-max-body-bytes":65536},"get":{"operationId":"listOutreach","description":"The host’s links sent by email, newest first, each with how many emails went, when the next is due and its status. `sendingSetUp` is false while this server cannot send. `today`: the host’s new addresses used this UTC day, the limit, and `resetsAt`, when it starts over. `productFull` says if the product’s own daily sending is full: then what falls due waits until `resetsAt`. `sender`: the From name and reply address an email in the host’s name carries. With `replyTo` null, a send is refused until one is set.","parameters":[{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page","schema":{"description":"nextCursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"example":"20"}],"responses":{"200":{"description":"{ outreach: Outreach[], nextCursor: string | null, sendingSetUp: boolean, today: { used: number, limit: number, resetsAt: instant, productFull: boolean, full: string | null }, sender: { fromName: string, hostName: string, replyTo: string | null } }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOutreachAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-max-body-bytes":65536}},"/api/v1/me/polls/{id}/links":{"get":{"operationId":"previewPollLinks","description":"Who a send of one of the host’s open polls’ personal links can mail now, in `toMail`. These are its listed people with an address who have not answered, less anyone the host’s email is refused to. `skipped` is everyone else on it, each with why. `today`: the host’s new addresses used this UTC day, and the limit. Sends nothing, and answers no address. A key needs `polls` too. It is refused with `conflict` as a send is: `closed`, `no_reply_address`, `sending_not_set_up`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_ID"}],"responses":{"200":{"description":"{ title: string (the poll’s, or its meeting type’s), toMail: [{ participantId: string, name: string }], skipped: [{ participantId: string, name: string, reason: \"answered\" | \"no_address\" | \"not_listed\" | \"already_on_its_way\" | \"declined\" | \"opted_out\" | \"bounced\" (not_listed: they came by the poll’s link, or are no one on it) }], today: { used: number, limit: number } }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewPollLinksAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-capability-checked":["polls"],"x-max-body-bytes":65536},"post":{"operationId":"sendPollLinks","description":"Emails each person named their personal link to one of the host’s open polls, in the host’s name. Follow-ups go as `POST /api/v1/me/outreach` sends them. It sends only to those of `participantIds` the preview names now, in `sent`, each with its outreach’s id. The rest are in `skipped`, with why. It mails no address but the one the poll keeps. An email sent cannot be unsent. A key needs `polls` too. It is refused with `conflict`, and no one is mailed, for: more people than the day has room for, `daily_limit` with `retryAfterSeconds`, `closed`, `no_reply_address`, `sending_not_set_up`. Pass an `attemptKey`, a UUID you make once for each send. A repeat mails no one it mailed. Another note or other follow-ups under it are `attempt_reused`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"participantIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"},"description":"the people to mail, by the ids the preview answers, each once"},"note":{"description":"the host’s own words in the email","type":"string","maxLength":1000},"nudgeAfterHours":{"default":[],"description":"the follow-ups, each the hours after the email before it. Together they span at most the longest sequence the host can send","maxItems":3,"type":"array","items":{"type":"integer","minimum":24,"maximum":336}},"attemptKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"a UUID made once for this send. A repeat of it sends nothing more"}},"required":["participantIds","attemptKey"],"additionalProperties":false},"example":{"attemptKey":"6f0c1a52-7d0e-4c3b-9b1e-2f5d8a9c4e01","participantIds":["PARTICIPANT_ID"],"nudgeAfterHours":[48]}}}},"responses":{"201":{"description":"{ sent: [{ participantId: string, name: string, outreachId: string }], skipped: [{ participantId: string, name: string | null (null for no one on the poll), reason: \"answered\" | \"no_address\" | \"not_listed\" | \"already_on_its_way\" | \"declined\" | \"opted_out\" | \"bounced\" (not_listed: they came by the poll’s link, or are no one on it) }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendPollLinksAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/me/outreach/{id}/cancel":{"post":{"operationId":"cancelOutreach","description":"Stops one of the host’s links sent by email: no follow-up of it is sent. What was sent stays sent. One already stopped is answered as it is.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"OUTREACH_ID"}],"responses":{"200":{"description":"Outreach","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-max-body-bytes":65536}},"/api/v1/me/contact-messages":{"post":{"operationId":"messageContacts","description":"Emails a message to 1 to 100 of the host’s contacts, chosen by id. Each gets their own email in the host’s name, as `{host} via {product}`. Replies go to the host. Contacts who unsubscribed or bounced are skipped and counted. An email sent cannot be unsent. An id that is not the host’s contact is refused with `invalid_input` on `contactIds.{n}`, and nothing is sent. It refuses with `conflict` past 200 recipients a day, `daily_limit` with `retryAfterSeconds`. It also does so with no reply address, or while this server cannot send, `sending_not_set_up`. Each refusal’s `message` is a plain sentence to show the host as it is. Pass an `attemptKey` to make a retry safe: a UUID you make once for each send, yours alone. A repeat with the same words and people answers the first send, and sends nothing more. Other words or people under it are `conflict`: `attempt_reused`, with an issue on `attemptKey`.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"attemptKey":{"description":"a UUID made once for this send. A repeat of it sends nothing more","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contactIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"},"description":"the contacts"},"subject":{"type":"string","minLength":1,"maxLength":200,"description":"one line"},"body":{"type":"string","maxLength":5000,"description":"plain text, not only spaces"}},"required":["contactIds","subject","body"],"additionalProperties":false},"example":{"contactIds":["CONTACT_ID"],"subject":"New hours in December","body":"I am adding Friday mornings from next week."}}}},"responses":{"201":{"description":"{ id: string, queued: number, skipped: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageContactsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-max-body-bytes":65536},"get":{"operationId":"listContactMessages","description":"The host’s messages to contacts, newest first. Each has how many it went to, how many were sent, how many were not, by why, and the first three it went to. `to` gives them by name or address. `sendingSetUp` and `sender` are as for outreach. `today` counts recipients, 200 a day.","parameters":[{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page","schema":{"description":"nextCursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"example":"20"}],"responses":{"200":{"description":"{ messages: ContactMessage[], nextCursor: string | null, sendingSetUp: boolean, today: { used: number, limit: number, resetsAt: instant, productFull: boolean, full: string | null }, sender: { fromName: string, hostName: string, replyTo: string | null } }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactMessagesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"email_people","x-max-body-bytes":65536}},"/api/v1/me/webhooks":{"get":{"operationId":"listWebhooks","description":"The host’s webhooks, oldest first: at most 20 of their own, and at most 100 more that Zapier and Make subscribe. A webhook turned off for failing has `active: false` and keeps `failingSince`. Never the signing secret.","responses":{"200":{"description":"Webhook[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhooksAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"webhooks","x-max-body-bytes":65536},"post":{"operationId":"createWebhook","description":"Creates a webhook that posts the chosen booking events to an https address. With `eventTypeIds` empty, it is for every meeting type. The answer holds its signing secret, shown this once: store it now, and rotate it if it is lost. A host has at most 20 of their own. Apart from them, they have at most 100 that Zapier and Make subscribe, at an address at hooks.zapier.com or hook.*.make.com. One more of either is `conflict`, `reason: webhook_limit`: delete one first. No assistant tool can do this.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"an https address the events are POSTed to, signed with the webhook’s secret"},"events":{"minItems":1,"maxItems":14,"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping"]}},"eventTypeIds":{"default":[],"description":"only these meeting types. None for every one","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["url","events"],"additionalProperties":false},"example":{"url":"https://example.com/hooks/scheduler","events":["booking.created","booking.cancelled"]}}}},"responses":{"201":{"description":"Webhook & { secret: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"add_webhooks","x-max-body-bytes":65536}},"/api/v1/me/webhooks/{id}":{"patch":{"operationId":"updateWebhook","description":"Changes a webhook’s address, events or meeting types, or turns it on or off with `active`. What is left out stays as it is. When it is turned back on, its run of failures ends. No assistant tool can do this.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WEBHOOK_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"description":"an https address the events are POSTed to, signed with the webhook’s secret","type":"string","minLength":1,"maxLength":2048},"events":{"minItems":1,"maxItems":14,"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping"]}},"eventTypeIds":{"description":"only these meeting types. None for every one","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"active":{"type":"boolean"}},"additionalProperties":false},"example":{"active":true}}}},"responses":{"200":{"description":"Webhook","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"add_webhooks","x-max-body-bytes":65536},"delete":{"operationId":"deleteWebhook","description":"Deletes a webhook and its delivery log. Nothing more is sent to it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WEBHOOK_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"webhooks","x-max-body-bytes":65536}},"/api/v1/me/webhooks/{id}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","description":"Replaces a webhook’s signing secret: deliveries are signed with the new one from now on. The answer holds it, shown this once. No assistant tool can do this.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WEBHOOK_ID"}],"responses":{"200":{"description":"Webhook & { secret: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateWebhookSecretAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"add_webhooks","x-max-body-bytes":65536}},"/api/v1/me/webhooks/{id}/test":{"post":{"operationId":"testWebhook","description":"Sends a `ping` delivery to the webhook now, tried once. See how it went in its delivery log.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WEBHOOK_ID"}],"responses":{"200":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"webhooks","x-max-body-bytes":65536}},"/api/v1/me/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","description":"A webhook’s delivery log, newest first: `limit` a page, default 50, at most 200. Pass `nextCursor` as `cursor` for the next. `payload` is the body exactly as it was posted, so its instants are epoch milliseconds, as the receiver got them. A response body is at most 512 characters, with secrets redacted. Deliveries are kept 30 days.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WEBHOOK_ID"},{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page","schema":{"description":"nextCursor from the previous page","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"{ deliveries: WebhookDelivery[], nextCursor: string | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWebhookDeliveriesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"webhooks","x-max-body-bytes":65536}},"/api/v1/me/webhook-deliveries/{id}/redeliver":{"post":{"operationId":"redeliverWebhook","description":"Sends a delivery’s payload again, as a new delivery that names the one it repeats. It is refused with `conflict` while the webhook is off.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"DELIVERY_ID"}],"responses":{"200":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"webhooks","x-max-body-bytes":65536}},"/api/v1/me/workflows":{"get":{"operationId":"listWorkflows","description":"The host’s workflows, oldest first (at most 50), each with its steps in order (at most 20).","responses":{"200":{"description":"Workflow[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListWorkflowsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536},"post":{"operationId":"createWorkflow","description":"Creates a workflow, turned on. When `trigger` happens to a booking of one of `eventTypeIds`, it runs `steps` in order. With `eventTypeIds` empty, it is for every meeting type. `before_start` and `after_end` run `offsetMinutes` before the start or after the end. An email’s subject and body can use `{variables}`. Its subject reaches the recipient as “Message from <host>: …”, and links in the values filled in are removed. One person gets at most 10 workflow emails about one booking. A host has at most 50 workflows. One more is `conflict`, `reason: workflow_limit`: delete one first.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"trigger":{"type":"string","enum":["booking_created","booking_rescheduled","booking_cancelled","no_show","before_start","after_end"]},"offsetMinutes":{"default":0,"description":"minutes before the start, before_start, or after the end, after_end. 0, and only 0, for every other trigger","type":"integer","minimum":0,"maximum":43200},"eventTypeIds":{"default":[],"description":"only these meeting types. None for every one","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"email"},"to":{},"subject":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string"}},"required":["kind","to","subject","body"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"webhook"},"webhookId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","webhookId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"reconfirm"},"deadlineMinutesBeforeStart":{"type":"integer","minimum":1,"maximum":43200},"cancelIfUnconfirmed":{"type":"boolean"}},"required":["kind","deadlineMinutesBeforeStart","cancelIfUnconfirmed"],"additionalProperties":false}]},"description":"run in order. A reconfirm step only on booking_created, booking_rescheduled or before_start, and on before_start its deadline is fewer minutes before the start than the workflow’s offset"}},"required":["name","trigger","steps"],"additionalProperties":false},"example":{"name":"Day-before reminder","trigger":"before_start","offsetMinutes":1440,"steps":[{"kind":"email","to":"invitee","subject":"See you tomorrow","body":"Hi {invitee_name}, see you at {start_time}."}]}}}},"responses":{"201":{"description":"Workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536}},"/api/v1/me/workflows/{id}":{"get":{"operationId":"getWorkflow","description":"One of the host’s workflows, with `pendingCancellations`: the bookings it will cancel at their deadline unless they confirm. Removing its reconfirm step, turning it off or deleting it stops those cancellations.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WORKFLOW_ID"}],"responses":{"200":{"description":"Workflow & { pendingCancellations: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetWorkflowAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536},"patch":{"operationId":"updateWorkflow","description":"Changes a workflow. What is left out stays as it is. `steps` are its steps from then on, in the order given. A step sent with the `id` of one of its steps is that step, changed in place. A reconfirmation it already asked is still cancelled at its deadline. A step without an `id` is new, and a step left out is removed. An `id` that is not one of this workflow’s steps is `invalid_input`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WORKFLOW_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"trigger":{"type":"string","enum":["booking_created","booking_rescheduled","booking_cancelled","no_show","before_start","after_end"]},"offsetMinutes":{"description":"minutes before the start, before_start, or after the end, after_end. 0, and only 0, for every other trigger","type":"integer","minimum":0,"maximum":43200},"eventTypeIds":{"description":"only these meeting types. None for every one","maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"steps":{"description":"the whole list, replacing it: a step with its id is kept and changed, one without is new. run in order. A reconfirm step only on booking_created, booking_rescheduled or before_start, and on before_start its deadline is fewer minutes before the start than the workflow’s offset","type":"array","items":{}}},"additionalProperties":false},"example":{"offsetMinutes":120}}}},"responses":{"200":{"description":"Workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536},"delete":{"operationId":"deleteWorkflow","description":"Deletes a workflow. What it had waiting to run does nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WORKFLOW_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536}},"/api/v1/me/workflows/{id}/active":{"put":{"operationId":"setWorkflowActive","description":"Turns a workflow on or off. Off, what it had waiting to run does nothing.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"WORKFLOW_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"}},"required":["active"],"additionalProperties":false},"example":{"active":false}}}},"responses":{"200":{"description":"Workflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"workflows","x-max-body-bytes":65536}},"/api/v1/reconfirm/{token}":{"get":{"operationId":"getReconfirmation","description":"What a reconfirmation link asks to confirm, and by when. The link is the token in an /r/{token} URL, from the email of the person that the booking is for. Changes nothing. A link that is used, expired or opens nothing is `not_found`.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"RECONFIRM_TOKEN"}],"responses":{"200":{"description":"{ eventTitle: string, hostName: string, hostHandle: string | null, start: instant, end: instant, confirmBy: instant | null, timeZone: string, cancelIfUnconfirmed: boolean }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetReconfirmationAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536},"post":{"operationId":"reconfirmBooking","description":"Confirms the person that the booking is for still plans to attend, so the booking is kept at its deadline. Past the deadline, or for a booking cancelled or moved since, `conflict`.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"RECONFIRM_TOKEN"}],"responses":{"200":{"description":"{ bookingId: string, reconfirmedAt: instant }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconfirmBookingAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/slack":{"get":{"operationId":"listSlackConnections","description":"The Slack channels the host connected in the dashboard, oldest first, at most 20 with the turned-off ones, and the booking events each is told about. A `disabled` one stopped taking posts and keeps its place until deleted: delete it and connect the channel again.","responses":{"200":{"description":"SlackConnection[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSlackConnectionsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"slack","x-max-body-bytes":65536}},"/api/v1/me/slack/{id}":{"patch":{"operationId":"updateSlackConnection","description":"Changes which booking events a Slack channel is told about.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"SLACK_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","seat.added","seat.cancelled"]},"description":"the events posted to the channel, at least one"}},"required":["events"],"additionalProperties":false},"example":{"events":["booking.created","booking.cancelled"]}}}},"responses":{"200":{"description":"SlackConnection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackConnection"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"slack","x-max-body-bytes":65536},"delete":{"operationId":"deleteSlackConnection","description":"Disconnects a Slack channel: nothing more is posted to it.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"SLACK_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"slack","x-max-body-bytes":65536}},"/api/v1/me/slack/{id}/test":{"post":{"operationId":"testSlackConnection","description":"Posts a test message to a Slack channel now. If Slack refuses it for good, the connection turns off: `conflict`, `reason` `revoked` or `refused`. Slack’s rate limit answers `busy` with `retryAfterSeconds`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"SLACK_ID"}],"responses":{"200":{"description":"{ posted: true }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSlackConnectionAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"slack","x-max-body-bytes":65536}},"/api/v1/me/blocklist":{"get":{"operationId":"listBlocklist","description":"The addresses and @domains that cannot book the host.","responses":{"200":{"description":"[{ id: string, pattern: string }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBlocklistAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"api_other","x-max-body-bytes":65536},"post":{"operationId":"addBlocklistEntry","description":"Blocks an address, as ada@example.com, or a whole domain, as @example.com, so that it cannot book the host.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"pattern":{"description":"an address, or @ and a domain","type":"string","maxLength":254}},"required":["pattern"],"additionalProperties":false},"example":{"pattern":"@example.com"}}}},"responses":{"201":{"description":"{ id: string, pattern: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddBlocklistEntryAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"api_other","x-max-body-bytes":65536}},"/api/v1/me/blocklist/{id}":{"delete":{"operationId":"removeBlocklistEntry","description":"Unblocks an address or a domain.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BLOCKLIST_ENTRY_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"api_other","x-max-body-bytes":65536}},"/api/v1/me/bookers/explain":{"post":{"operationId":"explainBooker","description":"Tells if one person can book one of the host’s meeting types, and the reason if they cannot. A host can check 30 people in an hour.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the email address of that person","type":"string"},"eventTypeId":{"type":"string","description":"one of the host’s meeting types"}},"required":["email","eventTypeId"],"additionalProperties":false},"example":{"email":"grace@example.com","eventTypeId":"EVENT_TYPE_ID"}}}},"responses":{"200":{"description":"{ canBook: boolean, stops: (\"blocked\" | \"upcoming_limit\")[] (What refuses them now), steps: (\"confirm_email\" | \"needs_approval\")[] (What they must pass: not a refusal), upcoming: { count: number, limit: number } | null (Their upcoming bookings of this meeting type, when its limit stops them) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainBookerAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"check_booker","x-max-body-bytes":65536}},"/api/v1/links/{handle}/{slug}/email-code":{"post":{"operationId":"requestEmailCode","description":"Emails a booking code to an address, for a meeting type that asks people who book to confirm their email. Book with it as `verificationCode`.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ada"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"intro"},{"name":"with","in":"query","required":false,"description":"a group link’s other handles, comma-separated","schema":{"description":"a group link’s other handles, comma-separated","type":"array","items":{"type":"string"}},"style":"form","explode":false}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the address of the person who books. The code goes there","type":"string"},"locale":{"description":"the language the code’s email is in. Without it, the host’s","type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com"}}}},"responses":{"200":{"description":"{ expiresAt: instant }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestEmailCodeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/teams/{team}/links/{slug}/email-code":{"post":{"operationId":"requestTeamEmailCode","description":"Emails a booking code to an address, for a team’s meeting type that asks people who book to confirm their email.","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"engines"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"panel"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the address of the person who books. The code goes there","type":"string"},"locale":{"description":"the language the code’s email is in. Without it, the host’s","type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com"}}}},"responses":{"200":{"description":"{ expiresAt: instant }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestEmailCodeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/payments":{"get":{"operationId":"getPaymentsStatus","description":"Says if the host has a Stripe account connected, and if it can take payments now, as Stripe says. It also gives its currency, which every price is set in. The host connects one in the dashboard, under Payments.","responses":{"200":{"description":"{ connected: boolean (A Stripe account is connected), chargesEnabled: boolean (Stripe says the account can take payments now), defaultCurrency: string | null (The account’s currency, which every price is set in) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPaymentsStatusAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/links/{handle}/{slug}/quote":{"get":{"operationId":"quoteBooking","description":"What a booking of this meeting type charges, before the booking: the same lines and total its checkout charges. The answers can be incomplete: a required question not yet answered is no refusal here. Nothing is booked or held. With `packageToken`, nothing is charged: `credits` says how many of the package’s sessions it spends.","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ada"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"intro"},{"name":"with","in":"query","required":false,"description":"a group link’s other handles, comma-separated","schema":{"description":"a group link’s other handles, comma-separated","type":"array","items":{"type":"string"}},"style":"form","explode":false},{"name":"answers","in":"query","required":false,"description":"the answers given so far, as JSON text: question id to answer, as booking takes them","content":{"application/json":{"schema":{"description":"the answers given so far, as JSON text: question id to answer, as booking takes them","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","maxLength":2000}}]},"default":{}}}},"example":"{\"topic\":\"Pricing\"}"},{"name":"oneOffLinkId","in":"query","required":false,"description":"for a booking of a one-off link: its id. Its own price is charged instead","schema":{"description":"for a booking of a one-off link: its id. Its own price is charged instead","type":"string"}},{"name":"recurringCount","in":"query","required":false,"description":"on a meeting type that repeats: how many occurrences","schema":{"description":"on a meeting type that repeats: how many occurrences","type":"integer","minimum":2,"maximum":12}},{"name":"packageToken","in":"query","required":false,"description":"the token of a package purchase, the end of its /pkg link, to book with its sessions","schema":{"description":"the token of a package purchase, the end of its /pkg link, to book with its sessions","type":"string"}}],"responses":{"200":{"description":"{ lines: [{ description: string, amount: Money }] (The price, then each add-on that the answers choose. A series has a line for each date), total: Money | null (What the booking charges. Null when it charges nothing), invoice: boolean (The total is paid later by an invoice, emailed to the person that the booking is for. There is no checkout), credits: number | null (With packageToken: how many sessions of the package it spends. Else null), creditsLeft: number | null (With packageToken: how many sessions the package has now. Else null), saveCard: { noShowFee: Money, lateFee: Money | null, lateCutoffHours: number | null } | null (The booking charges nothing now and saves the card for these fees. A no-show fee of 0 is no fee. Else null), notWithCredits: [{ questionId: string, option: string }] (With packageToken: the add-on options that a package booking cannot choose, because a package does not pay their price. Else empty) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBookingAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/teams/{team}/links/{slug}/quote":{"get":{"operationId":"quoteTeamBooking","description":"What a booking of a team’s meeting type charges, before the booking.","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"engines"},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"panel"},{"name":"answers","in":"query","required":false,"description":"the answers given so far, as JSON text: question id to answer, as booking takes them","content":{"application/json":{"schema":{"description":"the answers given so far, as JSON text: question id to answer, as booking takes them","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","maxLength":2000}}]},"default":{}}}}},{"name":"oneOffLinkId","in":"query","required":false,"description":"for a booking of a one-off link: its id. Its own price is charged instead","schema":{"description":"for a booking of a one-off link: its id. Its own price is charged instead","type":"string"}},{"name":"recurringCount","in":"query","required":false,"description":"on a meeting type that repeats: how many occurrences","schema":{"description":"on a meeting type that repeats: how many occurrences","type":"integer","minimum":2,"maximum":12}},{"name":"packageToken","in":"query","required":false,"description":"the token of a package purchase, the end of its /pkg link, to book with its sessions","schema":{"description":"the token of a package purchase, the end of its /pkg link, to book with its sessions","type":"string"}}],"responses":{"200":{"description":"{ lines: [{ description: string, amount: Money }] (The price, then each add-on that the answers choose. A series has a line for each date), total: Money | null (What the booking charges. Null when it charges nothing), invoice: boolean (The total is paid later by an invoice, emailed to the person that the booking is for. There is no checkout), credits: number | null (With packageToken: how many sessions of the package it spends. Else null), creditsLeft: number | null (With packageToken: how many sessions the package has now. Else null), saveCard: { noShowFee: Money, lateFee: Money | null, lateCutoffHours: number | null } | null (The booking charges nothing now and saves the card for these fees. A no-show fee of 0 is no fee. Else null), notWithCredits: [{ questionId: string, option: string }] (With packageToken: the add-on options that a package booking cannot choose, because a package does not pay their price. Else empty) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteBookingAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/packages":{"get":{"operationId":"listPackages","description":"The host’s packages of sessions, archived ones too, each with how many were sold.","responses":{"200":{"description":"[{ id: string, eventTypeId: string, title: string, sessions: number, price: Money, active: boolean (Still sold. An archived package is not sold, and its purchases keep their credits), sold: number (How many purchases of it were made) }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPackagesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536},"post":{"operationId":"createPackage","description":"Sells a package of one meeting type’s sessions at one price, on the host’s Stripe account. That account must be connected. A buyer pays once and books its sessions with their package link.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"eventTypeId":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":200},"sessions":{"type":"integer","minimum":1,"maximum":100,"description":"how many sessions, 1 to 100"},"price":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"],"description":"{ amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD)"}},"required":["eventTypeId","title","sessions","price"],"additionalProperties":false},"example":{"eventTypeId":"EVENT_TYPE_ID","title":"Five sessions","sessions":5,"price":{"amountMinor":20000,"currency":"USD"}}}}},"responses":{"201":{"description":"{ id: string, eventTypeId: string, title: string, sessions: number, price: Money, active: boolean (Still sold. An archived package is not sold, and its purchases keep their credits), sold: number (How many purchases of it were made) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePackageAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/me/packages/{id}":{"patch":{"operationId":"updatePackage","description":"Changes a package. What is left out stays as it is. A new price is for purchases from then on. Its number of sessions is fixed once it has been bought: `conflict`. `active: false` stops its sale.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PACKAGE_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"sessions":{"type":"integer","minimum":1,"maximum":100},"price":{"description":"{ amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD)","type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},"active":{"description":"false stops its sale. Its purchases keep their sessions","type":"boolean"}},"additionalProperties":false},"example":{"title":"Five coaching sessions"}}}},"responses":{"200":{"description":"{ id: string, eventTypeId: string, title: string, sessions: number, price: Money, active: boolean (Still sold. An archived package is not sold, and its purchases keep their credits), sold: number (How many purchases of it were made) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePackageAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/me/packages/{id}/archive":{"post":{"operationId":"archivePackage","description":"Stops selling a package. Its purchases keep their sessions, and can still be booked with.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PACKAGE_ID"}],"responses":{"200":{"description":"{ id: string, eventTypeId: string, title: string, sessions: number, price: Money, active: boolean (Still sold. An archived package is not sold, and its purchases keep their credits), sold: number (How many purchases of it were made) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePackageAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/packages/{id}/buy":{"post":{"operationId":"buyPackage","description":"Buys a package of sessions, by anyone, with no account. Answers 201 with `checkoutUrl`, where the buyer pays at Stripe. Once Stripe says it is paid, the buyer is emailed their package link, `/pkg/{token}`, to book its sessions with. Nothing is bought until then.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PACKAGE_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"the buyer’s name"},"email":{"description":"the buyer’s address: their package link goes there","type":"string"},"locale":{"description":"the language of the buyer’s emails. The host’s by default","type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]}},"required":["name","email"],"additionalProperties":false},"example":{"name":"Grace Hopper","email":"grace@example.com"}}}},"responses":{"201":{"description":"{ checkoutUrl: string (Where the buyer pays, at Stripe. The purchase exists when Stripe says it is paid) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyPackageAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/package-purchases/{token}":{"get":{"operationId":"getPackagePurchase","description":"A package purchase, by the token in its /pkg link: what it books and how many sessions are left. Book one with POST /api/v1/bookings, giving `link.handle`, `link.slug` and the token as `packageToken`.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PURCHASE_TOKEN"}],"responses":{"200":{"description":"{ packageTitle: string, hostName: string, eventTitle: string, link: { handle: string, slug: string, path: string | null } (The booking page its sessions book: book it with packageToken), sessions: number, remaining: number, purchasedAt: instant, locale: \"en\" | \"es\" | \"fr\" | \"de\" | \"pt-BR\" | \"it\" | \"nl\" | \"ja\" (The language of the buyer, else of the host. Its emails are in this language), refunded: boolean (Its payment was given back whole, its sessions with it), packageId: string, onSale: boolean (Its package is still sold: another can be bought), refundedPart?: Money (How much of its payment was given back, in part. Its sessions stay) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPackagePurchaseAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/promotion-codes":{"get":{"operationId":"listPromotionCodes","description":"The promotion codes on the host’s Stripe account, as Stripe lists them, which the host’s checkouts take.","responses":{"200":{"description":"[{ id: string, code: string, active: boolean, timesRedeemed: number, percentOff: number | null (the percentage off, or null for an amount off), amountOff: Money | null, maxRedemptions: number | null (how many times it can be used in all. Null: no limit), expiresAt: instant | null (when it stops working. Null: never) }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPromotionCodesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536},"post":{"operationId":"createPromotionCode","description":"Makes a promotion code on the host’s Stripe account, which the host’s checkouts take: exactly one of `percentOff` and `amountOff`. Stripe’s refusal is `conflict`, in its words.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^[A-Za-z0-9_-]{3,40}$","description":"what people type at the checkout"},"percentOff":{"description":"1 to 100","type":"integer","minimum":1,"maximum":100},"amountOff":{"description":"{ amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD)","type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},"maxRedemptions":{"description":"how many times it can be used in all","type":"integer","minimum":1,"maximum":1000000},"expiresAt":{"description":"after it, the code is refused","type":"string","format":"date-time"}},"required":["code"],"additionalProperties":false},"example":{"code":"WELCOME10","percentOff":10}}}},"responses":{"201":{"description":"{ id: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePromotionCodeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/me/bookings/{id}/invoice":{"post":{"operationId":"sendInvoice","description":"Invoices one of the host’s bookings, confirmed or over, on their Stripe account. Stripe emails the invoice to the person that the booking is for. Without `lines`, it invoices the meeting type’s price. One invoice for each booking while it stands. A booking paid at its checkout is not invoiced: `conflict`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"lines":{"description":"what to invoice, each { description, amount: { amountMinor, currency }: amountMinor in minor units (cents; yen as they are), currency the host’s Stripe account’s (ISO 4217, e.g. USD) }, all in one currency","minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"description":{"type":"string","minLength":1,"maxLength":200},"amount":{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]}},"required":["description","amount"]}}},"additionalProperties":false},"example":{}}}},"responses":{"201":{"description":"{ amount: Money }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvoiceAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"sell_packages","x-max-body-bytes":65536}},"/api/v1/polls":{"post":{"operationId":"startPoll","description":"Starts a poll with no account, for people to answer by its link, `pollUrl`. Of one of three kinds, by `kind`. Times, the default, with `options`. Whole dates, with `dates` and no length or zone. Painted time, with `paint`: a `range` with its daily hours, a length and a zone, and no times. On it, holds, proposals and choosing by itself are off. A field another kind takes is refused by name: 400 `invalid_input`. A poll of painted time, for example: `{ \"kind\": \"paint\", \"title\": \"Team planning\", \"durationMinutes\": 60, \"timeZone\": \"Europe/London\", \"range\": { \"startDate\": \"2026-12-07\", \"endDate\": \"2026-12-11\", \"dayStartMinute\": 540, \"dayEndMinute\": 1020 }, \"organizer\": { \"name\": \"Ada\" } }`. The organizer link, `organizerUrl`, is the only key to change, choose or cancel it, and is never stored: keep it. With `organizer.email` it is also emailed there. An address can start a few polls an hour and a day, then gets 409 `conflict`, `detail.reason` `too_many_polls` and `Retry-After`. One client can start 10 an hour, then gets 503 `busy`, `detail.reason` `too_many_from_client` and `Retry-After`.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"allowProposals":{"type":"boolean"},"results":{"type":"string","enum":["names","counts"]},"autoChoose":{"type":"boolean"},"expiresInDays":{"description":"defaults to 14","type":"integer","minimum":1,"maximum":30},"range":{"description":"its days, `startDate` and `endDate` as YYYY-MM-DD, and daily hours, `dayStartMinute` and `dayEndMinute` as minutes after midnight in its zone, on the half hour. Times can be added inside it. A poll of painted time needs it with its hours, at most 14 days of at most 16 hours, and is painted inside it","type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"dayStartMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30},"dayEndMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30}},"required":["startDate","endDate"]},"expected":{"description":"people you expect to answer, at most 50","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"required":{"type":"boolean"}},"required":["name"]}},"description":{"type":"string","maxLength":2000},"place":{"type":"string","minLength":1,"maxLength":500},"videoUrl":{"type":"string","minLength":1,"maxLength":500},"kind":{"description":"times, the default: people answer each of `options`. dates: each of `dates` is a whole day. paint: people paint the half hours they are free inside `range`, and `paint.top` ranks its best starts","type":"string","enum":["times","dates","paint"]},"durationMinutes":{"description":"5 to 720: the length of a time that has none. None on a poll of dates","type":"integer","minimum":5,"maximum":720},"timeZone":{"description":"the IANA zone the poll’s times and days are shown in, for example America/New_York","type":"string"},"options":{"description":"ISO 8601 starts, each once, in the future, inside the range when there is one. `{ start, durationMinutes }` gives a time its own length","minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","format":"date-time"},{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"durationMinutes":{"type":"integer","minimum":5,"maximum":720}},"required":["start"]}]}},"dates":{"description":"whole days (YYYY-MM-DD), each once: a poll of dates, or days with the times. 100 at most with the times","minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}},"organizer":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]}},"required":["name"]}},"required":["title","organizer"],"additionalProperties":false},"example":{"title":"Team planning","durationMinutes":30,"timeZone":"America/New_York","options":["2026-12-03T15:00:00Z","2026-12-04T15:00:00Z"],"organizer":{"name":"Ada Lovelace","email":"ada@example.com"}}}}},"responses":{"201":{"description":"{ poll: HostPoll, pollUrl: string, organizerUrl: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}":{"get":{"operationId":"getPoll","description":"A poll, by the last part of its link: its times, ranked, with how many can make each. Names only when its organizer shows them, with `results: names`. Never an email or anyone’s busy time. Its owner, by a session or a key with `polls`, gets the organizer’s view.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"bearer":[]},{"session":[]}],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536},"patch":{"operationId":"updatePoll","description":"Changes an open poll as its owner, by a session or a key with `polls`, as by its organizer link, `…/admin/{key}`. A key needs `book_from_polls` too to switch on choosing by itself. To anyone else the poll is `not_found`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"withdraw":{"description":"times by their numbers, never every live time","minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":{"description":"people by their id in `people`","minItems":1,"maxItems":101,"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":{"type":"boolean"}},"required":["participantId","required"]}},"remove":{"description":"people by their id in `people`","minItems":1,"maxItems":101,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"expiresInDays":{"description":"days from when the poll was made, 1 to 30: a day already passed is refused","type":"integer","minimum":1,"maximum":30},"allowProposals":{"description":"let people add times. Never with holds, nor on a poll of painted time","type":"boolean"},"results":{"type":"string","enum":["names","counts"]},"autoChoose":{"description":"choose by itself once everyone required has answered. Needs someone required, and never on a poll of painted time","type":"boolean"},"replaceOrganizerLink":{"type":"boolean","const":true},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"place":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"videoUrl":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]}},"additionalProperties":false},"example":{"allowProposals":false,"expiresInDays":10}}}},"responses":{"200":{"description":"HostPoll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostPoll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"bearer":[]},{"session":[]}],"x-capability":null,"x-capability-checked":["polls","book_from_polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/r/{key}":{"get":{"operationId":"getPollByPersonalLink","description":"A poll as the person a personal link belongs to sees it: as anyone does, and `you` with their own label, link and calendar. The organizer link’s key here opens the organizer’s view, as at `…/a/{key}`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PERSONAL_KEY"}],"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/a/{key}":{"get":{"operationId":"getPollByOrganizerLink","description":"A poll as its organizer sees it, by the organizer link: everyone’s answers, addresses and notes, never anyone’s busy time.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/find":{"post":{"operationId":"findPollTimes","description":"Finds times in a poll against your busy times, and changes nothing. `fits` gives its times that fit you. While it takes new times, `others` gives up to ten others in its range that fit you. Its owner, by a session or a key with `polls`, also gets `suggestions`. These are new times free for everyone who shares a calendar: how many can, and for whom each is awkward, never anyone’s busy time. On a poll of painted time, `fits` is empty, and `others` are its best starts your busy times leave free. The owner’s `suggestions` are its best starts, `paint.top`. A calendar read made on the poll’s page is the page’s alone: it never comes through the API.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"busy":{"description":"your busy intervals, at most 2000: used for this answer and dropped, never stored or shown","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"timeZone":{"description":"your IANA zone, which sets which days are yours. A person in the poll is judged by their own","type":"string"}},"additionalProperties":false},"example":{"busy":[{"start":"2026-12-03T14:00:00Z","end":"2026-12-03T16:00:00Z"}],"timeZone":"America/New_York"}}}},"responses":{"200":{"description":"PollTimesFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollTimesFound"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"bearer":[]},{"session":[]}],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/r/{key}/find":{"post":{"operationId":"findPollTimesByPersonalLink","description":"Finds times as the person a personal link belongs to. It uses the busy times sent, or else their calendar as the poll already holds it for them.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PERSONAL_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"busy":{"description":"your busy intervals, at most 2000: used for this answer and dropped, never stored or shown","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"timeZone":{"description":"your IANA zone, which sets which days are yours. A person in the poll is judged by their own","type":"string"}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"PollTimesFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollTimesFound"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/a/{key}/find":{"post":{"operationId":"findPollTimesByOrganizerLink","description":"Finds times as the poll’s organizer, by the organizer link. It also gives `suggestions`. These are new times free for everyone who shares a calendar: how many can, and for whom each is awkward, never anyone’s busy time. On a poll of painted time, `suggestions` are its best starts, `paint.top`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"busy":{"description":"your busy intervals, at most 2000: used for this answer and dropped, never stored or shown","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"timeZone":{"description":"your IANA zone, which sets which days are yours. A person in the poll is judged by their own","type":"string"}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"PollTimesFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollTimesFound"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/responses":{"post":{"operationId":"respondPoll","description":"Answers an open poll as someone new, with no account: each time yes, maybe or no. On a poll of painted time, it gives the times you are free: `free`, or `busy` turned into them. Its `personalUrl` alone changes or withdraws the answer: keep it. With `email`, it is emailed there once, and `emailed` says so. An address already someone’s in the poll, with any `+tag`, gets that person’s `personalUrl`. One who answered keeps their answer, `alreadyAnswered: true`, and changes it by that link. A listed person who had not answered is answered by this. One client answers at most 60 times an hour, votes included, then gets 503 `busy`, `detail.reason` `too_many_from_client` and `Retry-After`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"timeZone":{"description":"IANA time zone, e.g. America/New_York","type":"string"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"answers":{"default":[],"description":"each time by its number: yes, maybe or no. A time left out is unanswered, and left out it is `[]`. None on a poll of painted time","maxItems":100,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"answer":{"type":"string","enum":["yes","maybe","no"]},"fromCalendar":{"type":"boolean"}},"required":["number","answer"]}},"free":{"description":"a poll of painted time’s: the times you are free, at most 2000, snapped to its half hours. Or send `busy`, and the half hours it leaves free are painted. Never with `busy`","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"busy":{"description":"your busy intervals, used to answer for you and never shown to anyone else. On a poll of painted time, they become the times you are free, and are not kept","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"useAccountCalendar":{"type":"boolean"},"autoAnswer":{"description":"answer new times from your calendar as they are added","type":"boolean"},"note":{"description":"for the organizer alone","type":"string","maxLength":1000},"assistantName":{"type":"string","minLength":1,"maxLength":200},"attemptKey":{"description":"a fresh uuid per answer, the same on its retries: a retry is the first answer, answered again","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["timeZone"],"additionalProperties":false},"example":{"name":"Grace Hopper","email":"grace@example.com","timeZone":"America/New_York","answers":[{"number":1,"answer":"yes"},{"number":2,"answer":"maybe"}]}}}},"responses":{"201":{"description":"{ poll: Poll, personalUrl: string, alreadyAnswered: boolean, emailed: boolean }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespondPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/responses/{key}":{"put":{"operationId":"changePollResponse","description":"Changes the answer a personal link belongs to. These replace its answers, or its free times on a poll of painted time. Its name, address, zone and note change when given. It counts with the client’s answers: 60 an hour, then 503 `busy`, `detail.reason` `too_many_from_client`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PERSONAL_KEY"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"timeZone":{"description":"IANA time zone, e.g. America/New_York","type":"string"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"answers":{"default":[],"description":"each time by its number: yes, maybe or no. A time left out is unanswered, and left out it is `[]`. None on a poll of painted time","maxItems":100,"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"answer":{"type":"string","enum":["yes","maybe","no"]},"fromCalendar":{"type":"boolean"}},"required":["number","answer"]}},"free":{"description":"a poll of painted time’s: the times you are free, at most 2000, snapped to its half hours. Or send `busy`, and the half hours it leaves free are painted. Never with `busy`","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"busy":{"description":"your busy intervals, used to answer for you and never shown to anyone else. On a poll of painted time, they become the times you are free, and are not kept","maxItems":2000,"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"useAccountCalendar":{"type":"boolean"},"autoAnswer":{"description":"answer new times from your calendar as they are added","type":"boolean"},"note":{"description":"for the organizer alone","type":"string","maxLength":1000},"assistantName":{"type":"string","minLength":1,"maxLength":200},"attemptKey":{"description":"a fresh uuid per answer, the same on its retries: a retry is the first answer, answered again","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["timeZone"],"additionalProperties":false},"example":{"timeZone":"America/New_York","answers":[{"number":1,"answer":"no"},{"number":2,"answer":"yes"}]}}}},"responses":{"200":{"description":"{ poll: Poll, personalUrl: string, alreadyAnswered: boolean, emailed: boolean }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespondPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536},"delete":{"operationId":"withdrawPollResponse","description":"Takes back the answer a personal link belongs to, on an open poll: everything stored with it goes. A person the organizer listed stays listed, not answered.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PERSONAL_KEY"}],"responses":{"200":{"description":"Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Poll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/times":{"post":{"operationId":"proposePollTimes","description":"Adds new times to an open poll as its owner, by a session or a key with `polls`, in one round. Anyone else proposes by their personal link, `…/r/{key}/times`. The organizer of a poll started with no account uses theirs, `…/a/{key}/times`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"starts":{"description":"1 to 100 ISO 8601 starts, each once, in the future; `{ start, durationMinutes }` gives a time its own length","minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","format":"date-time"},{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"durationMinutes":{"type":"integer","minimum":5,"maximum":720}},"required":["start"]}]}},"dates":{"description":"new whole days (YYYY-MM-DD), on a poll of times too","minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"starts":["2026-12-05T15:00:00Z"]}}}},"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposePollTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"bearer":[]},{"session":[]}],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/r/{key}/times":{"post":{"operationId":"proposePollTimesByPersonalLink","description":"Adds new times to an open poll that takes proposals, by the personal link of someone who has answered. A person adds at most 5, in one round. Everyone else who answered is emailed once about them. The organizer link’s key here adds as at `…/a/{key}/times`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"PERSONAL_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"starts":{"description":"1 to 5 ISO 8601 starts, each once, in the future, of the poll’s length","minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","format":"date-time"},{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"durationMinutes":{"type":"integer","minimum":5,"maximum":720}},"required":["start"]}]}},"dates":{"description":"a poll of dates’ new dates","minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"starts":["2026-12-05T15:00:00Z"]}}}},"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposePollTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/a/{key}/times":{"post":{"operationId":"proposePollTimesByOrganizerLink","description":"Adds new times to an open poll by its organizer link, in one round, if it takes proposals or not.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"starts":{"description":"1 to 100 ISO 8601 starts, each once, in the future; `{ start, durationMinutes }` gives a time its own length","minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"string","format":"date-time"},{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"durationMinutes":{"type":"integer","minimum":5,"maximum":720}},"required":["start"]}]}},"dates":{"description":"new whole days (YYYY-MM-DD), on a poll of times too","minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}}},"additionalProperties":false},"example":{"starts":["2026-12-05T15:00:00Z"]}}}},"responses":{"200":{"description":"HostPoll | Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposePollTimesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/admin/{key}":{"patch":{"operationId":"updatePollByOrganizerLink","description":"Changes an open poll by its organizer link. It withdraws times, marks people required or not, removes people, moves its expiry, and switches proposals, names and choosing by itself. `replaceOrganizerLink: true` makes a new organizer link, emailed to the address the poll was started with, once a day. This link then stops working.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"withdraw":{"description":"times by their numbers, never every live time","minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":{"description":"people by their id in `people`","minItems":1,"maxItems":101,"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":{"type":"boolean"}},"required":["participantId","required"]}},"remove":{"description":"people by their id in `people`","minItems":1,"maxItems":101,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"expiresInDays":{"description":"days from when the poll was made, 1 to 30: a day already passed is refused","type":"integer","minimum":1,"maximum":30},"allowProposals":{"description":"let people add times. Never with holds, nor on a poll of painted time","type":"boolean"},"results":{"type":"string","enum":["names","counts"]},"autoChoose":{"description":"choose by itself once everyone required has answered. Needs someone required, and never on a poll of painted time","type":"boolean"},"replaceOrganizerLink":{"type":"boolean","const":true},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"place":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"videoUrl":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]}},"additionalProperties":false},"example":{"allowProposals":false,"expiresInDays":10}}}},"responses":{"200":{"description":"HostPoll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostPoll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls","book_from_polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/admin/{key}/finalize":{"post":{"operationId":"finalizePoll","description":"Chooses one of an open poll’s times by its `number`, by its organizer link. For painted time, it takes a `start` on its grid: one of `paint.top`, or a start whose meeting fits that day’s hours. Each kind refuses the other’s field. The poll closes on it and everyone who answered is emailed. On a poll started with no account, it is told with `place` if given. On a host’s poll, only its host can choose: signed in, or with their key holding `book_from_polls`. It is booked for the people who can make it, at the meeting type’s place, and `place` is refused. The organizer link alone gets 403 `forbidden`. A poll already chosen is a 409 `conflict`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"number":{"description":"the time’s number. Not on a poll of painted time","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"start":{"description":"a poll of painted time’s: the start chosen, on its half-hour grid","type":"string","format":"date-time"},"place":{"description":"where you meet, null for none. A poll with no account only","anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"videoUrl":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]}},"additionalProperties":false},"example":{"number":1,"place":"The café on Main Street"}}}},"responses":{"200":{"description":"{ poll: HostPoll, booking: Booking | null, eventsLeftOn: string[], uninvited: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizePollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["book_from_polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/admin/{key}/cancel":{"post":{"operationId":"cancelPollByOrganizerLink","description":"Ends an open poll without a time, by its organizer link, and releases every hold. Everyone who answered is emailed that it ended. The body can be empty.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"HostPoll & { eventsLeftOn: string[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/votes":{"post":{"operationId":"votePoll","description":"Votes in an open poll, no account needed: the times that suit you, each a yes. Wave 2’s form of `POST /api/v1/polls/{publicId}/responses`, kept for its callers. An email that already voted changes nothing: its vote stands, and a change goes by its personal link. A listed person’s email that had not voted is filled by this vote.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"timeZone":{"description":"IANA time zone, e.g. America/New_York","type":"string"},"starts":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"date-time"},"description":"the poll’s times that suit you, at least one"},"attemptKey":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","email","timeZone","starts"],"additionalProperties":false},"example":{"name":"Grace Hopper","email":"grace@example.com","timeZone":"America/New_York","starts":["2026-12-03T15:00:00Z"]}}}},"responses":{"200":{"description":"Poll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Poll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/resend":{"post":{"operationId":"resendPollLink","description":"Sends a lost link again, to its own address and never to the caller. The organizer link goes to the address the poll was started with. A personal link goes to the address of its person. Each goes at most once a day. Answers `{ ok: true }` if the poll holds the address or not, so it tells no one which addresses it holds. Its owner, by a session or a key with `polls`, is the organizer, as by `…/a/{key}/resend`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the address the link was sent to","type":"string"}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com"}}}},"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendPollLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"bearer":[]},{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/polls/{publicId}/a/{key}/resend":{"post":{"operationId":"resendPollLinkByOrganizerLink","description":"Sends a person’s link again, as the poll’s organizer, by the organizer link: to that person’s own address. The organizer alone is told when an address they typed on a poll started with no account cannot be mailed: 409 `conflict`, `detail.reason` `cannot_mail`.","parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_PUBLIC_ID"},{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"ORGANIZER_KEY"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the address of the person whose link to send","type":"string"}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com"}}}},"responses":{"200":{"description":"{ ok: true }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendPollLinkAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/polls":{"get":{"operationId":"listPolls","description":"The host’s polls, newest first, at most 200, each with everyone’s answers and who voted for which times. A poll of painted time is listed with its counts alone, `paint` and `best` null. `GET /api/v1/me/polls/{id}` ranks it.","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","chosen","expired","cancelled"]},"example":"open"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":200}}],"responses":{"200":{"description":"HostPoll[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPollsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"polls","x-max-body-bytes":65536},"post":{"operationId":"createPoll","description":"Offers open times of one meeting type in a poll. Share its `url`. With holds, `holdTimes`, the default: 2 to 10 times, each held on the host’s calendar until one is chosen or the poll expires. Without: 2 to 100, nothing held, names shown and proposals on unless set. Of one of three kinds, by `kind`. Times, the default, with `options`. Whole dates, with `dates` and no length or zone. Painted time, with `paint`: a `range` with its daily hours, a length and a zone, and no times. On it, holds, proposals and choosing by itself are off. A field another kind takes is refused by name: 400 `invalid_input`. A poll of dates or painted time holds nothing.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"eventTypeId":{"type":"string"},"durationMinutes":{"description":"one of the meeting type’s lengths. Defaults to its first","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"options":{"description":"starts, each an open time of the meeting type, and no two overlap. At most 10 while held","minItems":2,"maxItems":100,"type":"array","items":{"type":"string","format":"date-time"}},"kind":{"description":"times, the default: people answer each of `options`. dates: each of `dates` is a whole day. paint: people paint the half hours they are free inside `range`, and `paint.top` ranks its best starts","type":"string","enum":["times","dates","paint"]},"dates":{"description":"2 to 100 dates (YYYY-MM-DD), each once: a poll of dates alone, with no length or zone","minItems":2,"maxItems":100,"type":"array","items":{"type":"string"}},"title":{"description":"defaults to the meeting type’s","type":"string","minLength":1,"maxLength":200},"holdTimes":{"description":"hold each time on the calendar. Defaults to true, and proposals cannot be on with it","type":"boolean"},"timeZone":{"description":"the zone its times and days are shown in. Defaults to the meeting type’s","type":"string"},"allowProposals":{"type":"boolean"},"results":{"type":"string","enum":["names","counts"]},"autoChoose":{"type":"boolean"},"expiresInDays":{"description":"defaults to 7 with holds, 14 without","type":"integer","minimum":1,"maximum":30},"range":{"description":"its days, `startDate` and `endDate` as YYYY-MM-DD, and daily hours, `dayStartMinute` and `dayEndMinute` as minutes after midnight in its zone, on the half hour. Times can be added inside it. A poll of painted time needs it with its hours, at most 14 days of at most 16 hours, and is painted inside it","type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"dayStartMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30},"dayEndMinute":{"type":"integer","minimum":0,"maximum":1440,"multipleOf":30}},"required":["startDate","endDate"]},"expected":{"description":"people you expect to answer, at most 50","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"required":{"type":"boolean"}},"required":["name"]}}},"required":["eventTypeId"],"additionalProperties":false},"example":{"eventTypeId":"EVENT_TYPE_ID","options":["2026-12-03T15:00:00Z","2026-12-04T15:00:00Z"]}}}},"responses":{"201":{"description":"HostPoll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostPoll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"polls","x-capability-checked":["book_from_polls"],"x-max-body-bytes":65536}},"/api/v1/me/polls/{id}":{"get":{"operationId":"getHostPoll","description":"One of the host’s polls, whatever its age or status, with everyone’s answers and who voted for which times.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_ID"}],"responses":{"200":{"description":"HostPoll","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostPoll"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"polls","x-max-body-bytes":65536}},"/api/v1/me/polls/{id}/choose":{"post":{"operationId":"choosePollOption","description":"Books one of an open poll’s times for the people who picked it, and releases every hold. On a poll of painted time, it books a start on its grid, for the people whose painted time covers the meeting. `eventsLeftOn` names calendars where a hold’s event could not be removed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"description":"one of the poll’s times. On a poll of painted time, a start on its grid","type":"string","format":"date-time"}},"required":["start"],"additionalProperties":false},"example":{"start":"2026-12-03T15:00:00Z"}}}},"responses":{"200":{"description":"Booking & { eventsLeftOn: string[], uninvited: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoosePollOptionAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"book_from_polls","x-max-body-bytes":65536}},"/api/v1/me/polls/{id}/cancel":{"post":{"operationId":"cancelPoll","description":"Ends an open poll without a booking, and releases every hold. Everyone who answered is emailed that it ended. The body can be empty.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"POLL_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"HostPoll & { eventsLeftOn: string[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelPollAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"polls","x-capability-checked":["polls"],"x-max-body-bytes":65536}},"/api/v1/teams/{team}":{"get":{"operationId":"getTeamPage","description":"A team’s public page: its public meeting types, and the members who chose to be named.","parameters":[{"name":"team","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"engines"}],"responses":{"200":{"description":"{ team: { slug: string, name: string, description: string }, eventTypes: PublicEventType[], members: [{ name: string, handle: string | null }] (Those who chose to be listed) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTeamPageAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/event-types":{"get":{"operationId":"listTeamEventTypes","description":"A team’s own meeting types and who hosts each.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"TeamEventType[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTeamEventTypesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"createTeamEventType","description":"Makes a team meeting type. The owner and admins of the team can use it. If it has a price or a fee and a different member organizes it, a key needs `team_reach`. Without it, the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,48}[a-z0-9]$"},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440}},"incrementMinutes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"type":"integer","minimum":1,"maximum":365},"addOnPrices":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]},"organizerId":{"type":"string","description":"the member who leads its meetings, whose calendar they go on and whose Stripe account is paid"},"coHostIds":{"description":"the members who host it too: a time is offered when every host is free","type":"array","items":{"type":"string"}},"teamScheduleId":{"description":"the team schedule that gives its hours. Null for the own default schedule of each host","type":["string","null"]},"restrictionScheduleId":{"description":"the team schedule that it must stay inside. Null for none","type":["string","null"]}},"required":["slug","title","durations","organizerId","coHostIds"],"additionalProperties":false},"example":{"slug":"panel","title":"Panel interview","durations":[45],"organizerId":"USER_ID","coHostIds":["OTHER_USER_ID"]}}}},"responses":{"201":{"description":"TeamEventType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamEventType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-capability-checked":["team_reach"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/event-types/{id}":{"patch":{"operationId":"updateTeamEventType","description":"Changes the given fields of a team’s meeting type. Its owner and admins. A key needs `team_reach` to change the price, a fee or how it is paid of one another member organizes.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"EVENT_TYPE_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,48}[a-z0-9]$"},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440}},"incrementMinutes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"type":"integer","minimum":1,"maximum":365},"addOnPrices":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]},"teamScheduleId":{"description":"the team schedule that gives its hours. Null for the own default schedule of each host","type":["string","null"]},"restrictionScheduleId":{"description":"the team schedule that it must stay inside. Null for none","type":["string","null"]}},"additionalProperties":false},"example":{"title":"Panel"}}}},"responses":{"200":{"description":"TeamEventType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamEventType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-capability-checked":["team_reach"],"x-max-body-bytes":65536},"delete":{"operationId":"deleteTeamEventType","description":"Deletes a team meeting type. Its bookings stay. The owner and admins of the team can use it.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"EVENT_TYPE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/event-types/{id}/hosts":{"put":{"operationId":"setTeamEventTypeHosts","description":"Sets who hosts a team meeting type. A new organizer gets a meeting type with a new id at the same address. The answer is that meeting type, and `stillWithOld`: how many upcoming bookings the old organizer still organizes. The owner and admins of the team can use it. To give a meeting type with a price or a fee to a different member, a key needs `team_reach`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"EVENT_TYPE_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"organizerId":{"type":"string","description":"the member who leads its meetings, whose calendar they go on and whose Stripe account is paid"},"coHostIds":{"description":"the members who host it too: a time is offered when every host is free","type":"array","items":{"type":"string"}}},"required":["organizerId","coHostIds"],"additionalProperties":false},"example":{"organizerId":"USER_ID","coHostIds":["OTHER_USER_ID"]}}}},"responses":{"200":{"description":"TeamEventType & { stillWithOld: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeamEventTypeHostsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-capability-checked":["team_reach"],"x-max-body-bytes":65536}},"/api/v1/team-invites/{key}":{"get":{"operationId":"getTeamInvite","description":"An invitation to a team, by the key that ends its link. It changes nothing. To accept it, sign in.","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"INVITE_KEY"}],"responses":{"200":{"description":"{ team: { name: string }, role: \"admin\" | \"member\", invitedBy: string | null (Null unless forYou), state: \"open\" | \"used\" | \"revoked\" | \"lapsed\", forYou: boolean | null (True if it is for your sign-in address. Null without a sign-in) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTeamInviteAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{},{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/team-invites/{key}/accept":{"post":{"operationId":"acceptTeamInvite","description":"Joins the team an invitation is to, signed in with the address it was sent to.","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"INVITE_KEY"}],"responses":{"200":{"description":"Team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/invites":{"get":{"operationId":"listInvites","description":"A team’s invitations not accepted or withdrawn, lapsed ones too, and why an email of one will not be sent. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"TeamInvite[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInvitesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"inviteMember","description":"Invites an address to a team, by an email in the host’s name, within their daily limits. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"locale":{"description":"The language of the email. If you leave it out, it is your language","type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"again":{"description":"Replaces an open invitation to this address with a new one, and sends its email again. Left out, an open one is refused","type":"boolean"}},"required":["email","role"],"additionalProperties":false},"example":{"email":"grace@example.com","role":"member"}}}},"responses":{"201":{"description":"TeamInvite","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamInvite"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/invites/{id}":{"delete":{"operationId":"revokeInvite","description":"Withdraws an invitation: its link stops working. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"INVITE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams":{"get":{"operationId":"listTeams","description":"The teams the host is in, each with their own role in it.","responses":{"200":{"description":"Team[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTeamsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"createTeam","description":"Makes a team that the host owns. The answer is 409 `conflict` with `teams_off` if teams are off on the server. It is 409 `conflict` with `too_many_teams` if the host is in the most teams that one person can be in.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"description":"one line"},"slug":{"description":"the team’s address, /t/{slug}, unique among teams; a team that has had a meeting type keeps its own","type":"string"},"timeZone":{"description":"IANA time zone, e.g. Europe/London","type":"string"},"description":{"description":"shown on its public page, at most 1000 characters","type":"string","maxLength":1000}},"required":["name","slug","timeZone"],"additionalProperties":false},"example":{"name":"Analytical Engines","slug":"engines","timeZone":"Europe/London"}}}},"responses":{"201":{"description":"Team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}":{"get":{"operationId":"getTeam","description":"A team the host is in. One they are not in is 404 `not_found`, as one that does not exist.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"Team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"patch":{"operationId":"updateTeam","description":"Changes the given fields of a team. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"one line","type":"string","minLength":1,"maxLength":100},"slug":{"description":"the team’s address, /t/{slug}, unique among teams; a team that has had a meeting type keeps its own","type":"string"},"description":{"description":"shown on its public page, at most 1000 characters","type":"string","maxLength":1000},"timeZone":{"description":"IANA time zone, e.g. Europe/London","type":"string"}},"additionalProperties":false},"example":{"name":"Analytical Engines"}}}},"responses":{"200":{"description":"Team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536},"delete":{"operationId":"deleteTeam","description":"Deletes a team. Its links stop at once, and we cancel and refund its upcoming bookings. We tell its members by email. They keep their copies of its managed meeting types. Only the owner can use it, signed in.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/members":{"get":{"operationId":"listMembers","description":"The members of a team, each with their role and their choices in it. The owner and admins see the email address of each member. Each member sees their own address.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"TeamMember[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMembersAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/members/{userId}":{"patch":{"operationId":"setMemberRole","description":"Makes a member an admin, or an admin a member. We tell them by email. The owner and admins of the team can use it. Only the owner can take the role away from a different admin.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","member"]}},"required":["role"],"additionalProperties":false},"example":{"role":"admin"}}}},"responses":{"200":{"description":"TeamMember","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536},"delete":{"operationId":"removeMember","description":"Removes a member from a team. We tell them by email, and we cancel no booking. The owner and admins of the team can use it. Only the owner can remove an admin. While the member organizes team meeting types, the answer is 409 `conflict` with `organizes` and the `eventTypeIds`, unless `closeTypes` is true.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"},{"name":"closeTypes","in":"query","required":false,"description":"true: the meeting types they organize close to new bookings","schema":{"description":"true: the meeting types they organize close to new bookings","type":"boolean"}}],"responses":{"200":{"description":"{ closedTypes: string[] (The team’s meeting types they organized, closed to new bookings), stillLeads: number (How many of the team’s upcoming bookings they still lead: theirs, until an admin gives them away), droppedFrom: number (How many upcoming team bookings they do not co-host now), kept: number (How many meeting types the team had given them are now their own) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveTeamAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/membership":{"patch":{"operationId":"updateMembership","description":"Who in the team can book the own meeting types of the host for them. The host makes this choice. No admin can make it for them.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"bookFor":{"type":"string","enum":["nobody","admins","teammates"]}},"required":["bookFor"],"additionalProperties":false},"example":{"bookFor":"admins"}}}},"responses":{"200":{"description":"TeamMember","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/listing":{"put":{"operationId":"setTeamListing","description":"If the page of the team lists the host under People. The host makes this choice.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"listed":{"type":"boolean"}},"required":["listed"],"additionalProperties":false},"example":{"listed":true}}}},"responses":{"200":{"description":"TeamMember","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMember"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/leave":{"post":{"operationId":"leaveTeam","description":"Leaves a team that the host does not own. The team meeting types that they organize close to new bookings. The upcoming team bookings that they organize stay with them.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"{ closedTypes: string[] (The team’s meeting types they organized, closed to new bookings), stillLeads: number (How many of the team’s upcoming bookings they still lead: theirs, until an admin gives them away), droppedFrom: number (How many upcoming team bookings they do not co-host now), kept: number (How many meeting types the team had given them are now their own) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveTeamAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/transfer":{"post":{"operationId":"transferTeamOwnership","description":"Gives a team to one of its members. We tell them by email. The host becomes an admin of the team. Only the owner can use it, signed in.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"toUserId":{"type":"string"}},"required":["toUserId"],"additionalProperties":false},"example":{"toUserId":"USER_ID"}}}},"responses":{"200":{"description":"Team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/schedules":{"get":{"operationId":"listTeamSchedules","description":"The schedules a team shares, each with how many meeting types use it.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"TeamSchedule[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTeamSchedulesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"put":{"operationId":"upsertTeamSchedule","description":"Makes a schedule a team shares, or replaces one when `id` is given: every meeting type on it offers the new hours at once. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"description":"the schedule to replace. Without it, we make a new schedule","type":"string"},"name":{"type":"string","minLength":1},"timeZone":{"description":"IANA time zone, e.g. Europe/London","type":"string"},"weekly":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"number","enum":[1,2,3,4,5,6,7]},"startMinute":{"type":"integer","minimum":0,"maximum":1440},"endMinute":{"type":"integer","minimum":0,"maximum":1440}},"required":["weekday","startMinute","endMinute"]},"description":"open windows by ISO weekday, in minutes from midnight. Monday is 1. Windows on one weekday must not overlap"},"overrides":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"windows":{"type":"array","items":{"type":"object","properties":{"startMinute":{"type":"integer","minimum":0,"maximum":1440},"endMinute":{"type":"integer","minimum":0,"maximum":1440}},"required":["startMinute","endMinute"]}}},"required":["date","windows"]},"description":"dates, YYYY-MM-DD, with their own windows instead of the windows of the week. No windows means closed. One override for each date"},"zoneChanges":{"description":"from each fromDate, YYYY-MM-DD, the hours are in that time zone. It replaces the changes with a date after today. If you leave it out, the changes stay","type":"array","items":{"type":"object","properties":{"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"timeZone":{"type":"string"}},"required":["fromDate","timeZone"]}}},"required":["name","timeZone","weekly","overrides"],"additionalProperties":false},"example":{"name":"Support hours","timeZone":"Europe/London","weekly":[{"weekday":1,"startMinute":540,"endMinute":1020}],"overrides":[]}}}},"responses":{"200":{"description":"TeamSchedule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamSchedule"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/schedules/{id}":{"delete":{"operationId":"deleteTeamSchedule","description":"Deletes a schedule of a team that nothing uses. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"SCHEDULE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/managed-types":{"get":{"operationId":"listManagedTypes","description":"The meeting types that a team manages. The owner and admins see all of them, with who has a copy. A member sees those that they have a copy of.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"responses":{"200":{"description":"ManagedType[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListManagedTypesAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"createManagedType","description":"Makes a meeting type a team manages, and no one’s copy yet. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,48}[a-z0-9]$"},"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440}},"incrementMinutes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"type":"integer","minimum":1,"maximum":365},"addOnPrices":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]}},"required":["slug","title","durations"],"description":"the template’s own fields, as a meeting type’s"},"locked":{"description":"the fields no member can change on their copy: they follow the template","maxItems":39,"type":"array","items":{"type":"string","enum":["title","description","durations","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays","teamScheduleId","restrictionScheduleId"]}},"teamScheduleId":{"description":"the team schedule that gives its copies their hours. Null for the own hours of each member","type":["string","null"]},"restrictionScheduleId":{"description":"the team schedule that its copies must stay inside. Null for none","type":["string","null"]}},"required":["fields","locked"],"additionalProperties":false},"example":{"fields":{"slug":"demo","title":"Product demo","durations":[30]},"locked":["title","durations"]}}}},"responses":{"201":{"description":"ManagedType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/managed-types/{id}":{"patch":{"operationId":"updateManagedType","description":"Changes the given fields of a managed meeting type, and each locked field on the copy of each member. We tell each member whose copy changed by email. The owner and admins of the team can use it. A key needs `team_reach` to change the price, a fee or the payment method on the copy of a different member. Without it, the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGED_TYPE_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"description":"the template’s own fields, as a meeting type’s","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":2000},"durations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":1440}},"incrementMinutes":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},"bufferBeforeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"bufferAfterMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"minNoticeMinutes":{"type":"integer","minimum":0,"maximum":2147483647},"windowDays":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerWeek":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"maxPerMonth":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":2147483647},{"type":"null"}]},"questions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"label":{"type":"string","minLength":1,"maxLength":200},"required":{"type":"boolean"},"type":{"type":"string","enum":["text","textarea","select","multiselect","checkbox","phone"]},"options":{"maxItems":250,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"required":["label","required","type"]}},"isPublic":{"type":"boolean"},"reminderMinutes":{"maxItems":5,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":2147483647}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"]},"locations":{"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"anyOf":[{"type":"string","maxLength":50,"pattern":"^\\+?[\\d\\s().-]*\\d[\\d\\s().-]*$"},{"type":"null"}]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string","maxLength":2000}},"required":["kind","url"]}]}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"integer","minimum":1,"maximum":8760}},"required":["kind","hours"]},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"integer","minimum":1,"maximum":720},"seatsPerSlot":{"anyOf":[{"type":"integer","minimum":2,"maximum":1000},{"type":"null"}]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"integer","minimum":2,"maximum":12}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"cutoffHours":{"type":"integer","minimum":0,"maximum":8760},"lateFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]}},"required":["text","cutoffHours"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"price":{"anyOf":[{"type":"object","properties":{"amountMinor":{"type":"integer","minimum":1,"maximum":99999999},"currency":{"type":"string"}},"required":["amountMinor","currency"]},{"type":"null"}]},"paymentMode":{"type":"string","enum":["checkout","invoice"]},"invoiceDaysUntilDue":{"type":"integer","minimum":1,"maximum":365},"addOnPrices":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string","minLength":1},"option":{"type":"string","minLength":1},"amountMinor":{"type":"integer","minimum":0,"maximum":99999999}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean"},"redirectUrl":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled","reminder"]}},"embedOrigins":{"maxItems":20,"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}]}}},"locked":{"description":"the fields no member can change on their copy: they follow the template","maxItems":39,"type":"array","items":{"type":"string","enum":["title","description","durations","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays","teamScheduleId","restrictionScheduleId"]}},"teamScheduleId":{"description":"the team schedule that gives its copies their hours. Null for the own hours of each member","type":["string","null"]},"restrictionScheduleId":{"description":"the team schedule that its copies must stay inside. Null for none","type":["string","null"]}},"additionalProperties":false},"example":{"fields":{"title":"Demo"}}}}},"responses":{"200":{"description":"ManagedType","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedType"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-capability-checked":["team_reach"],"x-max-body-bytes":65536},"delete":{"operationId":"deleteManagedType","description":"Deletes a managed meeting type: its copies become their members’ own, and they are told by email. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGED_TYPE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"manage_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/managed-types/{id}/assign":{"post":{"operationId":"assignManagedType","description":"Gives members a copy of a managed meeting type, and tells them by email. Answers who was skipped, and why. Its owner and admins. A key needs `team_reach` to give another member one with a price or a fee.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGED_TYPE_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"memberIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}}},"required":["memberIds"],"additionalProperties":false},"example":{"memberIds":["USER_ID"]}}}},"responses":{"200":{"description":"{ managed: ManagedType, skipped: [{ userId: string, reason: \"not_a_member\" | \"has_copy\" | \"slug_taken\" | \"no_default_schedule\" | \"payments_not_connected\" | \"other_currency\" }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignManagedTypeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-capability-checked":["team_reach"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/managed-types/{id}/members/{userId}":{"delete":{"operationId":"unassignManagedType","description":"Takes a managed meeting type from a member, who is told by email: their copy becomes their own, or is deleted. Its owner and admins. A key needs `team_reach` to delete another member’s copy with a price or a fee.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"MANAGED_TYPE_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"},{"name":"keep","in":"query","required":true,"description":"true: the copy becomes their own meeting type; false: it is deleted","schema":{"description":"true: the copy becomes their own meeting type; false: it is deleted","type":"boolean"},"example":"true"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-capability-checked":["team_reach"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/members/{userId}/away":{"get":{"operationId":"listMemberAway","description":"The dates a member is away, with the notes of those an admin of the team set. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"}],"responses":{"200":{"description":"[{ id: string, startDate: string, endDate: string, setByAdmin: boolean (True if the owner or an admin of the team set it. Then only the owner or an admin can remove it here), note: string | null (The note of time off that the owner or an admin of the team set. Null for other time off, because a note that the member wrote belongs to them) }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMemberAwayAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"addMemberAway","description":"Adds time off for a member. Nobody can book them on those dates. We tell them by email. The answer has the time off and how many upcoming bookings they have on those dates. We do not cancel those bookings. The owner and admins of the team can use it.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD"},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"YYYY-MM-DD, on or after startDate"},"note":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}]}},"required":["startDate","endDate"],"additionalProperties":false},"example":{"startDate":"2026-12-21","endDate":"2026-12-31"}}}},"responses":{"201":{"description":"{ id: string, startDate: string, endDate: string, source: \"manual\" | \"holiday\", note: string | null, setBy: { name: string } | null (The admin of their team who set it for them. Null for their own and for a holiday), upcomingOn: number (The member’s upcoming bookings on those dates: none is cancelled) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberAwayAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/members/{userId}/away/{id}":{"delete":{"operationId":"removeMemberAway","description":"Removes time off an admin of the team set a member, who is told by email. Its owner and admins.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"AWAY_SPAN_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_members","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings":{"get":{"operationId":"listTeamBookings","description":"The bookings of the team meeting types, and of the copies that members have of its managed meeting types. They come one page at a time, by start. The owner and admins see all of them. A member sees the bookings that they host.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"memberId","in":"query","required":false,"description":"only those this member hosts","schema":{"description":"only those this member hosts","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]}},{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page, with the same filters","schema":{"description":"nextCursor from the previous page, with the same filters","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"{ bookings: TeamBooking[], nextCursor: string | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTeamBookingsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536},"post":{"operationId":"bookForMember","description":"Books a meeting type of a member, from the `bookable` route, for a person. Each rule for a person who books applies. Answers 201 with the booking. A booking with a price also has `checkoutUrl`, where the person pays.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"eventTypeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"start":{"description":"one of the meeting type’s open times","type":"string","format":"date-time"},"durationMinutes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"invitee":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"],"description":"the person that the booking is for: their name, their email address and their IANA time zone. The confirmation goes to that address"},"guests":{"maxItems":10,"type":"array","items":{"type":"string"},"default":[]},"answers":{"default":{},"description":"question id to answer, as booking takes them","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"array","items":{"type":"string","maxLength":2000}}]}},"oneOffLinkId":{"type":"string"},"attemptKey":{"description":"as for POST /api/v1/bookings: new for each attempt and the same on its retries","type":"string","pattern":"^[A-Za-z0-9_-]{22,64}$"},"verificationCode":{"type":"string","pattern":"^\\d{6}$"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"utm":{"type":"object","properties":{"source":{"type":"string","maxLength":200},"medium":{"type":"string","maxLength":200},"campaign":{"type":"string","maxLength":200},"term":{"type":"string","maxLength":200},"content":{"type":"string","maxLength":200}},"additionalProperties":false},"locationIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"inviteePhone":{"type":"string","maxLength":50},"recurringCount":{"type":"integer","minimum":2,"maximum":12},"packageToken":{"type":"string","minLength":1,"maxLength":200}},"required":["eventTypeId","start","invitee"],"additionalProperties":false},"example":{"eventTypeId":"00000000-0000-4000-8000-000000000000","start":"2026-12-03T10:00:00Z","invitee":{"name":"Grace Hopper","email":"grace@example.com","timeZone":"America/New_York"}}}}},"responses":{"201":{"description":"NewBooking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBooking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/cancel":{"post":{"operationId":"cancelTeamBooking","description":"Cancels a team booking as its organizer can. We email both sides, and we refund a paid booking. The body can be empty. The owner and admins of the team can use it, and the member who booked it for a teammate. For a booking with a payment, a key also needs `charge_fees`. Without it, the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"at most 2000 characters. The email to each side contains it","type":"string"},"bookedByMe":{"description":"Cancel it only if you booked it for a teammate","type":"boolean","const":true}},"additionalProperties":false},"example":{"reason":"Something came up"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/times":{"get":{"operationId":"getTeamBookingTimes","description":"The times that a team booking can move to, at its own length, for its current hosts. The owner and admins of the team can use it.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"},{"name":"from","in":"query","required":false,"description":"start of the range. Defaults to now","schema":{"description":"start of the range. Defaults to now","type":"string","format":"date-time"}},{"name":"to","in":"query","required":false,"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","schema":{"description":"end of the range. Defaults to from + 14 days, at most 62 days after from","type":"string","format":"date-time"}}],"responses":{"200":{"description":"Availability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/reschedule":{"post":{"operationId":"rescheduleTeamBooking","description":"Moves a team booking to a new start from its times route, as its organizer can. The booking keeps its length. We email both sides. The owner and admins of the team can use it. For a booking with a payment, a key also needs `charge_fees`. Without it, the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"start":{"description":"the new start","type":"string","format":"date-time"}},"required":["start"],"additionalProperties":false},"example":{"start":"2026-12-04T10:00:00Z"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/approve":{"post":{"operationId":"approveTeamBooking","description":"Approves a request to book a team meeting type, as its organizer can. The owner and admins of the team can use it. If we hold the card of the person that the booking is for, the approval charges it. Then a key also needs `charge_on_approval`, or the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-capability-checked":["charge_on_approval"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/decline":{"post":{"operationId":"declineTeamBooking","description":"Declines a request to book a team meeting type. Its time is free at once. We email the person that the booking is for, with the reason if you give one. The owner and admins of the team can use it.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"at most 2000 characters. The email to the person that the booking is for contains it","type":"string"}},"additionalProperties":false},"example":{"reason":"We are away that week"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/no-show":{"post":{"operationId":"markTeamNoShow","description":"Marks a no-show at a team meeting that started. It marks the person that the booking is for, or with `attendeeId` one seat of a group meeting. The owner and admins of the team can use it. If the mark charges a no-show fee, a key also needs `charge_fees`. Without it, the answer is 403 `forbidden` with `not_allowed_by_host`.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"attendeeId":{"description":"the attendeeId of a seat. A group meeting needs it","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"additionalProperties":false},"example":{}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-capability-checked":["charge_fees"],"x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/members/{userId}/bookable":{"get":{"operationId":"listBookableFor","description":"The meeting types a member lets the host book for them.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"USER_ID"}],"responses":{"200":{"description":"EventType[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBookableForAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/reassign-targets":{"get":{"operationId":"listReassignTargets","description":"The members who can take a team booking, and if each one is free at that time, as far as we know. The owner and admins can use it, and the organizer of the booking.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"responses":{"200":{"description":"{ targets: [{ userId: string, name: string, as: \"lead\" | \"co_host\" (lead: they become its organizer. co_host: they take the place of one of its co-hosts), free: boolean (True if nothing that we know of is in their way at that time. We check their calendar again when you give it), warnings: (\"outside_hours\" | \"limit\")[] (What the booking goes past if they get it: their hours for it, or a limit of theirs) }], coHosts: [{ userId: string, name: string }] (The co-hosts of the booking, and a former member among them. A `co_host` target takes the place of one of them, set with `replaces`. Empty if no one can be a co-host) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListReassignTargetsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/bookings/{id}/reassign":{"post":{"operationId":"reassignBooking","description":"Gives a team booking to a different member from the `reassign-targets` route. The booking goes on their calendar. We email the person that the booking is for and the hosts. The owner and admins can use it, and the organizer of the booking. The answer is 409 `slot_unavailable` if the member is not free at that time. It is 409 `conflict` with a `reason` if the booking cannot go to a different member. Examples: a booking with a payment, a series or a group meeting.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"BOOKING_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"toUserId":{"type":"string"},"replaces":{"description":"the co-host whose place they take. Without it, they become the organizer. Only the owner and admins can set it","type":"string"}},"required":["toUserId"],"additionalProperties":false},"example":{"toUserId":"USER_ID"}}}},"responses":{"200":{"description":"Booking","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Booking"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"team_reach","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/stats":{"get":{"operationId":"getTeamStats","description":"The results of the team bookings that start from `from` to `to`, in total and for each member. The range is 366 days at most. A member who is not the owner or an admin gives their own id as `memberId`, and reads the bookings that they host.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"example":"2026-12-01T00:00:00Z"},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"example":"2027-01-01T00:00:00Z"},{"name":"memberId","in":"query","required":false,"description":"only the bookings this member hosts","schema":{"description":"only the bookings this member hosts","type":"string"}},{"name":"eventTypeId","in":"query","required":false,"description":"only this meeting type’s","schema":{"description":"only this meeting type’s","type":"string"}}],"responses":{"200":{"description":"{ booked: number, completed: number, cancelledByInvitee: number, cancelledByHost: number, rescheduled: number, noShow: number, declined: number, expired: number, byEventType: [{ eventTypeId: string, title: string, booked: number, completed: number, cancelled: number, noShow: number }], byWeekdayHour: number[][], medianLeadHours: number | null, byMember: [{ userId: string, name: string, booked: number, completed: number, cancelled: number, noShow: number }] (The hosts of the meetings counted, most first: one with several hosts counts once under each, and once in the totals) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTeamStatsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-max-body-bytes":65536}},"/api/v1/me/teams/{teamId}/explain":{"get":{"operationId":"explainTeamTime","description":"Why a team meeting type offers a time or does not offer it, host by host. The host sees all of their own reasons. For a different host, it does not say what keeps them busy or when. The owner and admins can use it, and the hosts of the meeting type.","parameters":[{"name":"teamId","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"TEAM_ID"},{"name":"eventTypeId","in":"query","required":true,"schema":{"type":"string"},"example":"EVENT_TYPE_ID"},{"name":"start","in":"query","required":true,"description":"the start to explain","schema":{"description":"the start to explain","type":"string","format":"date-time"},"example":"2026-12-03T10:00:00Z"},{"name":"duration","in":"query","required":false,"description":"minutes, one of the lengths of the meeting type. The default is the first length","schema":{"description":"minutes, one of the lengths of the meeting type. The default is the first length","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}],"responses":{"200":{"description":"{ offered: boolean, byHost: ({ userId: string, name: string, you: false, reasons: [{ code: \"outside_hours\" | \"outside_restriction\" | \"not_on_grid\" | \"min_notice\" | \"beyond_window\" | \"outside_date_range\" | \"away\" | \"limit_count\" | \"limit_minutes\" | \"host_limit_count\" | \"host_limit_minutes\" | \"not_first_slot\" | \"day_not_offered\" | \"busy\", period?: \"day\" | \"week\" | \"month\" }] } | { userId: string, name: string, you: true, reasons: [{ code: \"buffer\" | \"booked\" | \"outside_hours\" | \"outside_restriction\" | \"not_on_grid\" | \"min_notice\" | \"beyond_window\" | \"outside_date_range\" | \"away\" | \"calendar_busy\" | \"limit_count\" | \"limit_minutes\" | \"host_limit_count\" | \"host_limit_minutes\" | \"not_first_slot\" | \"day_not_offered\" | \"busy\", period?: \"day\" | \"week\" | \"month\", blockedBy?: { … } }] })[] (The organizer first, then the co-hosts in their order. Your own reasons are complete if the app or key can see your hours, with the permission see_hours. The reasons of another host do not say what keeps them busy or when) }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExplainTeamTimeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_teams","x-capability-checked":["see_hours"],"x-max-body-bytes":65536}},"/api/v1/me":{"get":{"operationId":"getMe","description":"The signed-in host. `capabilities` lists the ids of what the calling API key or app can do, for example `add_webhooks` for webhooks. It is null for a signed-in host, who can do all of it.","responses":{"200":{"description":"{ id: string, email: string, name: string, handle: string | null, timeZone: string, deletion: { since: instant, message: string } | null, capabilities: string[] | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMeAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_profile","x-max-body-bytes":65536},"patch":{"operationId":"updateProfile","description":"Changes the host’s handle, name or time zone.","requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"description":"the host’s address on the site, any case, kept lower-case","type":"string"},"name":{"description":"one line, at most 100 characters","type":"string","minLength":1,"maxLength":100},"timeZone":{"description":"IANA time zone, e.g. America/New_York","type":"string"}},"additionalProperties":false},"example":{"name":"Mara Lindqvist","timeZone":"Europe/Stockholm"}}}},"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_profile","x-max-body-bytes":65536},"delete":{"operationId":"deleteAccount","description":"Starts to delete the host and everything they have. The delete is asynchronous: it finishes once each person who booked has their money back and is told. So this answers its state, 200 with `status: deleting` and a message, not 204. The host is emailed if it takes longer than normal.","responses":{"200":{"description":"{ status: \"deleting\", message: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/settings":{"get":{"operationId":"getHostSettings","description":"The host’s settings for every booking page, email and meeting type. Each one never set reads as its default.","responses":{"200":{"description":"HostSettings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostSettings"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":65536},"patch":{"operationId":"updateHostSettings","description":"Changes the given host settings and answers them all. ga4Id and metaPixelId report every visit to the host’s booking pages to that Google Analytics or Meta account. discoverable lists the host on Discover, where all people can see their name, bio and public meeting types. AI assistants can also find them by name there. replyTo is where replies go to the emails that are sent in the name of the host.","requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"brandColor":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"hideBranding":{"type":"boolean"},"replyTo":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}]},"hideEmail":{"type":"boolean"},"bio":{"type":"string","maxLength":1000},"ga4Id":{"anyOf":[{"type":"string","pattern":"^G-[A-Z0-9]{4,12}$"},{"type":"null"}]},"metaPixelId":{"anyOf":[{"type":"string","pattern":"^\\d{6,20}$"},{"type":"null"}]},"hostMax":{"description":"the most meetings, by count, and minutes the host takes a day, week and month across every meeting type. Null for no limit","type":"object","properties":{"count":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]},"minutes":{"type":"object","properties":{"perDay":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perWeek":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]},"perMonth":{"anyOf":[{"type":"integer","minimum":0,"maximum":2147483647},{"type":"null"}]}},"required":["perDay","perWeek","perMonth"]}},"required":["count","minutes"]},"hostEmailsOff":{"type":"array","items":{"type":"string","enum":["confirmation","rescheduled","cancelled"]}},"groupLinks":{"description":"who can be in a group link with the host: anyone, their teammates, or no one, as off","type":"string","enum":["off","teammates","anyone"]},"showPhoto":{"description":"the booking pages show the photo of the host’s Google account. False deletes our copy of it","type":"boolean"},"nameLine":{"description":"one line under the host’s name on the booking pages, 60 characters or fewer. Empty for none","type":"string"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"discoverable":{"type":"boolean"}},"additionalProperties":false},"example":{"brandColor":"#1a56db","hostEmailsOff":["confirmation"]}}}},"responses":{"200":{"description":"HostSettings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostSettings"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":65536}},"/api/v1/me/logo":{"put":{"operationId":"setLogo","description":"Sets the host’s logo: a PNG, JPEG or WebP of at most 256 KiB and 2048 pixels a side, as base64. Answers { logoUrl }.","requestBody":{"required":true,"description":"JSON, at most 350552 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp"]},"dataBase64":{"type":"string","description":"the image, base64"}},"required":["contentType","dataBase64"],"additionalProperties":false},"example":{"contentType":"image/png","dataBase64":"iVBORw0KGgo…"}}}},"responses":{"200":{"description":"{ logoUrl: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLogoAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":350552},"delete":{"operationId":"removeLogo","description":"Removes the host’s logo, if they have one.","responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"page_settings","x-max-body-bytes":65536}},"/api/v1/me/api-keys":{"get":{"operationId":"listApiKeys","description":"The host’s API keys, revoked ones included. Never the keys themselves.","responses":{"200":{"description":"[{ id: string, name: string, capabilities: string[], createdAt: instant, lastUsedAt: instant | null, revokedAt: instant | null }]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536},"post":{"operationId":"createApiKey","description":"Creates an API key that can do what `capabilities` names, fixed for its life. The key is in this response only.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"what the host calls the key, not empty"},"capabilities":{"type":"array","items":{"type":"string"},"description":"what the key can do: capability ids, at least one, each known"}},"required":["name","capabilities"],"additionalProperties":false},"example":{"name":"Calendar assistant","capabilities":["see_meeting_types","see_bookings"]}}}},"responses":{"200":{"description":"{ id: string, key: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/api-keys/{id}":{"delete":{"operationId":"revokeApiKey","description":"Revokes an API key.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"API_KEY_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/connections":{"get":{"operationId":"listConnections","description":"The host’s calendar connections with their calendars.","responses":{"200":{"description":"CalendarConnection[]","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListConnectionsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_calendars","x-max-body-bytes":65536}},"/api/v1/me/calendar-state":{"get":{"operationId":"getMyCalendarState","description":"Says if the host’s calendars can take bookings, in ok, and why not, in reason. No time is offered until they can.","responses":{"200":{"description":"{ ok: boolean, reason: \"no_connection\" | \"needs_reauth\" | \"no_write_target\" | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMyCalendarStateAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_calendars","x-max-body-bytes":65536}},"/api/v1/me/calendars/{id}":{"patch":{"operationId":"updateCalendar","description":"Changes if a calendar counts as busy time, or if its all-day events are ignored, with ignoreAllDay. That works only where Google lets the product tell them apart: allDayReadable. Or it makes it the one bookings are written to. Answers { toFollow }: [\"calendars\"] while the product still reads the calendar.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CALENDAR_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"checkConflicts":{"type":"boolean"},"isWriteTarget":{"type":"boolean"},"ignoreAllDay":{"type":"boolean"}},"additionalProperties":false},"example":{"ignoreAllDay":true}}}},"responses":{"200":{"description":"{ toFollow: (\"calendars\" | \"bookingsCalendar\" | \"disconnect\")[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendarAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_calendars","x-max-body-bytes":65536}},"/api/v1/me/connections/{id}/bookings-calendar":{"post":{"operationId":"useBookingsCalendar","description":"Sends new bookings of a connected Google account to the calendar the product makes in it for bookings, making it if it is missing. Answers { created, toFollow }: [\"bookingsCalendar\"] while it is still being made.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONNECTION_ID"}],"responses":{"200":{"description":"{ created: boolean | null, toFollow: (\"calendars\" | \"bookingsCalendar\" | \"disconnect\")[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseBookingsCalendarAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"api_other","x-max-body-bytes":65536}},"/api/v1/me/calendar-move":{"get":{"operationId":"getBookingsToMove","description":"Counts the host’s future bookings whose events are on a calendar that does not receive bookings now. Answers { writeTarget, from }: from lists each such calendar with its number of bookings.","responses":{"200":{"description":"{ writeTarget: string | null, from: [{ calendarId: string, bookings: number }] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetBookingsToMoveAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_calendars","x-max-body-bytes":65536},"post":{"operationId":"moveBookingsToWriteTarget","description":"Moves the events of those bookings to the calendar that receives bookings. The people who booked get a new invitation from Google. Answers { moved, left }: left is the number still to move, for a second call.","responses":{"200":{"description":"{ moved: number, left: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveBookingsToWriteTargetAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"move_bookings","x-capability-checked":["change_calendars"],"x-max-body-bytes":65536}},"/api/v1/me/connections/{id}":{"delete":{"operationId":"disconnect","description":"Removes a calendar connection. Answers { toFollow: [\"disconnect\"] }: it is listed as disconnecting until the rest is done in the background.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONNECTION_ID"}],"responses":{"200":{"description":"{ toFollow: (\"calendars\" | \"bookingsCalendar\" | \"disconnect\")[] }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendarAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/contacts":{"get":{"operationId":"listContacts","description":"The people who have booked with the host, by address, a page at a time. `query` finds a name or address. `email` finds the one contact with that exact address, in any case. `list` finds those on a list.","parameters":[{"name":"query","in":"query","required":false,"description":"part of a name or an address, any case","schema":{"description":"part of a name or an address, any case","type":"string","minLength":1,"maxLength":200},"example":"grace"},{"name":"email","in":"query","required":false,"description":"exactly this address, any case","schema":{"description":"exactly this address, any case","type":"string"}},{"name":"list","in":"query","required":false,"description":"only contacts on this list","schema":{"description":"only contacts on this list","type":"string","minLength":1,"maxLength":100}},{"name":"cursor","in":"query","required":false,"description":"nextCursor from the previous page, with the same filters","schema":{"description":"nextCursor from the previous page, with the same filters","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}}],"responses":{"200":{"description":"{ contacts: Contact[], nextCursor: string | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/{id}":{"get":{"operationId":"getContact","description":"One contact: what the host keeps on them, their open reminders, and the host’s notes, newest first. It also gives their meetings with the host, latest first, at most 100.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONTACT_ID"}],"responses":{"200":{"description":"Contact & { notes: ContactNote[], reminders: ContactReminder[], history: ContactBooking[], moreHistory: boolean }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetContactAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"see_contacts","x-max-body-bytes":65536},"patch":{"operationId":"updateContact","description":"Changes a contact’s name, its details in `fields`, or its lists. Details and lists are replaced whole. A later booking never changes them.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONTACT_ID"}],"requestBody":{"required":false,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"one line, at most 200 characters","type":"string","minLength":1,"maxLength":200},"fields":{"description":"at most 50. Names at most 100 characters, values at most 500, one line each","type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":100},"additionalProperties":{"type":"string","minLength":1,"maxLength":500}},"lists":{"description":"at most 50, each one line of at most 100 characters. A list given twice is kept once","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}}},"additionalProperties":false},"example":{"fields":{"Company":"Navy"},"lists":["Clients"]}}}},"responses":{"200":{"description":"Contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/{id}/notes":{"post":{"operationId":"addContactNote","description":"Adds a note to a contact: at most 5000 characters, and it can have line breaks. A contact holds at most 200.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONTACT_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","maxLength":5000,"description":"at most 5000 characters, and it can have line breaks. Not only spaces"}},"required":["body"],"additionalProperties":false},"example":{"body":"Wants a follow-up in March."}}}},"responses":{"201":{"description":"ContactNote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNote"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/notes/{id}":{"delete":{"operationId":"deleteContactNote","description":"Deletes one of the host’s notes on a contact.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"NOTE_ID"}],"responses":{"204":{"description":"Done, with no body."},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/{id}/reminders":{"post":{"operationId":"addContactReminder","description":"Sets a reminder on a contact. At `dueAt`, at least a minute ahead, the host is emailed once, with `note`. The contact is never emailed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONTACT_ID"}],"requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"dueAt":{"description":"when to remind the host, at least a minute ahead","type":"string","format":"date-time"},"note":{"type":"string","maxLength":1000,"description":"at most 1000 characters. It can be empty"}},"required":["dueAt","note"],"additionalProperties":false},"example":{"dueAt":"2026-12-03T15:00:00Z","note":"Ask about the proposal"}}}},"responses":{"201":{"description":"ContactReminder","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReminder"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/reminders/{id}/complete":{"post":{"operationId":"completeContactReminder","description":"Marks a reminder done: its email, if not sent yet, never is. One already done is answered as it is.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"REMINDER_ID"}],"responses":{"200":{"description":"ContactReminder","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactReminder"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/{id}/booking-link":{"get":{"operationId":"bookFromContact","description":"The link to one of the host’s meeting types, with the contact’s name and address filled in. Nothing is sent: the host passes it on.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1},"example":"CONTACT_ID"},{"name":"eventTypeId","in":"query","required":true,"description":"one of the host’s meeting types","schema":{"type":"string","description":"one of the host’s meeting types"},"example":"EVENT_TYPE_ID"}],"responses":{"200":{"description":"{ url: string }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookFromContactAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"change_contacts","x-max-body-bytes":65536}},"/api/v1/me/contacts/forget":{"post":{"operationId":"forgetContact","description":"Forgets a person in the host’s records, for good. That is their name, address, phone and answers on the host’s bookings, and their contact with its notes and reminders. It is refused with `conflict` while they have a meeting not yet over: `detail.reason` `upcoming_bookings`, so cancel it first. It is also refused while something is still on its way to them: `still_delivering`, so try again after `detail.retryAfterSeconds`. Answers what it removed and kept, by count.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"the person’s address, any case","type":"string"}},"required":["email"],"additionalProperties":false},"example":{"email":"grace@example.com"}}}},"responses":{"200":{"description":"{ bookings: number, attendees: number, answers: number, contacts: number, pollVotes: number, packagePurchases: number, messageSends: number, webhookDeliveries: number, webhookDeliveriesGivenUp: number, calendarEventsKept: number, blocklistEntriesKept: number, outreach: number, contactMessages: number }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgetContactAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/stats":{"get":{"operationId":"getStats","description":"What became of the host’s bookings that start in [from, to), at most 366 days. It gives meetings booked, completed, cancelled with by whom, moved and missed, and requests declined or expired. It gives them by meeting type, and by weekday and hour in the host’s zone, with 0 as Monday.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time"},"example":"2026-11-01T00:00:00Z"},{"name":"to","in":"query","required":true,"description":"at most 366 days after from","schema":{"description":"at most 366 days after from","type":"string","format":"date-time"},"example":"2026-12-01T00:00:00Z"},{"name":"eventTypeId","in":"query","required":false,"description":"only this meeting type","schema":{"description":"only this meeting type","type":"string"}}],"responses":{"200":{"description":"{ booked: number, completed: number, cancelledByInvitee: number, cancelledByHost: number, rescheduled: number, noShow: number, declined: number, expired: number, byEventType: [{ eventTypeId: string, title: string, booked: number, completed: number, cancelled: number, noShow: number }], byWeekdayHour: number[][], medianLeadHours: number | null }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetStatsAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"bearer":[]},{"session":[]}],"x-capability":"stats","x-max-body-bytes":65536}},"/api/v1/me/export":{"get":{"operationId":"exportAccountData","description":"Downloads everything the host’s account holds, with the details of the people who booked. It is one JSON document, streamed as it is read: `{ \"tables\": { \"<table>\": [rows] }, \"complete\": true }`. A download cut short ends without `\"complete\": true` and is not valid JSON. It is not a snapshot. A booking changed while it runs can appear as it was, or be missing or doubled if it was moved.","responses":{"200":{"description":"{ product: string, exportedAt: instant, tables: { [key]: { [key]: any }[] }, complete: true }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportAccountDataAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}},"/api/v1/me/import/calendly":{"post":{"operationId":"importFromCalendly","description":"Imports the host’s one-to-one Calendly meeting types and their hours, read with a Calendly personal access token. The token needs the scopes `users:read`, `event_types:read` and `availability:read`, and is used for this call only and never kept. Answers `not_found` while `CALENDLY_IMPORT` switches the import off. `dryRun: true` answers the changes it plans, and makes none. It can take up to about a minute.","requestBody":{"required":true,"description":"JSON, at most 65536 bytes. A longer body is refused with `invalid_input`: one issue, `too_big`, on the body as a whole.","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"a Calendly personal access token"},"dryRun":{"type":"boolean","description":"true: answer the changes it plans, and make none"}},"required":["token","dryRun"],"additionalProperties":false},"example":{"token":"CALENDLY_PERSONAL_ACCESS_TOKEN","dryRun":true}}}},"responses":{"200":{"description":"{ eventTypes: [{ slug: string, name: string, action: \"create\" | \"skip\", reason?: \"team\" | \"paid\" | \"deleted\" | \"inactive\" | \"group\" | \"one_off\" | \"poll\" | \"unknown_kind\" | \"admin_managed\" | \"slug_taken\" | \"title_too_long\" | \"invalid\" | \"custom_hours\" | \"schedule_skipped\" | \"several_schedules\", issues?: [{ path: string, problem: \"invalid\" | \"required\" | \"too_small\" | \"too_big\" | \"not_whole\" | \"duplicate\" | \"unsupported\" | \"locked\", limit?: number, of?: \"length\" | \"value\" | \"count\", inclusive?: boolean, message: string }], calendlySchedule?: string, schedule?: string, omitted?: [{ field: string, why: string }], descriptionCut?: true }], schedules: [{ name: string, action: \"create\" | \"skip\", savedAs?: string, reason?: \"invalid\" | \"exists\" | \"unreadable\", detail?: string, issues?: [{ path: string, problem: \"invalid\" | \"required\" | \"too_small\" | \"too_big\" | \"not_whole\" | \"duplicate\" | \"unsupported\" | \"locked\", limit?: number, of?: \"length\" | \"value\" | \"count\", inclusive?: boolean, message: string }] }], stopped?: { at: string, message: string } }","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFromCalendlyAnswer"}}}},"400":{"$ref":"#/components/responses/Error400"},"401":{"$ref":"#/components/responses/Error401"},"403":{"$ref":"#/components/responses/Error403"},"404":{"$ref":"#/components/responses/Error404"},"409":{"$ref":"#/components/responses/Error409"},"500":{"$ref":"#/components/responses/Error500"},"502":{"$ref":"#/components/responses/Error502"},"503":{"$ref":"#/components/responses/Error503"}},"security":[{"session":[]}],"x-capability":null,"x-max-body-bytes":65536}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key the host makes in the dashboard. It can do only what the host ticked for it: `x-capability`. When the call needs one of those, also `x-capability-checked`, as to approve a paid request."},"session":{"type":"apiKey","in":"cookie","name":"session","description":"A signed-in browser session."}},"schemas":{"Issue":{"type":"object","description":"One thing wrong with the input: `path` is the field, dotted. It is `path`, `query` or `body` for one of them as a whole.","required":["path","problem","message"],"properties":{"path":{"type":"string"},"problem":{"type":"string","enum":["required","too_small","too_big","not_whole","duplicate","unsupported","locked","invalid"]},"limit":{"type":"number"},"of":{"type":"string","enum":["value","length","count"]},"inclusive":{"type":"boolean"},"message":{"type":"string"}}},"Availability":{"type":"object","properties":{"link":{"$ref":"#/components/schemas/PublicEventType"},"durationMinutes":{"type":"number"},"slots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"seatsLeft":{"description":"On a seated type only: the seats still free at this start","type":"number"}},"required":["start","end"]}},"generatedAt":{"type":"string","format":"date-time"},"available":{"type":"boolean"},"unavailableReason":{"type":"string","const":"calendar_disconnected"},"bookableUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"closed":{"type":"boolean","const":true}},"required":["link","durationMinutes","slots","generatedAt","available","bookableUntil"]},"Booking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies"]},"BookingAnswer":{"type":"object","properties":{"questionId":{"type":"string"},"question":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["phone","select","text","textarea","multiselect","checkbox"]},{"type":"null"}]},"value":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["questionId","question","type","value"]},"CalendarConnection":{"type":"object","properties":{"id":{"type":"string"},"accountEmail":{"type":"string"},"status":{"type":"string","enum":["healthy","needs_reauth","revoked","disconnecting"]},"upgraded":{"type":"boolean"},"calendars":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"isPrimary":{"type":"boolean"},"ownedByUser":{"type":"boolean"},"checkConflicts":{"type":"boolean"},"isWriteTarget":{"type":"boolean"},"bookingsCalendar":{"type":"boolean"},"meetAvailable":{"type":["boolean","null"]},"missingAtGoogle":{"type":"boolean"},"ignoreAllDay":{"type":["boolean","null"]}},"required":["id","name","isPrimary","ownedByUser","checkConflicts","isWriteTarget","bookingsCalendar","meetAvailable","missingAtGoogle","ignoreAllDay"]}},"toFollow":{"type":"array","items":{"type":"string","enum":["calendars","bookingsCalendar","disconnect"]}}},"required":["id","accountEmail","status","upgraded","calendars","toFollow"]},"CancelPolicy":{"type":"object","properties":{"text":{"type":["string","null"]},"cutoffHours":{"type":"number"},"lateFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"required":["text","cutoffHours","lateFee"]},"Contact":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"lists":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"}},"required":["id","email","name","fields","lists","createdAt"]},"ContactBooking":{"type":"object","properties":{"bookingId":{"type":"string"},"eventTypeId":{"type":"string"},"eventTitle":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"role":{"type":"string","enum":["invitee","guest"]},"outcome":{"type":"string","enum":["cancelled","no_show","expired","declined","requested","awaiting_payment","upcoming","completed","ended","moved"]}},"required":["bookingId","eventTypeId","eventTitle","start","end","role","outcome"]},"ContactMessage":{"type":"object","properties":{"id":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"recipients":{"type":"number"},"sent":{"type":"number"},"notSent":{"type":"object","properties":{"expired":{"type":"number"},"bounced":{"type":"number"},"no_reply_address":{"type":"number"},"sending_not_set_up":{"type":"number"},"undeliverable":{"type":"number"},"sending_unavailable":{"type":"number"},"opted_out":{"type":"number"}}},"createdAt":{"type":"string","format":"date-time"},"to":{"type":"array","items":{"type":"string"}}},"required":["id","subject","body","recipients","sent","notSent","createdAt","to"]},"ContactNote":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","body","createdAt"]},"ContactReminder":{"type":"object","properties":{"id":{"type":"string"},"dueAt":{"type":"string","format":"date-time"},"note":{"type":"string"},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","dueAt","note","doneAt"]},"EventType":{"type":"object","properties":{"unreadableSettings":{"type":"array","items":{"type":"string","enum":["locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays"]}},"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"scheduleId":{"type":"string"},"incrementMinutes":{"type":"number"},"bufferBeforeMinutes":{"type":"number"},"bufferAfterMinutes":{"type":"number"},"minNoticeMinutes":{"type":"number"},"windowDays":{"type":["number","null"]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"type":["number","null"]},"maxPerWeek":{"type":["number","null"]},"maxPerMonth":{"type":["number","null"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"isPublic":{"type":"boolean"},"reminderMinutes":{"type":"array","items":{"type":"number"}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its color in the dashboard, and of its new Google events"},"off":{"type":"boolean","description":"Turned off: it offers no times and takes no new booking"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"number"},"seatsPerSlot":{"type":["number","null"]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"type":["number","null"]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Charged to the card saved at booking for a no-show. Null for none"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. Null when free"},"paymentMode":{"type":"string","enum":["invoice","checkout"]},"invoiceDaysUntilDue":{"type":"number"},"addOnPrices":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"option":{"type":"string"},"amountMinor":{"type":"number"}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"},"redirectUrl":{"type":["string","null"]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["cancelled","confirmation","rescheduled","reminder"]}},"embedOrigins":{"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}],"description":"The weekdays that offer it, inside the hours of its schedule. ISO: 1 Monday to 7 Sunday, on the date in the zone of the schedule. Null for each day"},"managed":{"anyOf":[{"type":"object","properties":{"managedTypeId":{"type":"string"},"teamId":{"type":"string"},"locked":{"type":"array","items":{"type":"string"}}},"required":["managedTypeId","teamId","locked"]},{"type":"null"}],"description":"Of a copy of a managed meeting type of a team: the team, and the names of the fields that only its admins change. Null for your own"}},"required":["unreadableSettings","id","slug","title","description","durations","scheduleId","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","color","off","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays","managed"]},"HostBooking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]},"answers":{"type":"array","items":{"$ref":"#/components/schemas/BookingAnswer"}},"emailsNotSent":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]},"to":{"type":"string","enum":["seat","invitee","host","co_host","left","guests"]},"reason":{"type":"string","enum":["expired","sending_unavailable","refused","unconfirmed","step_changed"]},"hostName":{"type":"string"}},"required":["kind","to","reason"]}},"hostRole":{"type":"string","enum":["lead","co_host"],"description":"co_host: you host it with others, and only its lead can change it"},"eventColor":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its meeting type’s color"},"bookedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}],"description":"The teammate of its host who booked it for the person it is for. Null when that person booked it"},"ended":{"description":"A request that ended with no booking, so its status is cancelled: declined by its host, or expired with no answer. Not given for other bookings","type":"string","enum":["declined","expired"]},"noShowFee":{"description":"What a no-show mark of the person that the booking is for charges their saved card now. Left out when it charges nothing","$ref":"#/components/schemas/Money"}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies","answers","emailsNotSent","hostRole","eventColor","bookedBy"]},"HostPoll":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"status":{"type":"string","enum":["cancelled","expired","open","chosen"]},"expiresAt":{"type":"string","format":"date-time"},"hostName":{"type":"string"},"hostTimeZone":{"type":"string"},"hostHandle":{"description":"The host’s public handle, for how their pages look. Null while they have none","type":["string","null"]},"organizerLocale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"],"description":"An account-free poll’s organizer’s language: its pages’ default"},"lockTimeZone":{"type":"boolean","description":"Voting and booking are in hostTimeZone only"},"chosenStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"kind":{"type":"string","enum":["times","dates","paint"]},"timeZone":{"type":["string","null"]},"results":{"type":"string","enum":["names","counts"]},"holdTimes":{"type":"boolean"},"allowProposals":{"type":"boolean"},"autoChoose":{"type":"boolean"},"range":{"anyOf":[{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"dayStartMinute":{"type":["number","null"]},"dayEndMinute":{"type":["number","null"]}},"required":["startDate","endDate","dayStartMinute","dayEndMinute"]},{"type":"null"}]},"round":{"type":"number"},"options":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}},"best":{"type":["number","null"]},"answered":{"type":"number"},"makerCounted":{"type":"boolean"},"expected":{"type":["number","null"]},"people":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"answered":{"type":"boolean"},"organizer":{"type":"boolean"},"required":{"type":"boolean"},"byAssistant":{"type":"boolean"},"assistantName":{"type":["string","null"]},"answers":{"$ref":"#/components/schemas/PollStandings"},"id":{"type":"string"},"email":{"type":["string","null"]},"note":{"type":["string","null"]},"personalUrl":{"type":"string"},"outreachId":{"type":["string","null"]}},"required":["label","answered","organizer","required","byAssistant","assistantName","answers","id","email","note","personalUrl","outreachId"]}},"you":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"personalUrl":{"type":"string"},"autoAnswer":{"type":"boolean"},"calendarReadAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"free":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},{"type":"null"}]},"answers":{"$ref":"#/components/schemas/PollStandings"},"invited":{"type":"boolean","description":"On a booked host’s poll: its Google invitation came to this person"}},"required":["label","personalUrl","autoAnswer","calendarReadAt","free","answers","invited"]},{"type":"null"}]},"may":{"type":"object","properties":{"answer":{"type":"boolean"},"change":{"type":"boolean"},"propose":{"type":"boolean"},"administer":{"type":"boolean"}},"required":["answer","change","propose","administer"]},"chosen":{"anyOf":[{"type":"object","properties":{"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"date":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"chosenAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["start","end","date","place","videoUrl","chosenAt"]},{"type":"null"}]},"paint":{"anyOf":[{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"free":{"type":"number"}},"required":["start","free"]}},"top":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}}},"required":["cells","top"]},{"type":"null"}]},"organizerUrl":{"type":["string","null"]},"organizerEmail":{"description":"The address an account-free poll was started with: where a replaced organizer link goes","type":["string","null"]},"claimed":{"type":"boolean","description":"A host’s poll: started from their account or claimed since, so choosing books it"},"typeLengths":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"type":"null"}]},"voters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"starts":{"type":"array","items":{"type":"string","format":"date-time"}}},"required":["name","email","starts"]}}},"required":["id","url","title","description","place","videoUrl","durationMinutes","status","expiresAt","hostName","hostTimeZone","hostHandle","organizerLocale","lockTimeZone","chosenStart","kind","timeZone","results","holdTimes","allowProposals","autoChoose","range","round","options","best","answered","makerCounted","expected","people","you","may","chosen","paint","organizerUrl","organizerEmail","claimed","typeLengths","voters"]},"HostSettings":{"type":"object","properties":{"brandColor":{"type":["string","null"]},"logoUrl":{"type":["string","null"]},"hideBranding":{"type":"boolean"},"replyTo":{"type":["string","null"]},"hideEmail":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"discoverable":{"type":"boolean"},"bio":{"type":"string"},"ga4Id":{"type":["string","null"]},"metaPixelId":{"type":["string","null"]},"hostMax":{"type":"object","properties":{"count":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]},"minutes":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]}},"required":["count","minutes"]},"hostEmailsOff":{"type":"array","items":{"type":"string","enum":["cancelled","confirmation","rescheduled"]}},"groupLinks":{"type":"string","enum":["anyone","off","teammates"]},"showPhoto":{"type":"boolean"},"photoUrl":{"type":["string","null"]},"nameLine":{"type":"string"}},"required":["brandColor","logoUrl","hideBranding","replyTo","hideEmail","locale","discoverable","bio","ga4Id","metaPixelId","hostMax","hostEmailsOff","groupLinks","showPhoto","photoUrl","nameLine"]},"Location":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"meet"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"in_person"},"address":{"type":"string"}},"required":["kind","address"]},{"type":"object","properties":{"kind":{"type":"string","const":"phone"},"number":{"type":["string","null"]}},"required":["kind","number"]},{"type":"object","properties":{"kind":{"type":"string","const":"link"},"url":{"type":"string"}},"required":["kind","url"]}]},"ManagedType":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"slug":{"type":"string","description":"Its address under each member’s handle, for good"},"fields":{"type":"object","properties":{"unreadableSettings":{"type":"array","items":{"type":"string","enum":["locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays"]}},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"incrementMinutes":{"type":"number"},"bufferBeforeMinutes":{"type":"number"},"bufferAfterMinutes":{"type":"number"},"minNoticeMinutes":{"type":"number"},"windowDays":{"type":["number","null"]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"type":["number","null"]},"maxPerWeek":{"type":["number","null"]},"maxPerMonth":{"type":["number","null"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"isPublic":{"type":"boolean"},"reminderMinutes":{"type":"array","items":{"type":"number"}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its color in the dashboard, and of its new Google events"},"off":{"type":"boolean","description":"Turned off: it offers no times and takes no new booking"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"number"},"seatsPerSlot":{"type":["number","null"]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"type":["number","null"]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Charged to the card saved at booking for a no-show. Null for none"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. Null when free"},"paymentMode":{"type":"string","enum":["invoice","checkout"]},"invoiceDaysUntilDue":{"type":"number"},"addOnPrices":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"option":{"type":"string"},"amountMinor":{"type":"number"}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"},"redirectUrl":{"type":["string","null"]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["cancelled","confirmation","rescheduled","reminder"]}},"embedOrigins":{"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}],"description":"The weekdays that offer it, inside the hours of its schedule. ISO: 1 Monday to 7 Sunday, on the date in the zone of the schedule. Null for each day"}},"required":["unreadableSettings","title","description","durations","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","color","off","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays"],"description":"The template’s own fields: what a new copy is made with"},"locked":{"type":"array","items":{"type":"string"},"description":"The fields a member cannot change on their copy: they follow the template. The slug is always the template’s"},"teamScheduleId":{"description":"The team schedule that gives its copies their hours. Null for the own hours of each member","type":["string","null"]},"restrictionScheduleId":{"description":"The team schedule that its copies must stay inside. Null for none","type":["string","null"]},"copies":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"eventTypeId":{"type":"string"}},"required":["userId","name","eventTypeId"]},"description":"The owner and admins of the team see the copy of each member. A member sees only their own copy"}},"required":["id","teamId","slug","fields","locked","teamScheduleId","restrictionScheduleId","copies"]},"Money":{"type":"object","properties":{"amountMinor":{"type":"number"},"currency":{"type":"string"}},"required":["amountMinor","currency"]},"NewBooking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]},"checkoutUrl":{"description":"The payment page, while its checkout is open","type":"string"}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies"],"description":"A new booking. On a priced meeting type or one-off link it is pending_payment, holding its time until pendingUntil, with checkoutUrl. It is confirmed once paid. Its payment amount is the price plus any add-on chosen."},"Occurrence":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]},"over":{"type":"boolean"}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies","over"]},"Outreach":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":["string","null"]},"eventTypeId":{"type":["string","null"]},"pollId":{"description":"the poll whose personal link it sends. Null for the link of a meeting type","type":["string","null"]},"pollTitle":{"description":"the title of that poll, or of its meeting type. Null for the link of a meeting type","type":["string","null"]},"note":{"type":["string","null"]},"nudgeAfterHours":{"type":"array","items":{"type":"number"}},"sent":{"type":"number"},"nextSendAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"status":{"type":"string","enum":["cancelled","booked","active","declined","unsubscribed","finished","bounced","answered"],"description":"answered: the person answered the poll of this link"},"createdAt":{"type":"string","format":"date-time"},"stoppedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"stopReason":{"anyOf":[{"type":"string","enum":["expired","cancelled_by_host","no_reply_address","no_handle","event_type_closed","poll_closed","sending_not_set_up","undeliverable","sending_unavailable"]},{"type":"null"}]}},"required":["id","email","name","eventTypeId","pollId","pollTitle","note","nudgeAfterHours","sent","nextSendAt","status","createdAt","stoppedAt","stopReason"]},"Poll":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"status":{"type":"string","enum":["cancelled","expired","open","chosen"]},"expiresAt":{"type":"string","format":"date-time"},"hostName":{"type":"string"},"hostTimeZone":{"type":"string"},"hostHandle":{"description":"The host’s public handle, for how their pages look. Null while they have none","type":["string","null"]},"organizerLocale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"],"description":"An account-free poll’s organizer’s language: its pages’ default"},"lockTimeZone":{"type":"boolean","description":"Voting and booking are in hostTimeZone only"},"chosenStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"kind":{"type":"string","enum":["times","dates","paint"]},"timeZone":{"type":["string","null"]},"results":{"type":"string","enum":["names","counts"]},"holdTimes":{"type":"boolean"},"allowProposals":{"type":"boolean"},"autoChoose":{"type":"boolean"},"range":{"anyOf":[{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"dayStartMinute":{"type":["number","null"]},"dayEndMinute":{"type":["number","null"]}},"required":["startDate","endDate","dayStartMinute","dayEndMinute"]},{"type":"null"}]},"round":{"type":"number"},"options":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}},"best":{"type":["number","null"]},"answered":{"type":"number"},"makerCounted":{"type":"boolean"},"expected":{"type":["number","null"]},"people":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"answered":{"type":"boolean"},"organizer":{"type":"boolean"},"required":{"type":"boolean"},"byAssistant":{"type":"boolean"},"assistantName":{"type":["string","null"]},"answers":{"$ref":"#/components/schemas/PollStandings"}},"required":["label","answered","organizer","required","byAssistant","assistantName","answers"]}},{"type":"null"}]},"you":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"personalUrl":{"type":"string"},"autoAnswer":{"type":"boolean"},"calendarReadAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"free":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},{"type":"null"}]},"answers":{"$ref":"#/components/schemas/PollStandings"},"invited":{"type":"boolean","description":"On a booked host’s poll: its Google invitation came to this person"}},"required":["label","personalUrl","autoAnswer","calendarReadAt","free","answers","invited"]},{"type":"null"}]},"may":{"type":"object","properties":{"answer":{"type":"boolean"},"change":{"type":"boolean"},"propose":{"type":"boolean"},"administer":{"type":"boolean"}},"required":["answer","change","propose","administer"]},"chosen":{"anyOf":[{"type":"object","properties":{"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"date":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"chosenAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["start","end","date","place","videoUrl","chosenAt"]},{"type":"null"}]},"paint":{"anyOf":[{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"free":{"type":"number"}},"required":["start","free"]}},"top":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}}},"required":["cells","top"]},{"type":"null"}]}},"required":["id","url","title","description","place","videoUrl","durationMinutes","status","expiresAt","hostName","hostTimeZone","hostHandle","organizerLocale","lockTimeZone","chosenStart","kind","timeZone","results","holdTimes","allowProposals","autoChoose","range","round","options","best","answered","makerCounted","expected","people","you","may","chosen","paint"]},"PollOption":{"type":"object","properties":{"number":{"type":"number"},"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"date":{"description":"A whole day, YYYY-MM-DD, in no zone","type":["string","null"]},"round":{"type":"number"},"proposedBy":{"description":"The label of the person who proposed it. Null for the organizer’s, or when names are not shown","type":["string","null"]},"yes":{"type":"number"},"maybe":{"type":"number"},"no":{"type":"number"},"votes":{"type":"number","description":"yes plus maybe"},"rank":{"type":["number","null"]},"breaks":{"type":"array","items":{"type":"string","enum":["past","outside_range","organizer_busy","required_no"]}},"cannot":{"type":"array","items":{"type":"string"}},"awkward":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"localMinute":{"type":"number"},"edge":{"type":"string","enum":["start","end"]}},"required":["label","localMinute","edge"]}}},"required":["number","start","end","date","round","proposedBy","yes","maybe","no","votes","rank","breaks","cannot","awkward"]},"PollStandings":{"type":"object","propertyNames":{"type":"string","pattern":"^-?\\d+(?:\\.\\d+)?$"},"additionalProperties":{"type":"object","properties":{"answer":{"type":"string","enum":["yes","maybe","no"]},"fromCalendar":{"type":"boolean"}},"required":["answer","fromCalendar"]}},"PollTimesFound":{"type":"object","properties":{"fits":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fits":{"type":"boolean"}},"required":["number","fits"]}},"others":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"suggestions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"can":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cannot":{"type":"array","items":{"type":"string"}},"awkward":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"localMinute":{"type":"number"},"edge":{"type":"string","enum":["start","end"]}},"required":["label","localMinute","edge"]}}},"required":["start","end","can","of","cannot","awkward"]}},{"type":"null"}]}},"required":["fits","others","suggestions"]},"PublicEventType":{"type":"object","properties":{"handle":{"type":"string","description":"Empty for a team’s"},"hostName":{"type":"string"},"slug":{"type":"string"},"path":{"type":["string","null"]},"team":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},{"type":"null"}]},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"timeZone":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"string","enum":["phone","select","text","textarea","multiselect","checkbox"]},"options":{"type":"array","items":{"type":"string"}},"optionIds":{"description":"Of `options`, in order","type":"array","items":{"type":"string"}}},"required":["id","label","required","type"]}},"locations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["meet","in_person","phone","link"]},"label":{"type":"string"},"callsInvitee":{"type":"boolean","const":true}},"required":["kind","label"]}},"requireEmailVerification":{"type":"boolean"},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}],"description":"When the host approves a booking first, as a request in pending_approval: never, always, inside `hours` of its start, or from a free email domain"},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"seatsPerSlot":{"type":["number","null"]},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"type":["string","null"]},"cutoffHours":{"type":"number"},"lateFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"The cost of a cancel inside the cut-off: kept from a price paid, or charged to the saved card. Null for none"}},"required":["text","cutoffHours","lateFee"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"The cost of a no-show, charged to the card that the booking saves. Null for none"},"savesCard":{"type":"boolean","description":"For the fees above, a booking first saves the card of the person that the booking is for, at Stripe. Its checkoutUrl charges nothing"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. An add-on that its answers choose costs more. Null when free. Set by the host"},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"}},"required":["handle","hostName","slug","path","team","hosts","title","description","durations","timeZone","questions","locations","requireEmailVerification","approval","recurrence","seatsPerSlot","cancelPolicy","noShowFee","savesCard","price","lockTimeZone"]},"Question":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"string","enum":["phone","select","text","textarea","multiselect","checkbox"]},"options":{"type":"array","items":{"type":"string"}}},"required":["id","label","required","type"]},"Schedule":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timeZone":{"type":"string"},"weekly":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"number","enum":[1,2,3,4,5,6,7]},"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["weekday","startMinute","endMinute"]}},"overrides":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"windows":{"type":"array","items":{"type":"object","properties":{"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["startMinute","endMinute"]}}},"required":["date","windows"]}},"isDefault":{"type":"boolean"},"zoneChanges":{"type":"array","items":{"type":"object","properties":{"fromDate":{"type":"string"},"timeZone":{"type":"string"}},"required":["fromDate","timeZone"]}}},"required":["id","name","timeZone","weekly","overrides","isDefault","zoneChanges"]},"Seat":{"type":"object","properties":{"attendeeId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["pending_payment","cancelled","no_show","booked"]},"noShow":{"type":"boolean"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/BookingAnswer"}}},"required":["attendeeId","name","email","status","noShow","answers"]},"SlackConnection":{"type":"object","properties":{"id":{"type":"string"},"teamName":{"type":"string"},"channelName":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","seat.added","seat.cancelled"]}},"status":{"type":"string","enum":["active","disabled"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","teamName","channelName","events","status","createdAt"]},"Team":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string","description":"Its address: /t/{slug}"},"name":{"type":"string"},"description":{"type":"string"},"timeZone":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"],"description":"Your own role in it"},"members":{"type":"number"}},"required":["id","slug","name","description","timeZone","role","members"]},"TeamBooking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]},"answers":{"type":"array","items":{"$ref":"#/components/schemas/BookingAnswer"}},"emailsNotSent":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]},"to":{"type":"string","enum":["seat","invitee","host","co_host","left","guests"]},"reason":{"type":"string","enum":["expired","sending_unavailable","refused","unconfirmed","step_changed"]},"hostName":{"type":"string"}},"required":["kind","to","reason"]}},"eventColor":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its meeting type’s color"},"bookedBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}],"description":"The teammate of its host who booked it for the person it is for. Null when that person booked it"},"ended":{"description":"A request that ended with no booking, so its status is cancelled: declined by its host, or expired with no answer. Not given for other bookings","type":"string","enum":["declined","expired"]},"noShowFee":{"description":"What a no-show mark of the person that the booking is for charges their saved card now. Left out when it charges nothing","$ref":"#/components/schemas/Money"},"host":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"member":{"type":"boolean","description":"If its organizer is still a member. If they are not, only they can act on a booking with a payment"}},"required":["userId","name","member"]}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies","answers","emailsNotSent","eventColor","bookedBy","host"]},"TeamEventType":{"type":"object","properties":{"unreadableSettings":{"type":"array","items":{"type":"string","enum":["locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays"]}},"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"scheduleId":{"type":"string"},"incrementMinutes":{"type":"number"},"bufferBeforeMinutes":{"type":"number"},"bufferAfterMinutes":{"type":"number"},"minNoticeMinutes":{"type":"number"},"windowDays":{"type":["number","null"]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"type":["number","null"]},"maxPerWeek":{"type":["number","null"]},"maxPerMonth":{"type":["number","null"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"isPublic":{"type":"boolean"},"reminderMinutes":{"type":"array","items":{"type":"number"}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its color in the dashboard, and of its new Google events"},"off":{"type":"boolean","description":"Turned off: it offers no times and takes no new booking"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"number"},"seatsPerSlot":{"type":["number","null"]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"type":["number","null"]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Charged to the card saved at booking for a no-show. Null for none"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. Null when free"},"paymentMode":{"type":"string","enum":["invoice","checkout"]},"invoiceDaysUntilDue":{"type":"number"},"addOnPrices":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"option":{"type":"string"},"amountMinor":{"type":"number"}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"},"redirectUrl":{"type":["string","null"]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["cancelled","confirmation","rescheduled","reminder"]}},"embedOrigins":{"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}],"description":"The weekdays that offer it, inside the hours of its schedule. ISO: 1 Monday to 7 Sunday, on the date in the zone of the schedule. Null for each day"},"managed":{"anyOf":[{"type":"object","properties":{"managedTypeId":{"type":"string"},"teamId":{"type":"string"},"locked":{"type":"array","items":{"type":"string"}}},"required":["managedTypeId","teamId","locked"]},{"type":"null"}],"description":"Of a copy of a managed meeting type of a team: the team, and the names of the fields that only its admins change. Null for your own"},"teamId":{"type":"string"},"path":{"type":"string","description":"Its address on this app"},"teamScheduleId":{"description":"The team schedule that gives its hours. Null for the own default schedule of each host","type":["string","null"]},"restrictionScheduleId":{"description":"The team schedule that it must stay inside. Null for none","type":["string","null"]},"hosts":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"organizer":{"type":"boolean"},"problem":{"anyOf":[{"type":"string","enum":["calendar_disconnected","no_default_schedule","limits_unreadable","not_a_member"]},{"type":"null"}],"description":"Why people cannot book this host, which closes the meeting type. The owner and admins see it, and each host sees their own. Null if there is no problem, and for other members"}},"required":["userId","name","organizer","problem"]},"description":"The organizer first, then the co-hosts in their order"}},"required":["unreadableSettings","id","slug","title","description","durations","scheduleId","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","color","off","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays","managed","teamId","path","teamScheduleId","restrictionScheduleId","hosts"]},"TeamInvite":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"invitedBy":{"type":"string","description":"The name of who invited them"},"expiresAt":{"type":"string","format":"date-time"},"notSentReason":{"anyOf":[{"type":"string","enum":["opted_out","bounced","no_reply_address","sending_not_set_up","sending_unavailable","refused","undeliverable","expired"]},{"type":"null"}],"description":"Why we will not send its email. Null if we sent it or will send it. If you invite the address again, the new invitation replaces it"}},"required":["id","email","role","invitedBy","expiresAt","notSentReason"]},"TeamMember":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"handle":{"type":["string","null"]},"role":{"type":"string","enum":["owner","admin","member"]},"listed":{"type":"boolean","description":"If the team’s page lists them under People. The member chooses this"},"bookFor":{"type":"string","enum":["nobody","admins","teammates"],"description":"Who in the team can book the member’s own meeting types for them. The member chooses this"},"joinedAt":{"type":"string","format":"date-time"},"email":{"description":"Only to the team’s owner and admins, and to the member themselves","type":"string"},"calendar":{"description":"If their calendars can take bookings: a host who cannot closes a meeting type. Only the team’s owner and admins, and the member, see it","type":"string","enum":["ok","no_connection","needs_reauth","no_write_target"]}},"required":["userId","name","handle","role","listed","bookFor","joinedAt"]},"TeamSchedule":{"type":"object","properties":{"id":{"type":"string"},"teamId":{"type":"string"},"name":{"type":"string"},"timeZone":{"type":"string"},"weekly":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"number","enum":[1,2,3,4,5,6,7]},"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["weekday","startMinute","endMinute"]}},"overrides":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"windows":{"type":"array","items":{"type":"object","properties":{"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["startMinute","endMinute"]}}},"required":["date","windows"]}},"zoneChanges":{"type":"array","items":{"type":"object","properties":{"fromDate":{"type":"string"},"timeZone":{"type":"string"}},"required":["fromDate","timeZone"]}},"usedBy":{"type":"number","description":"How many of the team’s meeting types and managed types take their hours from it or are restricted to it"},"readable":{"type":"boolean","description":"False when its stored hours cannot be read: they are shown empty, and what uses it offers no times, until it is saved again"}},"required":["id","teamId","name","timeZone","weekly","overrides","zoneChanges","usedBy","readable"]},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping"]}},"eventTypeIds":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"failingSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","url","events","eventTypeIds","active","failingSince","createdAt"]},"WebhookDelivery":{"type":"object","properties":{"id":{"type":"string"},"webhookId":{"type":"string"},"event":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping","workflow.step"]},"payload":{},"status":{"type":"string","enum":["pending","failed","succeeded"]},"attempts":{"type":"number"},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"responseStatus":{"type":["number","null"]},"responseMs":{"type":["number","null"]},"responseBody":{"type":["string","null"]},"error":{"type":["string","null"]},"failureKind":{"anyOf":[{"type":"string","enum":["product","blocked","turned_off","behind","forgotten"]},{"type":"null"}]},"redeliveryOf":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","webhookId","event","payload","status","attempts","nextAttemptAt","responseStatus","responseMs","responseBody","error","failureKind","redeliveryOf","createdAt"]},"Workflow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string","enum":["no_show","booking_created","booking_rescheduled","booking_cancelled","before_start","after_end"]},"offsetMinutes":{"type":"number"},"eventTypeIds":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"steps":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"email"},"to":{"type":"string","enum":["attendees","invitee","host"]},"subject":{"type":"string"},"body":{"type":"string"},"id":{"type":"string"}},"required":["kind","to","subject","body","id"]},{"type":"object","properties":{"kind":{"type":"string","const":"webhook"},"webhookId":{"type":"string"},"id":{"type":"string"}},"required":["kind","webhookId","id"]},{"type":"object","properties":{"kind":{"type":"string","const":"reconfirm"},"deadlineMinutesBeforeStart":{"type":"number"},"cancelIfUnconfirmed":{"type":"boolean"},"id":{"type":"string"}},"required":["kind","deadlineMinutesBeforeStart","cancelIfUnconfirmed","id"]}]}},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","trigger","offsetMinutes","eventTypeIds","active","steps","createdAt"]},"FindListedHostsAnswer":{"type":"object","properties":{"hosts":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"hostName":{"type":"string"},"bio":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"path":{"type":["string","null"]},"title":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"}},"required":["slug","path","title","durations"]}},"moreEventTypes":{"type":"number"}},"required":["handle","hostName","bio","eventTypes","moreEventTypes"]}},"more":{"type":"boolean"}},"required":["hosts","more"]},"GetProfileAnswer":{"type":"object","properties":{"handle":{"type":"string"},"hostName":{"type":"string"},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/PublicEventType"}}},"required":["handle","hostName","eventTypes"]},"GetLinkAnswer":{"type":"object","properties":{"handle":{"type":"string","description":"Empty for a team’s"},"hostName":{"type":"string"},"slug":{"type":"string"},"path":{"type":["string","null"]},"team":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"]},{"type":"null"}]},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"timeZone":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"required":{"type":"boolean"},"type":{"type":"string","enum":["phone","select","text","textarea","multiselect","checkbox"]},"options":{"type":"array","items":{"type":"string"}},"optionIds":{"description":"Of `options`, in order","type":"array","items":{"type":"string"}}},"required":["id","label","required","type"]}},"locations":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["meet","in_person","phone","link"]},"label":{"type":"string"},"callsInvitee":{"type":"boolean","const":true}},"required":["kind","label"]}},"requireEmailVerification":{"type":"boolean"},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}],"description":"When the host approves a booking first, as a request in pending_approval: never, always, inside `hours` of its start, or from a free email domain"},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"seatsPerSlot":{"type":["number","null"]},"cancelPolicy":{"anyOf":[{"type":"object","properties":{"text":{"type":["string","null"]},"cutoffHours":{"type":"number"},"lateFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"The cost of a cancel inside the cut-off: kept from a price paid, or charged to the saved card. Null for none"}},"required":["text","cutoffHours","lateFee"]},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"The cost of a no-show, charged to the card that the booking saves. Null for none"},"savesCard":{"type":"boolean","description":"For the fees above, a booking first saves the card of the person that the booking is for, at Stripe. Its checkoutUrl charges nothing"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. An add-on that its answers choose costs more. Null when free. Set by the host"},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"},"seriesStarts":{"type":"array","items":{"type":"string","format":"date-time"}}},"required":["handle","hostName","slug","path","team","hosts","title","description","durations","timeZone","questions","locations","requireEmailVerification","approval","recurrence","seatsPerSlot","cancelPolicy","noShowFee","savesCard","price","lockTimeZone"]},"FitOfferedTimesAnswer":{"type":"object","properties":{"hostTimeZone":{"type":"string"},"windows":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"local":{"type":"object","properties":{"host":{"type":"object","properties":{"start":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."},"end":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."}},"required":["start","end"]},"given":{"type":"object","properties":{"start":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."},"end":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."}},"required":["start","end"]}},"required":["host","given"]},"fits":{"type":"boolean"},"bestStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"bestStartLocal":{"anyOf":[{"type":"object","properties":{"host":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."},"given":{"type":"string","format":"date-time","description":"The local time of the moment beside it, with its offset (RFC 3339). Under `host`, it is on the clock of the host's schedule. Under `given`, it is in the time zone that was sent with the window."}},"required":["host","given"]},{"type":"null"}]},"longestMinutes":{"type":["number","null"]},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["buffer","booked","outside_hours","outside_restriction","not_on_grid","min_notice","beyond_window","outside_date_range","away","calendar_busy","limit_count","limit_minutes","host_limit_count","host_limit_minutes","not_first_slot","day_not_offered"]},"period":{"type":"string","enum":["day","week","month"]},"blockedBy":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"required":["code"]}}},"required":["start","end","local","fits","bestStart","bestStartLocal","longestMinutes","reasons"]}},"liveCheck":{"type":"string","enum":["complete","incomplete"]}},"required":["hostTimeZone","windows","liveCheck"]},"GetMyFreeTimesAnswer":{"type":"object","properties":{"timeZone":{"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hours":{"type":"string","enum":["working","given"]},"free":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"through":{"type":"string","format":"date-time"},"starts":{"type":"array","items":{"type":"string","format":"date-time"}},"startsLeft":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["timeZone","durationMinutes","hours","free","through","starts","startsLeft"]},"ListAwayAnswer":{"type":"array","items":{"$ref":"#/components/schemas/RestoreHolidayAnswer"}},"AddAwayAnswer":{"type":"object","properties":{"id":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"source":{"type":"string","enum":["manual","holiday"]},"note":{"type":["string","null"]},"setBy":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},{"type":"null"}],"description":"The admin of their team who set it for them. Null for their own and for a holiday"},"upcomingBooked":{"type":"number"}},"required":["id","startDate","endDate","source","note","setBy","upcomingBooked"]},"ListHolidayCountriesAnswer":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}},"chosen":{"anyOf":[{"type":"object","properties":{"countryCode":{"type":"string"},"subdivision":{"type":["string","null"]},"knownThrough":{"type":["number","null"]},"worked":{"type":"array","items":{"$ref":"#/components/schemas/RestoreHolidayAnswer"}}},"required":["countryCode","subdivision","knownThrough","worked"]},{"type":"null"}]}},"required":["countries","chosen"]},"SetHolidayCountryAnswer":{"anyOf":[{"type":"object","properties":{"countryCode":{"type":"string"},"subdivision":{"type":["string","null"]}},"required":["countryCode","subdivision"]},{"type":"null"}]},"ListHolidaySubdivisionsAnswer":{"type":"object","properties":{"countryCode":{"type":"string"},"subdivisions":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}}},"required":["countryCode","subdivisions"]},"ExplainTimeAnswer":{"type":"object","properties":{"offered":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["buffer","booked","outside_hours","outside_restriction","not_on_grid","min_notice","beyond_window","outside_date_range","away","calendar_busy","limit_count","limit_minutes","host_limit_count","host_limit_minutes","not_first_slot","day_not_offered"]},"period":{"type":"string","enum":["day","week","month"]},"blockedBy":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"required":["code"]}}},"required":["offered","reasons"]},"EmailTimesAnswer":{"type":"object","properties":{"html":{"type":"string"},"text":{"type":"string"},"slots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"url":{"type":"string"}},"required":["start","url"]}}},"required":["html","text","slots"]},"RestoreHolidayAnswer":{"type":"object","properties":{"id":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"source":{"type":"string","enum":["manual","holiday"]},"note":{"type":["string","null"]},"setBy":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},{"type":"null"}],"description":"The admin of their team who set it for them. Null for their own and for a holiday"}},"required":["id","startDate","endDate","source","note","setBy"]},"ListBookingsAnswer":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/HostBooking"}},"nextCursor":{"type":["string","null"]}},"required":["bookings","nextCursor"]},"GetApprovalRequestAnswer":{"anyOf":[{"type":"object","properties":{"action":{"type":"string","enum":["approve","decline"]},"eventTitle":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"hostName":{"type":"string"},"hostTimeZone":{"type":"string"},"hostLocale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"seriesDates":{"type":"array","items":{"type":"string","format":"date-time"}},"state":{"type":"string","enum":["cancelled","declined","approved","lapsed","settling"],"description":"settling: approved, its charge still settling, so nothing to approve"}},"required":["action","eventTitle","start","end","hostName","hostTimeZone","hostLocale","state"]},{"type":"object","properties":{"action":{"type":"string","enum":["approve","decline"]},"eventTitle":{"type":"string"},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"hostName":{"type":"string"},"hostTimeZone":{"type":"string"},"hostLocale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"seriesDates":{"type":"array","items":{"type":"string","format":"date-time"}},"state":{"type":"string","const":"waiting"},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"]},"answers":{"type":"array","items":{"$ref":"#/components/schemas/BookingAnswer"}},"pendingUntil":{"type":"string","format":"date-time"},"charge":{"description":"What approving takes from the card held since the person asked. Absent with no hold","$ref":"#/components/schemas/Money"}},"required":["action","eventTitle","start","end","hostName","hostTimeZone","hostLocale","state","invitee","answers","pendingUntil"]}]},"ListSeatsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Seat"}},"GetSeriesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Occurrence"}},"CancelSeriesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Occurrence"}},"ListSeatsOfAnswer":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"bookingId":{"type":"string"},"seats":{"type":"array","items":{"$ref":"#/components/schemas/Seat"}}},"required":["bookingId","seats"]},{"type":"object","properties":{"bookingId":{"type":"string"},"unreadable":{"type":"string"}},"required":["bookingId","unreadable"]}]}},"ListSeriesOfAnswer":{"type":"array","items":{"type":"object","properties":{"seriesId":{"type":"string"},"occurrences":{"type":"array","items":{"$ref":"#/components/schemas/Occurrence"}}},"required":["seriesId","occurrences"]}},"ListPaymentsOfAnswer":{"type":"array","items":{"type":"object","properties":{"bookingId":{"type":"string"},"payments":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["booking","seat","series","setup","no_show_fee","late_cancel_fee","invoice"]},"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"paid":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What Stripe took. Null until Stripe takes money"},"refunded":{"$ref":"#/components/schemas/Money"},"failure":{"description":"The code that Stripe gave for the failure. Null with no failure","type":["string","null"]},"attendeeId":{"description":"A seat’s payment: whose seat","type":["string","null"]},"refunds":{"type":"array","items":{"type":"object","properties":{"amount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"null: all that was left"},"state":{"type":"string","enum":["in_progress","refunded","failed"]},"atStripe":{"type":"boolean","description":"In progress and accepted by Stripe, where it is pending. So refunded counts it"},"failure":{"type":["string","null"]}},"required":["amount","state","atStripe","failure"]}}},"required":["kind","status","amount","paid","refunded","failure","attendeeId","refunds"]}}},"required":["bookingId","payments"]}},"GetOneOffLinkAnswer":{"type":"object","properties":{"link":{"$ref":"#/components/schemas/PublicEventType"},"durationMinutes":{"type":"number"},"slots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"state":{"type":"string","enum":["closed","expired","open","used"]},"generatedAt":{"type":"string","format":"date-time"},"available":{"type":"boolean"},"unavailableReason":{"type":"string","const":"calendar_disconnected"}},"required":["link","durationMinutes","slots","state","generatedAt","available"]},"ListOneOffLinksAnswer":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"eventTypeId":{"type":"string"},"eventTitle":{"type":"string"},"durationMinutes":{"type":"number"},"times":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"closedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"state":{"type":"string","enum":["closed","expired","open","used"]},"label":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"The own price of a payment link, charged instead of the price and add-ons of the meeting type. Null for the price of the type"}},"required":["id","url","eventTypeId","eventTitle","durationMinutes","times","expiresAt","closedAt","state","label","createdAt","price"]}},"CreateOneOffLinkAnswer":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"}},"required":["id","url"]},"CloseOneOffLinkAnswer":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["closed","expired","open","used"]},"closedAt":{"type":"string","format":"date-time"}},"required":["id","state","closedAt"]},"ListEventTypesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"ChangeEventTypesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"ListSchedulesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Schedule"}},"UpsertScheduleAnswer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"timeZone":{"type":"string"},"weekly":{"type":"array","items":{"type":"object","properties":{"weekday":{"type":"number","enum":[1,2,3,4,5,6,7]},"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["weekday","startMinute","endMinute"]}},"overrides":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"windows":{"type":"array","items":{"type":"object","properties":{"startMinute":{"type":"number"},"endMinute":{"type":"number"}},"required":["startMinute","endMinute"]}}},"required":["date","windows"]}},"isDefault":{"type":"boolean"},"zoneChanges":{"type":"array","items":{"type":"object","properties":{"fromDate":{"type":"string"},"timeZone":{"type":"string"}},"required":["fromDate","timeZone"]}},"upcomingOutside":{"type":"number"}},"required":["id","name","timeZone","weekly","overrides","isDefault","zoneChanges","upcomingOutside"]},"GetOutreachTokenAnswer":{"type":"object","properties":{"hostName":{"type":"string"},"hostHandle":{"type":["string","null"]},"optedOut":{"type":"boolean"},"outreach":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["cancelled","booked","active","declined","unsubscribed","finished","bounced"]}},"required":["status"]},{"type":"null"}]}},"required":["hostName","hostHandle","optedOut","outreach"]},"PreviewPollLinksAnswer":{"type":"object","properties":{"title":{"type":"string","description":"the poll’s, or its meeting type’s"},"toMail":{"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string"},"name":{"type":"string"}},"required":["participantId","name"]}},"skipped":{"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string","enum":["answered","no_address","not_listed","already_on_its_way","declined","opted_out","bounced"],"description":"not_listed: they came by the poll’s link, or are no one on it"}},"required":["participantId","name","reason"]}},"today":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":"number"}},"required":["used","limit"]}},"required":["title","toMail","skipped","today"]},"SendPollLinksAnswer":{"type":"object","properties":{"sent":{"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string"},"name":{"type":"string"},"outreachId":{"type":"string"}},"required":["participantId","name","outreachId"]}},"skipped":{"type":"array","items":{"type":"object","properties":{"participantId":{"type":"string"},"name":{"description":"null for no one on the poll","type":["string","null"]},"reason":{"type":"string","enum":["answered","no_address","not_listed","already_on_its_way","declined","opted_out","bounced"],"description":"not_listed: they came by the poll’s link, or are no one on it"}},"required":["participantId","name","reason"]}}},"required":["sent","skipped"]},"ListOutreachAnswer":{"type":"object","properties":{"outreach":{"type":"array","items":{"$ref":"#/components/schemas/Outreach"}},"nextCursor":{"type":["string","null"]},"sendingSetUp":{"type":"boolean"},"today":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"productFull":{"type":"boolean"},"full":{"type":["string","null"]}},"required":["used","limit","resetsAt","productFull","full"]},"sender":{"type":"object","properties":{"fromName":{"type":"string"},"hostName":{"type":"string"},"replyTo":{"type":["string","null"]}},"required":["fromName","hostName","replyTo"]}},"required":["outreach","nextCursor","sendingSetUp","today","sender"]},"MessageContactsAnswer":{"type":"object","properties":{"id":{"type":"string"},"queued":{"type":"number"},"skipped":{"type":"number"}},"required":["id","queued","skipped"]},"ListContactMessagesAnswer":{"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/ContactMessage"}},"nextCursor":{"type":["string","null"]},"sendingSetUp":{"type":"boolean"},"today":{"type":"object","properties":{"used":{"type":"number"},"limit":{"type":"number"},"resetsAt":{"type":"string","format":"date-time"},"productFull":{"type":"boolean"},"full":{"type":["string","null"]}},"required":["used","limit","resetsAt","productFull","full"]},"sender":{"type":"object","properties":{"fromName":{"type":"string"},"hostName":{"type":"string"},"replyTo":{"type":["string","null"]}},"required":["fromName","hostName","replyTo"]}},"required":["messages","nextCursor","sendingSetUp","today","sender"]},"ListWebhooksAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"CreateWebhookAnswer":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping"]}},"eventTypeIds":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"failingSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"secret":{"type":"string"}},"required":["id","url","events","eventTypeIds","active","failingSince","createdAt","secret"]},"RotateWebhookSecretAnswer":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["booking.created","booking.requested","booking.confirmed","booking.paid","booking.rescheduled","booking.cancelled","booking.declined","booking.expired","booking.no_show","booking.reassigned","booking.hosts_changed","seat.added","seat.cancelled","ping"]}},"eventTypeIds":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"failingSince":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"secret":{"type":"string"}},"required":["id","url","events","eventTypeIds","active","failingSince","createdAt","secret"]},"ListWebhookDeliveriesAnswer":{"type":"object","properties":{"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"nextCursor":{"type":["string","null"]}},"required":["deliveries","nextCursor"]},"ListWorkflowsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"}},"GetWorkflowAnswer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"trigger":{"type":"string","enum":["no_show","booking_created","booking_rescheduled","booking_cancelled","before_start","after_end"]},"offsetMinutes":{"type":"number"},"eventTypeIds":{"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"steps":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"email"},"to":{"type":"string","enum":["attendees","invitee","host"]},"subject":{"type":"string"},"body":{"type":"string"},"id":{"type":"string"}},"required":["kind","to","subject","body","id"]},{"type":"object","properties":{"kind":{"type":"string","const":"webhook"},"webhookId":{"type":"string"},"id":{"type":"string"}},"required":["kind","webhookId","id"]},{"type":"object","properties":{"kind":{"type":"string","const":"reconfirm"},"deadlineMinutesBeforeStart":{"type":"number"},"cancelIfUnconfirmed":{"type":"boolean"},"id":{"type":"string"}},"required":["kind","deadlineMinutesBeforeStart","cancelIfUnconfirmed","id"]}]}},"createdAt":{"type":"string","format":"date-time"},"pendingCancellations":{"type":"number"}},"required":["id","name","trigger","offsetMinutes","eventTypeIds","active","steps","createdAt","pendingCancellations"]},"GetReconfirmationAnswer":{"type":"object","properties":{"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hostHandle":{"type":["string","null"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"confirmBy":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timeZone":{"type":"string"},"cancelIfUnconfirmed":{"type":"boolean"}},"required":["eventTitle","hostName","hostHandle","start","end","confirmBy","timeZone","cancelIfUnconfirmed"]},"ReconfirmBookingAnswer":{"type":"object","properties":{"bookingId":{"type":"string"},"reconfirmedAt":{"type":"string","format":"date-time"}},"required":["bookingId","reconfirmedAt"]},"ListSlackConnectionsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/SlackConnection"}},"TestSlackConnectionAnswer":{"type":"object","properties":{"posted":{"type":"boolean","const":true}},"required":["posted"]},"ListBlocklistAnswer":{"type":"array","items":{"$ref":"#/components/schemas/AddBlocklistEntryAnswer"}},"AddBlocklistEntryAnswer":{"type":"object","properties":{"id":{"type":"string"},"pattern":{"type":"string"}},"required":["id","pattern"]},"ExplainBookerAnswer":{"type":"object","properties":{"canBook":{"type":"boolean"},"stops":{"type":"array","items":{"type":"string","enum":["blocked","upcoming_limit"]},"description":"What refuses them now"},"steps":{"type":"array","items":{"type":"string","enum":["confirm_email","needs_approval"]},"description":"What they must pass: not a refusal"},"upcoming":{"anyOf":[{"type":"object","properties":{"count":{"type":"number"},"limit":{"type":"number"}},"required":["count","limit"]},{"type":"null"}],"description":"Their upcoming bookings of this meeting type, when its limit stops them"}},"required":["canBook","stops","steps","upcoming"]},"RequestEmailCodeAnswer":{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time"}},"required":["expiresAt"]},"GetPaymentsStatusAnswer":{"type":"object","properties":{"connected":{"type":"boolean","description":"A Stripe account is connected"},"chargesEnabled":{"type":"boolean","description":"Stripe says the account can take payments now"},"defaultCurrency":{"description":"The account’s currency, which every price is set in","type":["string","null"]}},"required":["connected","chargesEnabled","defaultCurrency"]},"QuoteBookingAnswer":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"description":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["description","amount"]},"description":"The price, then each add-on that the answers choose. A series has a line for each date"},"total":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What the booking charges. Null when it charges nothing"},"invoice":{"type":"boolean","description":"The total is paid later by an invoice, emailed to the person that the booking is for. There is no checkout"},"credits":{"description":"With packageToken: how many sessions of the package it spends. Else null","type":["number","null"]},"creditsLeft":{"description":"With packageToken: how many sessions the package has now. Else null","type":["number","null"]},"saveCard":{"anyOf":[{"type":"object","properties":{"noShowFee":{"$ref":"#/components/schemas/Money"},"lateFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"lateCutoffHours":{"type":["number","null"]}},"required":["noShowFee","lateFee","lateCutoffHours"]},{"type":"null"}],"description":"The booking charges nothing now and saves the card for these fees. A no-show fee of 0 is no fee. Else null"},"notWithCredits":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"option":{"type":"string"}},"required":["questionId","option"]},"description":"With packageToken: the add-on options that a package booking cannot choose, because a package does not pay their price. Else empty"}},"required":["lines","total","invoice","credits","creditsLeft","saveCard","notWithCredits"]},"ListPackagesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/CreatePackageAnswer"}},"CreatePackageAnswer":{"type":"object","properties":{"id":{"type":"string"},"eventTypeId":{"type":"string"},"title":{"type":"string"},"sessions":{"type":"number"},"price":{"$ref":"#/components/schemas/Money"},"active":{"type":"boolean","description":"Still sold. An archived package is not sold, and its purchases keep their credits"},"sold":{"type":"number","description":"How many purchases of it were made"}},"required":["id","eventTypeId","title","sessions","price","active","sold"]},"BuyPackageAnswer":{"type":"object","properties":{"checkoutUrl":{"type":"string","description":"Where the buyer pays, at Stripe. The purchase exists when Stripe says it is paid"}},"required":["checkoutUrl"]},"GetPackagePurchaseAnswer":{"type":"object","properties":{"packageTitle":{"type":"string"},"hostName":{"type":"string"},"eventTitle":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"path":{"type":["string","null"]}},"required":["handle","slug","path"],"description":"The booking page its sessions book: book it with packageToken"},"sessions":{"type":"number"},"remaining":{"type":"number"},"purchasedAt":{"type":"string","format":"date-time"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"],"description":"The language of the buyer, else of the host. Its emails are in this language"},"refunded":{"type":"boolean","description":"Its payment was given back whole, its sessions with it"},"packageId":{"type":"string"},"onSale":{"type":"boolean","description":"Its package is still sold: another can be bought"},"refundedPart":{"description":"How much of its payment was given back, in part. Its sessions stay","$ref":"#/components/schemas/Money"}},"required":["packageTitle","hostName","eventTitle","link","sessions","remaining","purchasedAt","locale","refunded","packageId","onSale"]},"ListPromotionCodesAnswer":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"active":{"type":"boolean"},"timesRedeemed":{"type":"number"},"percentOff":{"description":"the percentage off, or null for an amount off","type":["number","null"]},"amountOff":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxRedemptions":{"description":"how many times it can be used in all. Null: no limit","type":["number","null"]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"when it stops working. Null: never"}},"required":["id","code","active","timesRedeemed","percentOff","amountOff","maxRedemptions","expiresAt"]}},"CreatePromotionCodeAnswer":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"SendInvoiceAnswer":{"type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"}},"required":["amount"]},"StartPollAnswer":{"type":"object","properties":{"poll":{"$ref":"#/components/schemas/HostPoll"},"pollUrl":{"type":"string"},"organizerUrl":{"type":"string"}},"required":["poll","pollUrl","organizerUrl"]},"GetPollAnswer":{"anyOf":[{"$ref":"#/components/schemas/HostPoll"},{"$ref":"#/components/schemas/Poll"}]},"RespondPollAnswer":{"type":"object","properties":{"poll":{"$ref":"#/components/schemas/Poll"},"personalUrl":{"type":"string"},"alreadyAnswered":{"type":"boolean"},"emailed":{"type":"boolean"}},"required":["poll","personalUrl","alreadyAnswered","emailed"]},"ProposePollTimesAnswer":{"anyOf":[{"$ref":"#/components/schemas/HostPoll"},{"$ref":"#/components/schemas/Poll"}]},"FinalizePollAnswer":{"type":"object","properties":{"poll":{"$ref":"#/components/schemas/HostPoll"},"booking":{"anyOf":[{"$ref":"#/components/schemas/Booking"},{"type":"null"}]},"eventsLeftOn":{"type":"array","items":{"type":"string"}},"uninvited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["poll","booking","eventsLeftOn","uninvited"]},"CancelPollAnswer":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"durationMinutes":{"type":["number","null"]},"status":{"type":"string","enum":["cancelled","expired","open","chosen"]},"expiresAt":{"type":"string","format":"date-time"},"hostName":{"type":"string"},"hostTimeZone":{"type":"string"},"hostHandle":{"description":"The host’s public handle, for how their pages look. Null while they have none","type":["string","null"]},"organizerLocale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"],"description":"An account-free poll’s organizer’s language: its pages’ default"},"lockTimeZone":{"type":"boolean","description":"Voting and booking are in hostTimeZone only"},"chosenStart":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"kind":{"type":"string","enum":["times","dates","paint"]},"timeZone":{"type":["string","null"]},"results":{"type":"string","enum":["names","counts"]},"holdTimes":{"type":"boolean"},"allowProposals":{"type":"boolean"},"autoChoose":{"type":"boolean"},"range":{"anyOf":[{"type":"object","properties":{"startDate":{"type":"string"},"endDate":{"type":"string"},"dayStartMinute":{"type":["number","null"]},"dayEndMinute":{"type":["number","null"]}},"required":["startDate","endDate","dayStartMinute","dayEndMinute"]},{"type":"null"}]},"round":{"type":"number"},"options":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}},"best":{"type":["number","null"]},"answered":{"type":"number"},"makerCounted":{"type":"boolean"},"expected":{"type":["number","null"]},"people":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"answered":{"type":"boolean"},"organizer":{"type":"boolean"},"required":{"type":"boolean"},"byAssistant":{"type":"boolean"},"assistantName":{"type":["string","null"]},"answers":{"$ref":"#/components/schemas/PollStandings"},"id":{"type":"string"},"email":{"type":["string","null"]},"note":{"type":["string","null"]},"personalUrl":{"type":"string"},"outreachId":{"type":["string","null"]}},"required":["label","answered","organizer","required","byAssistant","assistantName","answers","id","email","note","personalUrl","outreachId"]}},"you":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"personalUrl":{"type":"string"},"autoAnswer":{"type":"boolean"},"calendarReadAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"free":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},{"type":"null"}]},"answers":{"$ref":"#/components/schemas/PollStandings"},"invited":{"type":"boolean","description":"On a booked host’s poll: its Google invitation came to this person"}},"required":["label","personalUrl","autoAnswer","calendarReadAt","free","answers","invited"]},{"type":"null"}]},"may":{"type":"object","properties":{"answer":{"type":"boolean"},"change":{"type":"boolean"},"propose":{"type":"boolean"},"administer":{"type":"boolean"}},"required":["answer","change","propose","administer"]},"chosen":{"anyOf":[{"type":"object","properties":{"start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"date":{"type":["string","null"]},"place":{"type":["string","null"]},"videoUrl":{"type":["string","null"]},"chosenAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["start","end","date","place","videoUrl","chosenAt"]},{"type":"null"}]},"paint":{"anyOf":[{"type":"object","properties":{"cells":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"free":{"type":"number"}},"required":["start","free"]}},"top":{"type":"array","items":{"$ref":"#/components/schemas/PollOption"}}},"required":["cells","top"]},{"type":"null"}]},"organizerUrl":{"type":["string","null"]},"organizerEmail":{"description":"The address an account-free poll was started with: where a replaced organizer link goes","type":["string","null"]},"claimed":{"type":"boolean","description":"A host’s poll: started from their account or claimed since, so choosing books it"},"typeLengths":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"type":"null"}]},"voters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"starts":{"type":"array","items":{"type":"string","format":"date-time"}}},"required":["name","email","starts"]}},"eventsLeftOn":{"type":"array","items":{"type":"string"}}},"required":["id","url","title","description","place","videoUrl","durationMinutes","status","expiresAt","hostName","hostTimeZone","hostHandle","organizerLocale","lockTimeZone","chosenStart","kind","timeZone","results","holdTimes","allowProposals","autoChoose","range","round","options","best","answered","makerCounted","expected","people","you","may","chosen","paint","organizerUrl","organizerEmail","claimed","typeLengths","voters","eventsLeftOn"]},"ResendPollLinkAnswer":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]},"ListPollsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/HostPoll"}},"ChoosePollOptionAnswer":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["proposed","pending_approval","pending_payment","confirmed","cancelled","no_show"]},"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"eventTitle":{"type":"string"},"hostName":{"type":"string"},"hosts":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"invitee":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"timeZone":{"type":"string"}},"required":["name","email","timeZone"]},"guests":{"type":"array","items":{"type":"string"}},"meetUrl":{"type":["string","null"]},"manageToken":{"type":"string"},"manageUrl":{"type":"string"},"link":{"type":"object","properties":{"handle":{"type":"string"},"slug":{"type":"string"},"with":{"type":"array","items":{"type":"string"}},"team":{"type":["string","null"]},"path":{"type":["string","null"]},"timeZone":{"type":"string"}},"required":["handle","slug","team","path","timeZone"]},"location":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"object","properties":{"kind":{"type":"string","enum":["in_person","phone","link"]},"withheld":{"type":"boolean","const":true}},"required":["kind","withheld"]}]},{"type":"null"}]},"seats":{"anyOf":[{"type":"object","properties":{"capacity":{"type":"number"},"taken":{"type":"number"}},"required":["capacity","taken"]},{"type":"null"}]},"seriesId":{"type":["string","null"]},"pendingUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"payment":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["pending","authorized","paid","released","refunded","failed","expired","voided"]},"amount":{"$ref":"#/components/schemas/Money"},"failure":{"type":["string","null"]},"paid":{"$ref":"#/components/schemas/Money"},"refunded":{"description":"How much of it was refunded so far, when any was","$ref":"#/components/schemas/Money"},"ownRefund":{"description":"Cancelled: what its cancel refunds of its own share, less any late fee kept. 0 is nothing","$ref":"#/components/schemas/Money"}},"required":["status","amount","failure"]},{"type":"null"}]},"cardFee":{"description":"Saved a card and cancelled late: the late-cancel fee charged to it","type":"object","properties":{"amount":{"$ref":"#/components/schemas/Money"},"charged":{"type":"boolean"}},"required":["amount","charged"]},"creditKept":{"description":"Booked with a package credit and cancelled late: the credit stays spent","type":"boolean","const":true},"withCredit":{"description":"Booked with a package credit: a late cancel spends it and costs no fee","type":"boolean","const":true},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"canCancel":{"type":"boolean","description":"If the person it is for can still cancel it by its link, now"},"canMove":{"type":"boolean","description":"If the person it is for can still move it by its link, now"},"withdrawn":{"type":"boolean"},"locale":{"type":"string","enum":["en","es","fr","de","pt-BR","it","nl","ja"]},"toFollow":{"type":"array","items":{"type":"string","enum":["email","calendar","payment"]}},"notEmailed":{"type":"array","items":{"type":"string","enum":["cancelled","refunded","expired","confirmation","rescheduled","declined","request_received","approval_needed","reminder","links_reissued","workflow_message","reconfirm_request","calendar_quota_exceeded","reschedule_requested","fee_charged","fee_failed","reassigned","hosts_changed"]}},"replies":{"anyOf":[{"type":"object","properties":{"to":{"type":"string"}},"required":["to"]},{"type":"null"}]},"eventsLeftOn":{"type":"array","items":{"type":"string"}},"uninvited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","status","start","end","eventTitle","hostName","hosts","invitee","guests","meetUrl","manageToken","manageUrl","link","location","seats","seriesId","pendingUntil","payment","cancelPolicy","canCancel","canMove","withdrawn","locale","toFollow","notEmailed","replies","eventsLeftOn","uninvited"]},"GetTeamPageAnswer":{"type":"object","properties":{"team":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["slug","name","description"]},"eventTypes":{"type":"array","items":{"$ref":"#/components/schemas/PublicEventType"}},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"handle":{"type":["string","null"]}},"required":["name","handle"]},"description":"Those who chose to be listed"}},"required":["team","eventTypes","members"]},"ListTeamEventTypesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/TeamEventType"}},"SetTeamEventTypeHostsAnswer":{"type":"object","properties":{"unreadableSettings":{"type":"array","items":{"type":"string","enum":["locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays"]}},"id":{"type":"string"},"slug":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"durations":{"type":"array","items":{"type":"number"},"description":"Minutes"},"scheduleId":{"type":"string"},"incrementMinutes":{"type":"number"},"bufferBeforeMinutes":{"type":"number"},"bufferAfterMinutes":{"type":"number"},"minNoticeMinutes":{"type":"number"},"windowDays":{"type":["number","null"]},"dateRange":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]},{"type":"null"}]},"maxPerDay":{"type":["number","null"]},"maxPerWeek":{"type":["number","null"]},"maxPerMonth":{"type":["number","null"]},"questions":{"type":"array","items":{"$ref":"#/components/schemas/Question"}},"isPublic":{"type":"boolean"},"reminderMinutes":{"type":"array","items":{"type":"number"}},"color":{"type":"string","enum":["blue","green","orange","purple","red","teal","pink","yellow"],"description":"Its color in the dashboard, and of its new Google events"},"off":{"type":"boolean","description":"Turned off: it offers no times and takes no new booking"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"approval":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"never"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"under_notice"},"hours":{"type":"number"}},"required":["kind","hours"],"description":"The host approves first: a booking is a request"},{"type":"object","properties":{"kind":{"type":"string","const":"free_email_domains"}},"required":["kind"]}]},"approvalHoldHours":{"type":"number"},"seatsPerSlot":{"type":["number","null"]},"recurrence":{"anyOf":[{"type":"object","properties":{"frequency":{"type":"string","enum":["weekly","biweekly","monthly"]},"maxCount":{"type":"number"}},"required":["frequency","maxCount"]},{"type":"null"}]},"firstSlotOnly":{"type":"boolean"},"optimizeStarts":{"type":"boolean"},"maxMinutes":{"type":"object","properties":{"perDay":{"type":["number","null"]},"perWeek":{"type":["number","null"]},"perMonth":{"type":["number","null"]}},"required":["perDay","perWeek","perMonth"]},"maxUpcomingPerBooker":{"type":["number","null"]},"requireEmailVerification":{"type":"boolean"},"cancelPolicy":{"anyOf":[{"$ref":"#/components/schemas/CancelPolicy"},{"type":"null"}]},"noShowFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"Charged to the card saved at booking for a no-show. Null for none"},"price":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}],"description":"What one booking costs before add-ons. Null when free"},"paymentMode":{"type":"string","enum":["invoice","checkout"]},"invoiceDaysUntilDue":{"type":"number"},"addOnPrices":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"option":{"type":"string"},"amountMinor":{"type":"number"}},"required":["questionId","option","amountMinor"]}},"lockTimeZone":{"type":"boolean","description":"Times show only in timeZone. A booking records that zone as the time zone of the person that it is for, whatever zone they send"},"redirectUrl":{"type":["string","null"]},"redirectWithDetails":{"type":"boolean"},"systemEmailsOff":{"type":"array","items":{"type":"string","enum":["cancelled","confirmation","rescheduled","reminder"]}},"embedOrigins":{"type":"array","items":{"type":"string"}},"weekdays":{"anyOf":[{"type":"array","items":{"type":"number","enum":[1,2,3,4,5,6,7]}},{"type":"null"}],"description":"The weekdays that offer it, inside the hours of its schedule. ISO: 1 Monday to 7 Sunday, on the date in the zone of the schedule. Null for each day"},"managed":{"anyOf":[{"type":"object","properties":{"managedTypeId":{"type":"string"},"teamId":{"type":"string"},"locked":{"type":"array","items":{"type":"string"}}},"required":["managedTypeId","teamId","locked"]},{"type":"null"}],"description":"Of a copy of a managed meeting type of a team: the team, and the names of the fields that only its admins change. Null for your own"},"teamId":{"type":"string"},"path":{"type":"string","description":"Its address on this app"},"teamScheduleId":{"description":"The team schedule that gives its hours. Null for the own default schedule of each host","type":["string","null"]},"restrictionScheduleId":{"description":"The team schedule that it must stay inside. Null for none","type":["string","null"]},"hosts":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"organizer":{"type":"boolean"},"problem":{"anyOf":[{"type":"string","enum":["calendar_disconnected","no_default_schedule","limits_unreadable","not_a_member"]},{"type":"null"}],"description":"Why people cannot book this host, which closes the meeting type. The owner and admins see it, and each host sees their own. Null if there is no problem, and for other members"}},"required":["userId","name","organizer","problem"]},"description":"The organizer first, then the co-hosts in their order"},"stillWithOld":{"type":"number"}},"required":["unreadableSettings","id","slug","title","description","durations","scheduleId","incrementMinutes","bufferBeforeMinutes","bufferAfterMinutes","minNoticeMinutes","windowDays","dateRange","maxPerDay","maxPerWeek","maxPerMonth","questions","isPublic","reminderMinutes","color","off","locations","approval","approvalHoldHours","seatsPerSlot","recurrence","firstSlotOnly","optimizeStarts","maxMinutes","maxUpcomingPerBooker","requireEmailVerification","cancelPolicy","noShowFee","price","paymentMode","invoiceDaysUntilDue","addOnPrices","lockTimeZone","redirectUrl","redirectWithDetails","systemEmailsOff","embedOrigins","weekdays","managed","teamId","path","teamScheduleId","restrictionScheduleId","hosts","stillWithOld"]},"GetTeamInviteAnswer":{"type":"object","properties":{"team":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"role":{"type":"string","enum":["admin","member"]},"invitedBy":{"description":"Null unless forYou","type":["string","null"]},"state":{"type":"string","enum":["open","used","revoked","lapsed"]},"forYou":{"description":"True if it is for your sign-in address. Null without a sign-in","type":["boolean","null"]}},"required":["team","role","invitedBy","state","forYou"]},"ListInvitesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/TeamInvite"}},"ListTeamsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/Team"}},"ListMembersAnswer":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}},"LeaveTeamAnswer":{"type":"object","properties":{"closedTypes":{"type":"array","items":{"type":"string"},"description":"The team’s meeting types they organized, closed to new bookings"},"stillLeads":{"type":"number","description":"How many of the team’s upcoming bookings they still lead: theirs, until an admin gives them away"},"droppedFrom":{"type":"number","description":"How many upcoming team bookings they do not co-host now"},"kept":{"type":"number","description":"How many meeting types the team had given them are now their own"}},"required":["closedTypes","stillLeads","droppedFrom","kept"]},"ListTeamSchedulesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/TeamSchedule"}},"ListManagedTypesAnswer":{"type":"array","items":{"$ref":"#/components/schemas/ManagedType"}},"AssignManagedTypeAnswer":{"type":"object","properties":{"managed":{"$ref":"#/components/schemas/ManagedType"},"skipped":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"reason":{"type":"string","enum":["not_a_member","has_copy","slug_taken","no_default_schedule","payments_not_connected","other_currency"]}},"required":["userId","reason"]}}},"required":["managed","skipped"]},"ListMemberAwayAnswer":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"setByAdmin":{"type":"boolean","description":"True if the owner or an admin of the team set it. Then only the owner or an admin can remove it here"},"note":{"description":"The note of time off that the owner or an admin of the team set. Null for other time off, because a note that the member wrote belongs to them","type":["string","null"]}},"required":["id","startDate","endDate","setByAdmin","note"]}},"AddMemberAwayAnswer":{"type":"object","properties":{"id":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"source":{"type":"string","enum":["manual","holiday"]},"note":{"type":["string","null"]},"setBy":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},{"type":"null"}],"description":"The admin of their team who set it for them. Null for their own and for a holiday"},"upcomingOn":{"type":"number","description":"The member’s upcoming bookings on those dates: none is cancelled"}},"required":["id","startDate","endDate","source","note","setBy","upcomingOn"]},"ListTeamBookingsAnswer":{"type":"object","properties":{"bookings":{"type":"array","items":{"$ref":"#/components/schemas/TeamBooking"}},"nextCursor":{"type":["string","null"]}},"required":["bookings","nextCursor"]},"ListBookableForAnswer":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"ListReassignTargetsAnswer":{"type":"object","properties":{"targets":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"as":{"type":"string","enum":["lead","co_host"],"description":"lead: they become its organizer. co_host: they take the place of one of its co-hosts"},"free":{"type":"boolean","description":"True if nothing that we know of is in their way at that time. We check their calendar again when you give it"},"warnings":{"type":"array","items":{"type":"string","enum":["outside_hours","limit"]},"description":"What the booking goes past if they get it: their hours for it, or a limit of theirs"}},"required":["userId","name","as","free","warnings"]}},"coHosts":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},"description":"The co-hosts of the booking, and a former member among them. A `co_host` target takes the place of one of them, set with `replaces`. Empty if no one can be a co-host"}},"required":["targets","coHosts"]},"GetTeamStatsAnswer":{"type":"object","properties":{"booked":{"type":"number"},"completed":{"type":"number"},"cancelledByInvitee":{"type":"number"},"cancelledByHost":{"type":"number"},"rescheduled":{"type":"number"},"noShow":{"type":"number"},"declined":{"type":"number"},"expired":{"type":"number"},"byEventType":{"type":"array","items":{"type":"object","properties":{"eventTypeId":{"type":"string"},"title":{"type":"string"},"booked":{"type":"number"},"completed":{"type":"number"},"cancelled":{"type":"number"},"noShow":{"type":"number"}},"required":["eventTypeId","title","booked","completed","cancelled","noShow"]}},"byWeekdayHour":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"medianLeadHours":{"type":["number","null"]},"byMember":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"booked":{"type":"number"},"completed":{"type":"number"},"cancelled":{"type":"number"},"noShow":{"type":"number"}},"required":["userId","name","booked","completed","cancelled","noShow"]},"description":"The hosts of the meetings counted, most first: one with several hosts counts once under each, and once in the totals"}},"required":["booked","completed","cancelledByInvitee","cancelledByHost","rescheduled","noShow","declined","expired","byEventType","byWeekdayHour","medianLeadHours","byMember"]},"ExplainTeamTimeAnswer":{"type":"object","properties":{"offered":{"type":"boolean"},"byHost":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"you":{"type":"boolean","const":false},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["outside_hours","outside_restriction","not_on_grid","min_notice","beyond_window","outside_date_range","away","limit_count","limit_minutes","host_limit_count","host_limit_minutes","not_first_slot","day_not_offered","busy"]},"period":{"type":"string","enum":["day","week","month"]}},"required":["code"]}}},"required":["userId","name","you","reasons"]},{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"you":{"type":"boolean","const":true},"reasons":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["buffer","booked","outside_hours","outside_restriction","not_on_grid","min_notice","beyond_window","outside_date_range","away","calendar_busy","limit_count","limit_minutes","host_limit_count","host_limit_minutes","not_first_slot","day_not_offered","busy"]},"period":{"type":"string","enum":["day","week","month"]},"blockedBy":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"required":["code"]}}},"required":["userId","name","you","reasons"]}]},"description":"The organizer first, then the co-hosts in their order. Your own reasons are complete if the app or key can see your hours, with the permission see_hours. The reasons of another host do not say what keeps them busy or when"}},"required":["offered","byHost"]},"GetMeAnswer":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"handle":{"type":["string","null"]},"timeZone":{"type":"string"},"deletion":{"anyOf":[{"type":"object","properties":{"since":{"type":"string","format":"date-time"},"message":{"type":"string"}},"required":["since","message"]},{"type":"null"}]},"capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["id","email","name","handle","timeZone","deletion","capabilities"]},"SetLogoAnswer":{"type":"object","properties":{"logoUrl":{"type":"string"}},"required":["logoUrl"]},"DeleteAccountAnswer":{"type":"object","properties":{"status":{"type":"string","const":"deleting"},"message":{"type":"string"}},"required":["status","message"]},"ListApiKeysAnswer":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","name","capabilities","createdAt","lastUsedAt","revokedAt"]}},"CreateApiKeyAnswer":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"}},"required":["id","key"]},"ListConnectionsAnswer":{"type":"array","items":{"$ref":"#/components/schemas/CalendarConnection"}},"GetMyCalendarStateAnswer":{"type":"object","properties":{"ok":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["no_connection","needs_reauth","no_write_target"]},{"type":"null"}]}},"required":["ok","reason"]},"UpdateCalendarAnswer":{"type":"object","properties":{"toFollow":{"type":"array","items":{"type":"string","enum":["calendars","bookingsCalendar","disconnect"]}}},"required":["toFollow"]},"UseBookingsCalendarAnswer":{"type":"object","properties":{"created":{"type":["boolean","null"]},"toFollow":{"type":"array","items":{"type":"string","enum":["calendars","bookingsCalendar","disconnect"]}}},"required":["created","toFollow"]},"GetBookingsToMoveAnswer":{"type":"object","properties":{"writeTarget":{"type":["string","null"]},"from":{"type":"array","items":{"type":"object","properties":{"calendarId":{"type":"string"},"bookings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["calendarId","bookings"]}}},"required":["writeTarget","from"]},"MoveBookingsToWriteTargetAnswer":{"type":"object","properties":{"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"left":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["moved","left"]},"ListContactsAnswer":{"type":"object","properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"nextCursor":{"type":["string","null"]}},"required":["contacts","nextCursor"]},"GetContactAnswer":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"lists":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/ContactNote"}},"reminders":{"type":"array","items":{"$ref":"#/components/schemas/ContactReminder"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/ContactBooking"}},"moreHistory":{"type":"boolean"}},"required":["id","email","name","fields","lists","createdAt","notes","reminders","history","moreHistory"]},"BookFromContactAnswer":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]},"ForgetContactAnswer":{"type":"object","properties":{"bookings":{"type":"number"},"attendees":{"type":"number"},"answers":{"type":"number"},"contacts":{"type":"number"},"pollVotes":{"type":"number"},"packagePurchases":{"type":"number"},"messageSends":{"type":"number"},"webhookDeliveries":{"type":"number"},"webhookDeliveriesGivenUp":{"type":"number"},"calendarEventsKept":{"type":"number"},"blocklistEntriesKept":{"type":"number"},"outreach":{"type":"number"},"contactMessages":{"type":"number"}},"required":["bookings","attendees","answers","contacts","pollVotes","packagePurchases","messageSends","webhookDeliveries","webhookDeliveriesGivenUp","calendarEventsKept","blocklistEntriesKept","outreach","contactMessages"]},"GetStatsAnswer":{"type":"object","properties":{"booked":{"type":"number"},"completed":{"type":"number"},"cancelledByInvitee":{"type":"number"},"cancelledByHost":{"type":"number"},"rescheduled":{"type":"number"},"noShow":{"type":"number"},"declined":{"type":"number"},"expired":{"type":"number"},"byEventType":{"type":"array","items":{"type":"object","properties":{"eventTypeId":{"type":"string"},"title":{"type":"string"},"booked":{"type":"number"},"completed":{"type":"number"},"cancelled":{"type":"number"},"noShow":{"type":"number"}},"required":["eventTypeId","title","booked","completed","cancelled","noShow"]}},"byWeekdayHour":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"medianLeadHours":{"type":["number","null"]}},"required":["booked","completed","cancelledByInvitee","cancelledByHost","rescheduled","noShow","declined","expired","byEventType","byWeekdayHour","medianLeadHours"]},"ExportAccountDataAnswer":{"type":"object","properties":{"product":{"type":"string"},"exportedAt":{"type":"string","format":"date-time"},"tables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"complete":{"type":"boolean","const":true}},"required":["product","exportedAt","tables","complete"]},"ImportFromCalendlyAnswer":{"type":"object","properties":{"eventTypes":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"action":{"type":"string","enum":["create","skip"]},"reason":{"type":"string","enum":["team","paid","deleted","inactive","group","one_off","poll","unknown_kind","admin_managed","slug_taken","title_too_long","invalid","custom_hours","schedule_skipped","several_schedules"]},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"problem":{"type":"string","enum":["invalid","required","too_small","too_big","not_whole","duplicate","unsupported","locked"]},"limit":{"type":"number"},"of":{"type":"string","enum":["length","value","count"]},"inclusive":{"type":"boolean"},"message":{"type":"string"}},"required":["path","problem","message"]}},"calendlySchedule":{"type":"string"},"schedule":{"type":"string"},"omitted":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"why":{"type":"string"}},"required":["field","why"]}},"descriptionCut":{"type":"boolean","const":true}},"required":["slug","name","action"]}},"schedules":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"action":{"type":"string","enum":["create","skip"]},"savedAs":{"type":"string"},"reason":{"type":"string","enum":["invalid","exists","unreadable"]},"detail":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"problem":{"type":"string","enum":["invalid","required","too_small","too_big","not_whole","duplicate","unsupported","locked"]},"limit":{"type":"number"},"of":{"type":"string","enum":["length","value","count"]},"inclusive":{"type":"boolean"},"message":{"type":"string"}},"required":["path","problem","message"]}}},"required":["name","action"]}},"stopped":{"type":"object","properties":{"at":{"type":"string"},"message":{"type":"string"}},"required":["at","message"]}},"required":["eventTypes","schedules"]}},"responses":{"Error400":{"description":"`invalid_input`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_input"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error401":{"description":"`unauthorized`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["unauthorized"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error404":{"description":"`not_found`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["not_found"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error409":{"description":"`slot_unavailable`, `calendar_disconnected`, `conflict`","headers":{"Retry-After":{"description":"Seconds until a refusal ends by itself, as in `detail.retryAfterSeconds`. Examples are a daily bound, or a wait after a no thanks.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["slot_unavailable","calendar_disconnected","conflict"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error502":{"description":"`provider_error`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["provider_error"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error403":{"description":"`forbidden`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["forbidden"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error503":{"description":"`busy`","headers":{"Retry-After":{"required":true,"description":"Seconds to wait before you send the same request again, as in `detail.retryAfterSeconds`. Nothing was changed.","schema":{"type":"integer","minimum":0}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["busy"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error500":{"description":"`internal`","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["internal"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}},"Error405":{"description":"`method_not_allowed`","headers":{"Allow":{"required":true,"description":"The methods the path takes.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["method_not_allowed"]},"message":{"type":"string","description":"the real reason"},"detail":{"description":"more about the refusal, by code. A `slot_unavailable` has `alternatives`, and its `reason` is `too_soon` or `passed` when the time is too near, not taken. A `busy` has `reason` and `retryAfterSeconds`"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}}}}}}}}}}}