You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal event types: bookable via authenticated API, hidden from public pages #269
Today an event type with is_public = false cannot be booked at all: loadBookableEventType rejects it for every path, including POST /v1/bookings with an API key. That gate is deliberate for anonymous callers and should stay.
Request: a way to keep an event type off the public booking page, directory, embed and MCP listing while an authenticated caller (API key / admin session) can still fetch slots and create bookings for it. Similar to "secret" event types in other schedulers.
Use case: the host books appointments on behalf of a client from their own back office, using an event type with wider availability rules than the public ones (availability_rules.event_type_id already supports this).
Possible shape: a third visibility state ("internal"), or allowing is_public = false for authenticated requests only.
Confirmed as a real gap, not a misunderstanding: there is no workaround today. A non-public event type is rejected by loadBookableEventType on every path, including POST /v1/bookings with an API key — so today you have to make the wider-availability type public to book it at all.
Your second suggested shape is the one going ahead: a third state. The first one — letting is_public = false mean "bookable when authenticated" — would silently redefine existing rows: every operator who parked a draft with that flag would find it API-bookable after an upgrade. That's the one thing we can't do.
It's being handled as a single visibility model rather than a one-off, because #237 is already open adding an Unlisted state (hidden from directories, still bookable by direct link) and the two would otherwise overlap. Model is public, unlisted, internal, private — written up in #272. Yours is internal.
For internal, you get: any authenticated workspace member can book it. Not just owner/admin, so your normal API key is enough. Availability, min-notice and conflict rules still apply — it's ordinary booking, just not publicly discoverable.
That's deliberately a different answer from #270's skip_availability, which is owner/admin-only: booking a hidden event type respects every rule, while ignoring availability is a policy bypass. They're separate powers.
One question before you start: does internal actually cover your case, or would you be satisfied with unlisted — hidden from directories, link still works? If unlisted is enough, your issue closes for free when #237 lands and we never build the fourth state.
On your offer of a PR: yes, welcome, but hold it until #272 is settled (it needs #237's author to decide whether he rebases or hands over). Once the model is in, the work is small: one visibility column, one resolution helper, and each surface reading it instead of its own is_public check.
Thanks, the four-state model makes sense, and I agree that redefining is_public = false is not an option.
I'd like internal. With unlisted there is still a residual risk that someone with the link books the wider hours directly, and the whole point is that only the authenticated CRM can. Availability, min-notice and conflict rules applying as usual is exactly what I want.
Thanks, the four-state model makes sense, and I agree that redefining is_public = false is not an option.I'd like internal. With unlisted there is still a residual risk that someone with the link books the wider hours directly, and the whole point is that only the authenticated CRM can. Availability, min-notice and conflict rules applying as usual is exactly what I want.I'll hold the PR until #272 is settled. Am 24.11.2026 um 00:05 schrieb shockalotti ***@***.***>:shockalotti left a comment (Calnode/calnode#269)
Confirmed as a real gap, not a misunderstanding: there is no workaround today. A non-public event type is rejected by loadBookableEventType on every path, including POST /v1/bookings with an API key — so today you have to make the wider-availability type public to book it at all.
Your second suggested shape is the one going ahead: a third state. The first one — letting is_public = false mean "bookable when authenticated" — would silently redefine existing rows: every operator who parked a draft with that flag would find it API-bookable after an upgrade. That's the one thing we can't do.
It's being handled as a single visibility model rather than a one-off, because #237 is already open adding an Unlisted state (hidden from directories, still bookable by direct link) and the two would otherwise overlap. Model is public, unlisted, internal, private — written up in #272. Yours is internal.
For internal, you get: any authenticated workspace member can book it. Not just owner/admin, so your normal API key is enough. Availability, min-notice and conflict rules still apply — it's ordinary booking, just not publicly discoverable.
That's deliberately a different answer from #270's skip_availability, which is owner/admin-only: booking a hidden event type respects every rule, while ignoring availability is a policy bypass. They're separate powers.
One question before you start: does internal actually cover your case, or would you be satisfied with unlisted — hidden from directories, link still works? If unlisted is enough, your issue closes for free when #237 lands and we never build the fourth state.
On your offer of a PR: yes, welcome, but hold it until #272 is settled (it needs #237's author to decide whether he rebases or hands over). Once the model is in, the work is small: one visibility column, one resolution helper, and each surface reading it instead of its own is_public check.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
Update on sequencing — there's a blocker I didn't see when we agreed the model, and it changes the order rather than the destination.
POST /v1/bookings and GET /v1/event-types/{slug}/slots do not read credentials at all. Both are registered with no authentication middleware, so an API key sent to either is ignored — today, and after any visibility change. internal was defined as "bookable by an authenticated caller", and for REST there is currently no such caller to recognise.
So your case needs two things, not one: the visibility state, and optional authentication on those endpoints (recognise a key or session when present, stay anonymous when not). The second one touches CORS, caching (Vary: Authorization, private responses) and rate-limit keying, so it deserves its own review rather than riding along with a schema change.
What's happening
Now: the three states that need no auth work — public, unlisted, private — land first. That closes the other half of the model and is testable end to end today.
Next:internal, together with the optional-auth design, as its own change.
Your issue stays open as the tracking item for (2); I'm not closing it. The order is a sequencing decision, not a rejection — the four-state model in #272 is unchanged.
One thing worth knowing for when it lands: MCP create_booking is already authenticated, so internal will work there before it works over plain REST. If your CRM speaks MCP, that could be an interim path for you; if it only speaks REST, it waits for step 2.
A question that affects the design: when optional auth exists, should an internal booking made with an API key be attributed to that key's user (so the admin UI shows who booked), or stay anonymous like a public booking? Attribution is more useful but means the booking record gains a creator the public flow never has. No wrong answer — I'd just rather decide it before writing it than after.
Thanks for the heads-up, the sequencing makes sense. My CRM only speaks REST to Calnode today, but the MCP path could work as an interim. Two questions before I decide:
Is there an MCP tool for slots that will also return internal event types, and are the MCP results structured (booking id, start, error codes) or text meant for a model?
Roughly how far apart do you expect internal on MCP and optional auth on REST to land?
On attribution: yes, please attribute an internal booking to the key's user. For my case it matters to tell "booked by the host on the client's behalf" apart from "booked by the client". Please keep the creator nullable so public bookings stay unchanged, and include it in the webhook payload and authenticated GET, never in public or embed payloads.
Noted on is_public being removed, I don't read it anywhere.
Good questions — short answers, and the second one changes the picture slightly.
1. Yes, get_available_slots exists, and results are structured. It returns typed JSON (a list of slots with start, end, host_ids), and create_booking returns the created booking including its id and assigned host — not prose for a model to read. One honest caveat: errors are human-readable messages, not structured codes. A model copes with that; a CRM branching on error type would have to match strings. If that matters to you, say so, because adding machine-readable error codes to the MCP tools is a small, separate piece of work I'd rather know about now.
2. Closer together than "MCP first, REST later" implies. The MCP path still needs the same core change — an authenticated flag threaded into the slots and booking gate — because MCP's slot lookup goes through the same code as REST. What REST adds on top is only the optional-auth middleware: reading a bearer key or session when present.
So MCP-first saves the middleware, not the design. I'd expect them in the same release cycle with MCP landing first by days rather than weeks, but I won't commit to dates — the middleware needs its own review for CORS, cache headers and rate-limit keying.
Attribution: agreed, and recorded. A nullable created_by on bookings, set when the caller is authenticated, null for public bookings so nothing changes there. That lands with step 2 rather than with the visibility column, since it is the authenticated caller that gives it a value.
One consequence worth stating: an MCP booking made today is already attributable (MCP authenticates), so created_by will be populated for those immediately once the column exists.
Interim path, if you want it:internal on MCP alone is a smaller change than the whole of step 2 — it needs the gate flag, not the middleware. If you'd rather have something working sooner than the full REST story, say so and I'll scope that slice separately instead of waiting for both.
Error codes: yes, please. My CRM would branch on the error type (slot taken, outside availability, not permitted, event type not bookable), so machine-readable codes on the MCP tools matter to me. Human-readable messages alongside are fine.
Interim path: yes, please scope internal on MCP alone. I'd rather have it working sooner and add REST once the optional-auth middleware has had its review. I'll build the CRM side against MCP for now.
Attribution as you recorded it works for me (nullable created_by, populated for MCP bookings once the column exists).
Activity
pullfrog commentedon Nov 23, 2026
shockalotti commentedon Nov 23, 2026
Confirmed as a real gap, not a misunderstanding: there is no workaround today. A non-public event type is rejected by
loadBookableEventTypeon every path, includingPOST /v1/bookingswith an API key — so today you have to make the wider-availability type public to book it at all.Your second suggested shape is the one going ahead: a third state. The first one — letting
is_public = falsemean "bookable when authenticated" — would silently redefine existing rows: every operator who parked a draft with that flag would find it API-bookable after an upgrade. That's the one thing we can't do.It's being handled as a single visibility model rather than a one-off, because #237 is already open adding an Unlisted state (hidden from directories, still bookable by direct link) and the two would otherwise overlap. Model is
public,unlisted,internal,private— written up in #272. Yours isinternal.For
internal, you get: any authenticated workspace member can book it. Not just owner/admin, so your normal API key is enough. Availability, min-notice and conflict rules still apply — it's ordinary booking, just not publicly discoverable.That's deliberately a different answer from #270's
skip_availability, which is owner/admin-only: booking a hidden event type respects every rule, while ignoring availability is a policy bypass. They're separate powers.One question before you start: does
internalactually cover your case, or would you be satisfied withunlisted— hidden from directories, link still works? If unlisted is enough, your issue closes for free when #237 lands and we never build the fourth state.On your offer of a PR: yes, welcome, but hold it until #272 is settled (it needs #237's author to decide whether he rebases or hands over). Once the model is in, the work is small: one
visibilitycolumn, one resolution helper, and each surface reading it instead of its ownis_publiccheck.portfoliomanufaktur commentedon Nov 24, 2026
Thanks, the four-state model makes sense, and I agree that redefining
is_public = falseis not an option.I'd like
internal. Withunlistedthere is still a residual risk that someone with the link books the wider hours directly, and the whole point is that only the authenticated CRM can. Availability, min-notice and conflict rules applying as usual is exactly what I want.I'll hold the PR until #272 is settled.
portfoliomanufaktur commentedon Nov 24, 2026
shockalotti commentedon Dec 1, 2026
Update on sequencing — there's a blocker I didn't see when we agreed the model, and it changes the order rather than the destination.
POST /v1/bookingsandGET /v1/event-types/{slug}/slotsdo not read credentials at all. Both are registered with no authentication middleware, so an API key sent to either is ignored — today, and after any visibility change.internalwas defined as "bookable by an authenticated caller", and for REST there is currently no such caller to recognise.So your case needs two things, not one: the visibility state, and optional authentication on those endpoints (recognise a key or session when present, stay anonymous when not). The second one touches CORS, caching (
Vary: Authorization, private responses) and rate-limit keying, so it deserves its own review rather than riding along with a schema change.What's happening
public,unlisted,private— land first. That closes the other half of the model and is testable end to end today.internal, together with the optional-auth design, as its own change.Your issue stays open as the tracking item for (2); I'm not closing it. The order is a sequencing decision, not a rejection — the four-state model in #272 is unchanged.
One thing worth knowing for when it lands: MCP
create_bookingis already authenticated, sointernalwill work there before it works over plain REST. If your CRM speaks MCP, that could be an interim path for you; if it only speaks REST, it waits for step 2.A question that affects the design: when optional auth exists, should an
internalbooking made with an API key be attributed to that key's user (so the admin UI shows who booked), or stay anonymous like a public booking? Attribution is more useful but means the booking record gains a creator the public flow never has. No wrong answer — I'd just rather decide it before writing it than after.portfoliomanufaktur commentedon Dec 1, 2026
Thanks for the heads-up, the sequencing makes sense. My CRM only speaks REST to Calnode today, but the MCP path could work as an interim. Two questions before I decide:
internalevent types, and are the MCP results structured (booking id, start, error codes) or text meant for a model?internalon MCP and optional auth on REST to land?On attribution: yes, please attribute an internal booking to the key's user. For my case it matters to tell "booked by the host on the client's behalf" apart from "booked by the client". Please keep the creator nullable so public bookings stay unchanged, and include it in the webhook payload and authenticated GET, never in public or embed payloads.
Noted on
is_publicbeing removed, I don't read it anywhere.shockalotti commentedon Dec 1, 2026
Good questions — short answers, and the second one changes the picture slightly.
1. Yes,
get_available_slotsexists, and results are structured. It returns typed JSON (a list of slots withstart,end,host_ids), andcreate_bookingreturns the created booking including itsidand assigned host — not prose for a model to read. One honest caveat: errors are human-readable messages, not structured codes. A model copes with that; a CRM branching on error type would have to match strings. If that matters to you, say so, because adding machine-readable error codes to the MCP tools is a small, separate piece of work I'd rather know about now.2. Closer together than "MCP first, REST later" implies. The MCP path still needs the same core change — an
authenticatedflag threaded into the slots and booking gate — because MCP's slot lookup goes through the same code as REST. What REST adds on top is only the optional-auth middleware: reading a bearer key or session when present.So MCP-first saves the middleware, not the design. I'd expect them in the same release cycle with MCP landing first by days rather than weeks, but I won't commit to dates — the middleware needs its own review for CORS, cache headers and rate-limit keying.
Attribution: agreed, and recorded. A nullable
created_byon bookings, set when the caller is authenticated,nullfor public bookings so nothing changes there. That lands with step 2 rather than with the visibility column, since it is the authenticated caller that gives it a value.One consequence worth stating: an MCP booking made today is already attributable (MCP authenticates), so
created_bywill be populated for those immediately once the column exists.Interim path, if you want it:
internalon MCP alone is a smaller change than the whole of step 2 — it needs the gate flag, not the middleware. If you'd rather have something working sooner than the full REST story, say so and I'll scope that slice separately instead of waiting for both.portfoliomanufaktur commentedon Dec 1, 2026
Thanks, that clears it up.
internalon MCP alone. I'd rather have it working sooner and add REST once the optional-auth middleware has had its review. I'll build the CRM side against MCP for now.Attribution as you recorded it works for me (nullable
created_by, populated for MCP bookings once the column exists).