{"openapi":"3.1.0","info":{"title":"Spokegrid Booking","description":"Set up project booking pages and reserve available appointments. Public guest requests are credential-free. Keep private management keys in a protected store and reuse the same key and exact body when retrying an uncertain reservation.","version":"1.1.0"},"paths":{"/api/v1/booking/schedules":{"get":{"tags":["booking"],"summary":"List Schedules","description":"Read the signed-in host's schedules and up to 100 upcoming appointments.","operationId":"listBookingSchedules","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"},"example":{"schedules":[{"name":"Discovery call","description":"Discuss a website project","timezone":"UTC","opens":"09:00","closes":"17:00","weekdays":[1,2,3,4,5],"duration_minutes":30,"notice_minutes":120,"booking_window_days":14,"buffer_minutes":15,"closed_dates":["2027-06-15"],"embed_origin":"https://studio.example.com","active":false,"id":"80000000-0000-4000-8000-000000000002","revision":1}],"appointments":[]}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[{"accountCookie":[]},{"accountBearer":[]}],"x-side-effects":false}},"/api/v1/booking/schedules/{schedule_id}":{"put":{"tags":["booking"],"summary":"Save Schedule","description":"Create with revision zero and a stable random schedule ID, or update using the returned revision. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"saveBookingSchedule","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleInput"},"example":{"name":"Discovery call","description":"Discuss a website project","timezone":"UTC","opens":"09:00","closes":"17:00","weekdays":[1,2,3,4,5],"duration_minutes":30,"notice_minutes":120,"booking_window_days":14,"buffer_minutes":15,"closed_dates":["2027-06-15"],"embed_origin":"https://studio.example.com","active":false,"expected_revision":0}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleReceipt"},"example":{"id":"80000000-0000-4000-8000-000000000002","revision":1}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[{"accountCookie":[]},{"accountBearer":[]}],"x-side-effects":true}},"/api/v1/automation/project/booking-pages":{"get":{"tags":["booking"],"summary":"List Agent Booking Pages","description":"Read booking pages owned by the credential issuer in its bound project. Guest details are excluded.","operationId":"listAgentBookingPages","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSchedules"},"example":{"schedules":[{"name":"Discovery call","description":"Discuss a website project","timezone":"UTC","opens":"09:00","closes":"17:00","weekdays":[1,2,3,4,5],"duration_minutes":30,"notice_minutes":120,"booking_window_days":14,"buffer_minutes":15,"closed_dates":["2027-06-15"],"embed_origin":"https://studio.example.com","active":false,"id":"80000000-0000-4000-8000-000000000002","revision":1,"public_url":null,"embed_url":null}]}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"rate_limited","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[{"agentBearer":[]}],"x-required-scope":"booking:manage","x-side-effects":false}},"/api/v1/automation/project/booking-pages/{schedule_id}":{"put":{"tags":["booking"],"summary":"Save Agent Booking Page","description":"Create a draft at revision zero with a random UUID, or replace settings using the current revision. The credential assigns the project automatically. Re-read the page after an uncertain update. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"saveAgentBookingPage","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentScheduleInput"},"example":{"name":"Discovery call","description":"Discuss a website project","timezone":"UTC","opens":"09:00","closes":"17:00","weekdays":[1,2,3,4,5],"duration_minutes":30,"notice_minutes":120,"booking_window_days":14,"buffer_minutes":15,"closed_dates":["2027-06-15"],"embed_origin":"https://studio.example.com","active":false,"expected_revision":0}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleReceipt"},"example":{"id":"80000000-0000-4000-8000-000000000002","revision":1}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"rate_limited","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[{"agentBearer":[]}],"x-required-scope":"booking:manage","x-side-effects":true}},"/api/v1/booking/public/{schedule_id}":{"get":{"tags":["booking"],"summary":"Availability","description":"Get current availability for one day on a published booking page, using its calendar time zone.","operationId":"getBookingAvailability","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Day"},"description":"Host-local calendar date. Omit to check today.","example":"2027-06-14"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSchedule"},"example":{"name":"Discovery call","description":"Discuss a website project","timezone":"UTC","duration_minutes":30,"today":"2027-06-14","last_day":"2027-06-28","slots":["2027-06-14T09:00:00Z"],"next_day":null}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":false},"post":{"tags":["booking"],"summary":"Reserve","description":"Reserve an available start instant. Republish exactly the same payload and key when retrying. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"createBookingAppointment","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","description":"Reuse this random UUID only for an identical retry.","title":"Idempotency-Key"},"description":"Reuse this random UUID only for an identical retry.","example":"80000000-0000-4000-8000-000000000001"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reservation"},"example":{"name":"Alex Example","email":"alex@example.com","starts_at":"2027-06-14T09:00:00Z","cancel_key":"80000000-0000-4000-8000-000000000004"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReceipt"},"example":{"id":"80000000-0000-4000-8000-000000000003","starts_at":"2027-06-14T09:00:00Z","ends_at":"2027-06-14T09:30:00Z","cancelled":false,"replayed":false,"revision":1}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"examples":{"slot_unavailable":{"value":{"detail":{"code":"slot_unavailable","message":"This time is no longer available. Choose another slot.","retryable":false}}},"revision_conflict":{"value":{"detail":{"code":"revision_conflict","message":"Refresh the appointment or check whether the original request succeeded.","retryable":false}}}}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"200":{"description":"The original request was replayed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReceipt"},"example":{"id":"80000000-0000-4000-8000-000000000003","starts_at":"2027-06-14T09:00:00Z","ends_at":"2027-06-14T09:30:00Z","cancelled":false,"replayed":true,"revision":1}}}}},"security":[],"x-side-effects":true}},"/api/v1/booking/public/{schedule_id}/embed":{"get":{"tags":["booking"],"summary":"Embed Settings","description":"Return the exact website allowed to frame this published public booking page.","operationId":"getBookingEmbedSettings","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedSettings"},"example":{"origin":"https://studio.example.com"}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":false}},"/api/v1/booking/public/{schedule_id}/calendar":{"get":{"tags":["booking"],"summary":"Calendar","description":"Find dates that currently have open slots. Request a chosen date's slots before reserving.","operationId":"getBookingCalendar","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Schedule Id"},"description":"Booking page ID. Read the project’s pages or use the last segment of its public booking link.","example":"80000000-0000-4000-8000-000000000002"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingCalendar"},"example":{"today":"2027-06-14","last_day":"2027-06-28","available_days":["2027-06-14"]}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":false}},"/api/v1/booking/appointments/{appointment_id}/cancel":{"post":{"tags":["booking"],"summary":"Host Cancel","description":"Cancel a future appointment on one of the signed-in host's booking pages. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"cancelHostAppointment","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"},"description":"Appointment ID returned when a time was reserved.","example":"80000000-0000-4000-8000-000000000003"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelReceipt"},"example":{"cancelled":true}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[{"accountCookie":[]},{"accountBearer":[]}],"x-side-effects":true}},"/api/v1/booking/public/appointments/{appointment_id}/cancel":{"post":{"tags":["booking"],"summary":"Guest Cancel","description":"Cancel a future appointment using its original cancellation key. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"cancelGuestAppointment","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"},"description":"Appointment ID returned when a time was reserved.","example":"80000000-0000-4000-8000-000000000003"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelInput"},"example":{"cancel_key":"80000000-0000-4000-8000-000000000004"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelReceipt"},"example":{"cancelled":true}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":true}},"/api/v1/booking/public/appointments/{appointment_id}/manage":{"post":{"tags":["booking"],"summary":"Guest Manage","description":"Read appointment details using the private link key. Contact information is excluded. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"getGuestAppointment","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"},"description":"Appointment ID returned when a time was reserved.","example":"80000000-0000-4000-8000-000000000003"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelInput"},"example":{"cancel_key":"80000000-0000-4000-8000-000000000004"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedAppointment"},"example":{"id":"80000000-0000-4000-8000-000000000003","schedule_id":"80000000-0000-4000-8000-000000000002","name":"Discovery call","timezone":"UTC","starts_at":"2027-06-14T09:00:00Z","ends_at":"2027-06-14T09:30:00Z","revision":1,"cancelled":false,"can_cancel":true,"can_reschedule":true}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":false}},"/api/v1/booking/public/appointments/{appointment_id}/reschedule":{"post":{"tags":["booking"],"summary":"Guest Reschedule","description":"Move an existing appointment to an available time. Identical retries keep the new time. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"rescheduleGuestAppointment","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"},"description":"Appointment ID returned when a time was reserved.","example":"80000000-0000-4000-8000-000000000003"},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid","title":"Idempotency-Key"},"example":"80000000-0000-4000-8000-000000000001","description":"Use a fresh random UUID per intent. Reuse it for an identical retry."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveInput"},"example":{"cancel_key":"80000000-0000-4000-8000-000000000004","starts_at":"2027-06-14T09:00:00Z","expected_revision":1}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReservationReceipt"},"example":{"id":"80000000-0000-4000-8000-000000000003","starts_at":"2027-06-14T09:00:00Z","ends_at":"2027-06-14T09:30:00Z","cancelled":false,"replayed":false,"revision":2}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"examples":{"slot_unavailable":{"value":{"detail":{"code":"slot_unavailable","message":"This time is no longer available. Choose another slot.","retryable":false}}},"revision_conflict":{"value":{"detail":{"code":"revision_conflict","message":"Refresh the appointment or check whether the original request succeeded.","retryable":false}}}}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":true}},"/api/v1/booking/public/appointments/{appointment_id}/reschedule-options":{"post":{"tags":["booking"],"summary":"Guest Move Slots","description":"Read replacement times using the private key in the request body. Availability excludes the guest's existing appointment and its buffer. On 409, read current availability or the current revision before changing an intent. On 429, wait for Retry-After. On 503, back off. For operations with a retry key, preserve it and the original body.","operationId":"getGuestRescheduleOptions","parameters":[{"name":"appointment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Appointment Id"},"description":"Appointment ID returned when a time was reserved.","example":"80000000-0000-4000-8000-000000000003"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveSlotsInput"},"example":{"cancel_key":"80000000-0000-4000-8000-000000000004","day":"2027-06-14"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveSlots"},"example":{"day":"2027-06-14","timezone":"UTC","revision":1,"slots":["2027-06-14T09:00:00Z"]}}}},"401":{"description":"Sign in or provide a valid existing Spokegrid user access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"403":{"description":"Trusted Origin or workspace write permission required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"404":{"description":"No accessible project, workspace, or owned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"409":{"description":"Revision conflict, archived project, capacity limit, or idempotency key conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"413":{"description":"Project requests are limited to 16 KB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"422":{"description":"Check field validation details before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"429":{"description":"Wait for Retry-After before retrying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"},"example":{"detail":{"code":"request_rejected","message":"Too many requests. Please try again later.","retryable":true}}}},"headers":{"Retry-After":{"description":"Seconds before retrying.","schema":{"type":"integer"}}}},"500":{"description":"Unexpected server failure; preserve the draft and retry the same intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}},"503":{"description":"Temporary storage/configuration failure; retry without discarding the draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectError"}}}}},"security":[],"x-side-effects":false}}},"components":{"schemas":{"AgentSchedule":{"properties":{"name":{"type":"string","maxLength":100,"minLength":3,"title":"Name"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"timezone":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_+-]+(?:/[A-Za-z0-9_+-]+)*$","title":"Timezone"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","maxItems":7,"minItems":1,"title":"Weekdays"},"opens":{"type":"string","format":"time","title":"Opens"},"closes":{"type":"string","format":"time","title":"Closes"},"duration_minutes":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Duration Minutes"},"notice_minutes":{"type":"integer","maximum":10080.0,"minimum":15.0,"title":"Notice Minutes","default":120},"active":{"type":"boolean","title":"Active","default":false},"embed_origin":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Embed Origin"},"confirmation_message":{"type":"string","maxLength":500,"title":"Confirmation Message","default":""},"booking_window_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Booking Window Days","description":"How many days ahead a guest can book, in the host’s time zone. Omit when updating to keep the current value.","default":30},"buffer_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Buffer Minutes","description":"Minutes to reserve after each new appointment. Omit when updating to keep the current value.","default":0},"closed_dates":{"items":{"type":"string","format":"date"},"type":"array","maxItems":60,"title":"Closed Dates","description":"Host-local dates to block. Send an empty list to clear the dates or omit to keep the current list."},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"embed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Embed Url"}},"additionalProperties":false,"type":"object","required":["name","timezone","weekdays","opens","closes","duration_minutes","id","revision","public_url","embed_url"],"title":"AgentSchedule"},"AgentScheduleInput":{"properties":{"expected_revision":{"type":"integer","maximum":2147483646.0,"minimum":0.0,"title":"Expected Revision"},"name":{"type":"string","maxLength":100,"minLength":3,"title":"Name"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"timezone":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_+-]+(?:/[A-Za-z0-9_+-]+)*$","title":"Timezone"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","maxItems":7,"minItems":1,"title":"Weekdays"},"opens":{"type":"string","format":"time","title":"Opens"},"closes":{"type":"string","format":"time","title":"Closes"},"duration_minutes":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Duration Minutes"},"notice_minutes":{"type":"integer","maximum":10080.0,"minimum":15.0,"title":"Notice Minutes","default":120},"active":{"type":"boolean","title":"Active","default":false},"embed_origin":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Embed Origin"},"confirmation_message":{"type":"string","maxLength":500,"title":"Confirmation Message","default":""},"booking_window_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Booking Window Days","description":"How many days ahead a guest can book, in the host’s time zone. Omit when updating to keep the current value.","default":30},"buffer_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Buffer Minutes","description":"Minutes to reserve after each new appointment. Omit when updating to keep the current value.","default":0},"closed_dates":{"items":{"type":"string","format":"date"},"type":"array","maxItems":60,"title":"Closed Dates","description":"Host-local dates to block. Send an empty list to clear the dates or omit to keep the current list."},"consent_to_publish":{"anyOf":[{"type":"boolean","const":true},{"type":"null"}],"title":"Consent To Publish","description":"Required when active=true. Set only when the user asked to publish the named page and its settings."}},"additionalProperties":false,"type":"object","required":["expected_revision","name","timezone","weekdays","opens","closes","duration_minutes"],"title":"AgentScheduleInput"},"AgentSchedules":{"properties":{"schedules":{"items":{"$ref":"#/components/schemas/AgentSchedule"},"type":"array","title":"Schedules"}},"type":"object","required":["schedules"],"title":"AgentSchedules"},"BookingCalendar":{"properties":{"today":{"type":"string","format":"date","title":"Today","description":"Current date in the host’s time zone."},"last_day":{"type":"string","format":"date","title":"Last Day","description":"Last date in the booking window, inclusive."},"available_days":{"items":{"type":"string","format":"date"},"type":"array","title":"Available Days","description":"Days with at least one open slot at the time of this request."}},"type":"object","required":["today","last_day","available_days"],"title":"BookingCalendar"},"CancelInput":{"properties":{"cancel_key":{"type":"string","format":"uuid","title":"Cancel Key"}},"additionalProperties":false,"type":"object","required":["cancel_key"],"title":"CancelInput"},"CancelReceipt":{"properties":{"cancelled":{"type":"boolean","title":"Cancelled"}},"type":"object","required":["cancelled"],"title":"CancelReceipt"},"Dashboard":{"properties":{"schedules":{"items":{"$ref":"#/components/schemas/Schedule"},"type":"array","title":"Schedules"},"appointments":{"items":{"$ref":"#/components/schemas/HostAppointment"},"type":"array","title":"Appointments"}},"type":"object","required":["schedules","appointments"],"title":"Dashboard"},"EmbedSettings":{"properties":{"origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"}},"type":"object","required":["origin"],"title":"EmbedSettings"},"HostAppointment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"schedule_id":{"type":"string","format":"uuid","title":"Schedule Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","schedule_id","starts_at","ends_at","name","email"],"title":"HostAppointment"},"ManagedAppointment":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"schedule_id":{"type":"string","format":"uuid","title":"Schedule Id"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"revision":{"type":"integer","title":"Revision"},"cancelled":{"type":"boolean","title":"Cancelled"},"can_cancel":{"type":"boolean","title":"Can Cancel"},"can_reschedule":{"type":"boolean","title":"Can Reschedule"}},"type":"object","required":["id","schedule_id","name","timezone","starts_at","ends_at","revision","cancelled","can_cancel","can_reschedule"],"title":"ManagedAppointment"},"MoveInput":{"properties":{"cancel_key":{"type":"string","format":"uuid","title":"Cancel Key"},"expected_revision":{"type":"integer","maximum":2147483646.0,"minimum":1.0,"title":"Expected Revision"},"starts_at":{"type":"string","format":"date-time","title":"Starts At","description":"Exact start time returned by availability, with its UTC offset."}},"additionalProperties":false,"type":"object","required":["cancel_key","expected_revision","starts_at"],"title":"MoveInput"},"MoveSlots":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"timezone":{"type":"string","title":"Timezone"},"revision":{"type":"integer","title":"Revision","description":"Current appointment revision to supply when rescheduling."},"slots":{"items":{"type":"string","format":"date-time"},"type":"array","title":"Slots"}},"type":"object","required":["day","timezone","revision","slots"],"title":"MoveSlots"},"MoveSlotsInput":{"properties":{"cancel_key":{"type":"string","format":"uuid","title":"Cancel Key"},"day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Day","description":"Host-local date to check. Omit to check today."}},"additionalProperties":false,"type":"object","required":["cancel_key"],"title":"MoveSlotsInput"},"ProjectError":{"properties":{"detail":{"$ref":"#/components/schemas/ProjectErrorDetail"}},"type":"object","required":["detail"],"title":"ProjectError"},"ProjectErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"retryable":{"type":"boolean","title":"Retryable","default":false},"fields":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Fields"}},"type":"object","required":["code","message"],"title":"ProjectErrorDetail"},"PublicSchedule":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"timezone":{"type":"string","title":"Timezone"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"today":{"type":"string","format":"date","title":"Today"},"slots":{"items":{"type":"string","format":"date-time"},"type":"array","title":"Slots"},"next_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Day"},"last_day":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Last Day","description":"Last bookable date in the host’s time zone, inclusive."}},"type":"object","required":["name","description","timezone","duration_minutes","today","slots"],"title":"PublicSchedule"},"Reservation":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At","description":"Exact start time returned by availability, with its UTC offset."},"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"email":{"type":"string","maxLength":254,"format":"email","title":"Email"},"cancel_key":{"type":"string","format":"uuid","title":"Cancel Key","description":"Generate a fresh random UUID and keep it to cancel the appointment."}},"additionalProperties":false,"type":"object","required":["starts_at","name","email","cancel_key"],"title":"Reservation"},"ReservationReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"cancelled":{"type":"boolean","title":"Cancelled"},"replayed":{"type":"boolean","title":"Replayed"},"revision":{"type":"integer","title":"Revision","default":1},"confirmation_message":{"type":"string","title":"Confirmation Message","default":""}},"type":"object","required":["id","starts_at","ends_at","cancelled","replayed"],"title":"ReservationReceipt"},"Schedule":{"properties":{"name":{"type":"string","maxLength":100,"minLength":3,"title":"Name"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"timezone":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_+-]+(?:/[A-Za-z0-9_+-]+)*$","title":"Timezone"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","maxItems":7,"minItems":1,"title":"Weekdays"},"opens":{"type":"string","format":"time","title":"Opens"},"closes":{"type":"string","format":"time","title":"Closes"},"duration_minutes":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Duration Minutes"},"notice_minutes":{"type":"integer","maximum":10080.0,"minimum":15.0,"title":"Notice Minutes","default":120},"active":{"type":"boolean","title":"Active","default":false},"embed_origin":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Embed Origin"},"confirmation_message":{"type":"string","maxLength":500,"title":"Confirmation Message","default":""},"booking_window_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Booking Window Days","description":"How many days ahead a guest can book, in the host’s time zone. Omit when updating to keep the current value.","default":30},"buffer_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Buffer Minutes","description":"Minutes to reserve after each new appointment. Omit when updating to keep the current value.","default":0},"closed_dates":{"items":{"type":"string","format":"date"},"type":"array","maxItems":60,"title":"Closed Dates","description":"Host-local dates to block. Send an empty list to clear the dates or omit to keep the current list."},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"}},"additionalProperties":false,"type":"object","required":["name","timezone","weekdays","opens","closes","duration_minutes","id","revision"],"title":"Schedule"},"ScheduleInput":{"properties":{"expected_revision":{"type":"integer","maximum":2147483646.0,"minimum":0.0,"title":"Expected Revision"},"name":{"type":"string","maxLength":100,"minLength":3,"title":"Name"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"timezone":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[A-Za-z0-9_+-]+(?:/[A-Za-z0-9_+-]+)*$","title":"Timezone"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","maxItems":7,"minItems":1,"title":"Weekdays"},"opens":{"type":"string","format":"time","title":"Opens"},"closes":{"type":"string","format":"time","title":"Closes"},"duration_minutes":{"type":"integer","maximum":120.0,"minimum":15.0,"title":"Duration Minutes"},"notice_minutes":{"type":"integer","maximum":10080.0,"minimum":15.0,"title":"Notice Minutes","default":120},"active":{"type":"boolean","title":"Active","default":false},"embed_origin":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Embed Origin"},"confirmation_message":{"type":"string","maxLength":500,"title":"Confirmation Message","default":""},"booking_window_days":{"type":"integer","maximum":30.0,"minimum":1.0,"title":"Booking Window Days","description":"How many days ahead a guest can book, in the host’s time zone. Omit when updating to keep the current value.","default":30},"buffer_minutes":{"type":"integer","maximum":120.0,"minimum":0.0,"title":"Buffer Minutes","description":"Minutes to reserve after each new appointment. Omit when updating to keep the current value.","default":0},"closed_dates":{"items":{"type":"string","format":"date"},"type":"array","maxItems":60,"title":"Closed Dates","description":"Host-local dates to block. Send an empty list to clear the dates or omit to keep the current list."},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"additionalProperties":false,"type":"object","required":["expected_revision","name","timezone","weekdays","opens","closes","duration_minutes"],"title":"ScheduleInput"},"ScheduleReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["id","revision"],"title":"ScheduleReceipt"}},"securitySchemes":{"accountCookie":{"type":"apiKey","in":"cookie","name":"__Host-sg_session","description":"Signed-in account. Mutations require a trusted platform Origin."},"accountBearer":{"type":"http","scheme":"bearer","description":"Signed-in Spokegrid account token."},"agentBearer":{"type":"http","scheme":"bearer","bearerFormat":"sg_agent_<uuid>.<secret>","description":"In https://spokegrid.com/dashboard/automation, a project owner or admin creates a credential with booking:manage. Omit account cookies."}}},"servers":[{"url":"https://api.spokegrid.com"}]}