Returns bookable start times as UTC instants. Minimum notice, booking horizon,
appointment duration, trailing buffers, and DST transitions are already applied, so every
instant returned was bookable at the moment it was computed.The response never contains booking rows, customer data, or explicit busy ranges. slots
is the entire payload by design — a busy-range response would leak the tenant’s calendar
to anyone with a slug.
Availability is advisory; the submit is authoritative. Another customer can take a
slot between this read and your write, which comes back as 409 booking_conflict.Responses are cached 5s in the browser and 15s in the shared cache, so a plain refetch
straight after a conflict can hand you back the slot you just lost. Append a
cache-buster (&_=${Date.now()}) when you refetch after a 409.
Grouping into local days is your job
slots are instants; timezone is the tenant’s IANA zone. Rendering “Tuesday” correctly
— and surviving DST — means bucketing in that zone, not the visitor’s:
function groupSlotsByDate(slots, timeZone) { const byDate = new Map(); for (const slot of slots) { // en-CA renders YYYY-MM-DD. const key = new Intl.DateTimeFormat("en-CA", { timeZone, year: "numeric", month: "2-digit", day: "2-digit", }).format(new Date(slot)); byDate.set(key, [...(byDate.get(key) ?? []), slot]); } return byDate;}
Window rules
from is inclusive, to is exclusive, both must be ISO-8601 with an offset, and the
window may span at most 62 days. A wider window is 400 window_too_large — page through
it instead. The hosted page requests 60 days, comfortably inside the cap.
Path Parameters
slug
string
required
The tenant's public booking slug. Issued by DPC; there is no discovery endpoint.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DPC API","description":"Public API reference for DPC bookings.","colors":{"primary":"#FF7E00","light":"#FF9A33","dark":"#C25E00"},"api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["bash","javascript"]}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mikhail-deepcontext-app","hasAudioNarration":false,"actualSubdomain":"mikhail-deepcontext-app","customDomains":["docs.deepcontext.app"],"gitSource":{"type":"github","owner":"deep-context-ai","repo":"dpc-crm","deployBranch":"main","contentDirectory":"docs/api","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95df0f034dd2525b3efbc:success","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"API reference","count":3},{"language":"default","tag":"Guide","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"reference/availability","slug":"/reference/availability","pageMetadata":{"title":"Get open start times","sidebarTitle":"Get availability","description":"Free start times for one service over a window of up to 62 days.","openapi":"openapi.json GET /api/public/tenants/{slug}/availability","href":"/reference/availability"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Free start times for one service over a window of up to 62 days.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Returns bookable start times as UTC instants. Minimum notice, booking horizon,\nappointment duration, trailing buffers, and DST transitions are already applied, so every\ninstant returned was bookable at the moment it was computed.`}),`\n`,_jsxs(_components.p,{children:[`The response never contains booking rows, customer data, or explicit busy ranges. `,_jsx(_components.code,{children:`slots`}),`\nis the entire payload by design — a busy-range response would leak the tenant’s calendar\nto anyone with a slug.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Availability is advisory; the submit is authoritative.`}),` Another customer can take a\nslot between this read and your write, which comes back as `,_jsx(_components.code,{children:`409 booking_conflict`}),`.`]}),_jsxs(_components.p,{children:[`Responses are cached 5s in the browser and 15s in the shared cache, so a plain refetch\nstraight after a conflict can hand you back the slot you just lost. Append a\ncache-buster (`,_jsx(_components.code,{children:\"\u0026_=${Date.now()}\"}),`) when you refetch after a `,_jsx(_components.code,{children:`409`}),`.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`grouping-into-local-days-is-your-job`,children:`Grouping into local days is your job`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`slots`}),` are instants; `,_jsx(_components.code,{children:`timezone`}),` is the tenant’s IANA zone. Rendering “Tuesday” correctly\n— and surviving DST — means bucketing in that zone, not the visitor’s:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` groupSlotsByDate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`slots`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`timeZone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` byDate`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` slot`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` slots`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // en-CA renders YYYY-MM-DD.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Intl`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`DateTimeFormat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en-CA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` timeZone`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` year:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"numeric\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` month:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2-digit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` day:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2-digit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`format`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` byDate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`byDate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []), `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`slot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` byDate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`window-rules`,children:`Window rules`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`from`}),` is inclusive, `,_jsx(_components.code,{children:`to`}),` is exclusive, both must be ISO-8601 `,_jsx(_components.strong,{children:`with an offset`}),`, and the\nwindow may span at most 62 days. A wider window is `,_jsx(_components.code,{children:`400 window_too_large`}),` — page through\nit instead. The hosted page requests 60 days, comfortably inside the cap.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get open start times","sidebarTitle":"Get availability","description":"Free start times for one service over a window of up to 62 days.","openapi":"openapi.json GET /api/public/tenants/{slug}/availability","href":"/reference/availability"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Grouping into local days is your job","slug":"grouping-into-local-days-is-your-job","depth":2,"children":[]},{"title":"Window rules","slug":"window-rules","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"getBookingAvailability","summary":"Get open start times","description":"Free start times for one service over a window of up to 62 days.","parameters":["a884ff91-c095-447f-8b43-49e136184c90","b4345e20-fcdd-49db-adb5-cc800f51df8a","7a944ff9-11b8-4234-9f41-7a498e21fb53","d757e47f-cf98-4c43-9b37-2e27367a2dd1"],"responses":{"200":"b93136a7-4f7d-4c5a-a636-4159a2dda921","400":"587e1334-fb98-453d-b04a-6f48a5bdf43b","404":"e460e04b-5097-4541-8e07-4c2587e9430e"},"method":"get","type":"path","servers":["832a8f5b-1a3a-4005-8530-fc9596a6ae92"],"security":[],"path":"/api/public/tenants/{slug}/availability","baseUrlOptions":["https://deepcontext.app"],"title":"Get open start times","codeSamples":[],"requestExampleLanguages":["bash","javascript"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"a884ff91-c095-447f-8b43-49e136184c90":{"name":"slug","in":"path","required":true,"description":"The tenant's public booking slug. Issued by DPC; there is no discovery endpoint.","schema":{"type":"string","isRequired":true,"description":"The tenant's public booking slug. Issued by DPC; there is no discovery endpoint.","uniqueKey":"","typeLabel":"string"}},"b4345e20-fcdd-49db-adb5-cc800f51df8a":{"name":"service_id","in":"query","required":true,"description":"Duration and buffers are taken from this service.","schema":{"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)$","isRequired":true,"description":"Duration and buffers are taken from this service.","uniqueKey":"","typeLabel":"string\u003cuuid>"}},"7a944ff9-11b8-4234-9f41-7a498e21fb53":{"name":"from","in":"query","required":true,"description":"Inclusive window start. ISO-8601 with an offset.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","isRequired":true,"description":"Inclusive window start. ISO-8601 with an offset.","uniqueKey":"","typeLabel":"string\u003cdate-time>"}},"d757e47f-cf98-4c43-9b37-2e27367a2dd1":{"name":"to","in":"query","required":true,"description":"Exclusive window end. ISO-8601 with an offset. At most 62 days after `from`.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","isRequired":true,"description":"Exclusive window end. ISO-8601 with an offset. At most 62 days after `from`.","uniqueKey":"","typeLabel":"string\u003cdate-time>"}}},"responses":{"b93136a7-4f7d-4c5a-a636-4159a2dda921":{"description":"Open start times as UTC instants","content":{"application/json":{"schema":{"type":"object","properties":{"service_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)$","isRequired":true,"uniqueKey":"service_id","typeLabel":"string\u003cuuid>"},"from":{"type":"string","isRequired":true,"uniqueKey":"from","typeLabel":"string"},"to":{"type":"string","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"timezone":{"type":"string","isRequired":true,"uniqueKey":"timezone","typeLabel":"string"},"slots":{"type":"array","items":{"type":"string","uniqueKey":"slots.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"slots","typeLabel":"string[]"}},"required":["service_id","from","to","timezone","slots"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"service_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","from":"\u003cstring>","to":"\u003cstring>","timezone":"\u003cstring>","slots":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"587e1334-fb98-453d-b04a-6f48a5bdf43b":{"description":"Invalid query, window too large, or unknown/inactive service","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e460e04b-5097-4541-8e07-4c2587e9430e":{"description":"Unknown slug, or the tenant has booking disabled","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["code","message"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"832a8f5b-1a3a-4005-8530-fc9596a6ae92":{"url":"https://deepcontext.app"}}},"originalFileLocation":"openapi.json"},"subdomain":"mikhail-deepcontext-app","siteName":"DPC API","title":"Get open start times - DPC API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-26T18:55:16.489Z","originalFileLocation":"reference/availability.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Free start times for one service over a window of up to 62 days.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DPC API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/mikhail-deepcontext-app/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/mikhail-deepcontext-app/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/mikhail-deepcontext-app/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/mikhail-deepcontext-app/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get open start times - DPC API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Free start times for one service over a window of up to 62 days.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DPC API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.deepcontext.app/reference/availability\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mikhail-deepcontext-app.mintlify.site/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+open+start+times\u0026amp;description=Free+start+times+for+one+service+over+a+window+of+up+to+62+days.\u0026amp;theme=9986f8f38aade40081cc3d00\u0026amp;signature=c8f3a9d557c91ba0bae9bab97e8a2614957f8d2cfdaa44c5e743918815247f6b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get open start times - DPC API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Free start times for one service over a window of up to 62 days.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mikhail-deepcontext-app.mintlify.site/_mintlify/api/og/v2?division=API+reference\u0026amp;title=Get+open+start+times\u0026amp;description=Free+start+times+for+one+service+over+a+window+of+up+to+62+days.\u0026amp;theme=9986f8f38aade40081cc3d00\u0026amp;signature=c8f3a9d557c91ba0bae9bab97e8a2614957f8d2cfdaa44c5e743918815247f6b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/mikhail-deepcontext-app/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DPC API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF7E00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.deepcontext.app/reference/availability\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/availability.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.deepcontext.app/#organization\",\"name\":\"DPC API\",\"url\":\"https://docs.deepcontext.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.deepcontext.app#website\",\"name\":\"DPC API\",\"url\":\"https://docs.deepcontext.app\",\"publisher\":{\"@id\":\"https://docs.deepcontext.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.deepcontext.app/reference/availability#webpage\",\"url\":\"https://docs.deepcontext.app/reference/availability\",\"name\":\"Get open start times\",\"description\":\"Free start times for one service over a window of up to 62 days.\",\"dateModified\":\"2026-07-26T18:55:16.489Z\",\"isPartOf\":{\"@id\":\"https://docs.deepcontext.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.deepcontext.app/reference/availability#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.deepcontext.app/reference/availability#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API reference\",\"item\":\"https://docs.deepcontext.app/reference/config\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get open start times\",\"item\":\"https://docs.deepcontext.app/reference/availability\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.deepcontext.app/reference/availability#apireference\",\"headline\":\"Get open start times\",\"name\":\"Get open start times\",\"description\":\"Free start times for one service over a window of up to 62 days.\",\"url\":\"https://docs.deepcontext.app/reference/availability\",\"mainEntityOfPage\":{\"@id\":\"https://docs.deepcontext.app/reference/availability#webpage\"},\"dateModified\":\"2026-07-26T18:55:16.489Z\",\"publisher\":{\"@id\":\"https://docs.deepcontext.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.deepcontext.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DPC API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DPC API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/availability.md","siteName":"DPC API","nav":{"global":null,"groups":[{"group":"Guide","pages":[{"title":"Bookings API","href":"/index"}]},{"group":"API reference","pages":[{"title":"Get booking configuration","sidebarTitle":"Get configuration","description":"Services, their questions, branding, and the tenant timezone.","openapi":"openapi.json GET /api/public/tenants/{slug}","href":"/reference/config"},{"title":"Get open start times","sidebarTitle":"Get availability","openapi":"openapi.json GET /api/public/tenants/{slug}/availability","href":"/reference/availability"},{"title":"Submit a booking","sidebarTitle":"Create booking","description":"The single write. Requires an idempotency key and a Turnstile token.","openapi":"openapi.json POST /api/public/tenants/{slug}/bookings","href":"/reference/create-booking"}]}]},"basePath":"","title":"Get open start times - DPC API","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}