All notable changes to this project will be documented in this file.
Note: This file is the source of truth.
apps/docs/src/content/changelog.mdis auto-generated from this file on every docs build viaapps/docs/scripts/build-content.jsand is gitignored. Do not edit the generated file directly — changes will be wiped on the next build.
/p/:token always booked the first time on the list, on both app.vennio.app and when.vennio.app. The only way to get another time was to send a counter-proposal. Each time is now a choice, and the chosen slot's id goes to POST /v1/proposals/{id}/response as selected_slot_id. A proposal with one time is picked for the invitee, so nothing changes there. With several times, Accept stays disabled until one is picked. when.vennio.app used to show only the first time; it now lists them all. The proposal email's Accept button still opens this page and books nothing by itself, so it gets the same fix. The API is unchanged. Issue #936.POST /v1/ai/chat now allows 50 messages per account per UTC day. Before, the only limit was 20 per 15 minutes, so one account could send about 1,900 a day. Message 51 gets 429 with error: "Rate limit exceeded", a message saying when the limit resets, and Retry-After in seconds until midnight UTC. Only messages that pass validation count. The limit is set by AI_CHAT_DAILY_LIMIT (default 50). The count lives in the database (migration 20261127_ai_chat_daily_usage.sql, applied by hand), so it survives restarts. Until that migration is applied, the API logs the missing function and lets chats through. The portal chat now shows the limit message instead of a generic error. Found by security audit run 3 (lead 3, part 2).POST /v1/ai/chat now stops the model call when the client disconnects. Before, a caller could start a chat and drop the connection, and the API kept streaming the full response from Anthropic, up to 4,096 output tokens, with no one reading it. The route now aborts the upstream stream as soon as the response closes early. A normal reply is unchanged. Found by security audit run 3 (lead 3, part 1 of 2; a per-account daily cap follows separately).POST /v1/ai/feedback caps field lengths. messageId must be 1 to 100 characters and pagePath at most 2,048 characters. Longer values get 400 validation_error. Before, each was bounded only by the 100 kB body limit. The portal sends a UUID and the page path, so it is not affected.localStorage (vennio-app-chat) after sign-out, so the next person on a shared browser could see it, including the Business ID. The history is now removed whenever Supabase reports a sign-out: the sign-out button, an expired session, or a sign-out in another tab. Found by security audit run 3 (hardening note).GET /v1/proposals/{id}/ics put organiser and voter names into CN= without quotes. A colon in an anonymous voter's name ended the name early, and calendar apps read the rest as the attendee's address. Names are now wrapped in double quotes, with " and control characters removed (escapeIcalParam in api/utils/icalText.js). Email addresses also pass through a helper that drops whitespace and control characters. Found by security audit run 3 (lead 2).GET /v1/proposals/{id}/ics now sends Cache-Control: private, no-store. The file holds attendee emails, so shared caches must not keep it..ics helpers in api/utils/calendar.js. generateIcsFile, generateAppleCalendarLink and generateCalendarLinks had no callers and used the old escaper. Booking emails keep using generateGoogleCalendarLink, which is unchanged..ics text escaper turned a line feed into \n but let a lone carriage return through raw. Text from an anonymous Venn Link booker (name, notes) or open-poll voter (name) could then add property lines, such as ORGANIZER or ATTENDEE, for any calendar app that treats a lone carriage return as a line end. Both builders now use one shared escaper (api/utils/icalText.js): CRLF, CR and LF all become \n, and other control characters are dropped. Covers the iCloud event written to a business's calendar on booking and GET /v1/proposals/{id}/ics. No change for normal text. Found by security audit run 3 (lead 1).<, > or & now shows as typed.POST /v1/audit-leads now includes the grade, score, the tool's fixed risk lines and fix guides only. Text the caller sends in other fields no longer reaches the email. The request and the stored lead are unchanged.GET /v1/events/{id}/attendees.csv and the organiser's emailed attendee list, a cell starting with =, +, -, @, a tab or a carriage return now starts with ', so a spreadsheet shows it as text instead of running it.POST /v1/venn-links/{identifier}/book with a vennio_sk_test_* or vennio_pk_test_* key now returns 403 when the link belongs to a different account, and no booking is created. Previously the booking was saved and held the slot, while test mode skipped the calendar event, emails and booking.confirmed webhook, so the business never heard about it. A test key on your own account's links books as before. Live keys and anonymous callers are not affected.availability:read:freebusy, shown as "See when you are free or busy"), but /mcp ignored them. Any connected app could create, cancel and reschedule bookings and read booking details. Now each tool needs one of its listed scopes, or the call returns a 403 problem naming the scopes it needs. Availability tools accept read, availability:read:freebusy or availability:read:details. Booking, proposal, event type, network and consent reads need read. Changes need write, and propose_meeting also accepts booking:propose. get_me works with any scope for now. The map lives in api/config/oauthScopeAccess.js; a new tool stays closed to connected apps until it is added there. Apps granted the default read write (the claude.ai connector) are unaffected. API keys and user sessions are unaffected.user_id, and the response used to return that user's profile email and full name. POST /v1/teams/{id}/members, GET /v1/teams, GET /v1/teams/{id} and GET /v1/teams/{id}/members/{memberId} now return a member's email and name only for email_only members, for the caller's own row, and to the team owner for external_consent members. Every other member returns both as null. Who can be added to a team is unchanged. Response shape is unchanged; both fields were already nullable.POST /v1/hubspot/callback now requires state. GET /v1/hubspot/auth-url stores a random single-use nonce for the signed-in user (10 minutes, oauth_state_tokens, provider hubspot) and sends it as the OAuth state instead of the user id. The callback returns 400 and links nothing unless the state is that user's live nonce. Before, any HubSpot code was linked to whoever was signed in. The portal already sends state.GET /v1/salesforce/connect sets an HttpOnly, Secure, SameSite=Lax cookie (__Host-vennio_sf_oauth) and stores only its hash with the state nonce. GET /v1/salesforce/callback returns 400 and stores nothing without a matching cookie. A Salesforce URL started with an API key and opened in another browser no longer connects.GET /oauth/authorize no longer redirects unverified clients on error. A bad response_type or missing PKCE now returns a 400 JSON error unless every redirect URI of the client is on a verified host (today claude.ai). Before, anyone could register any https URI and get a 302 to it from api.vennio.app. Valid requests still go to the consent page.@vennio/proposals-widget and <VennioProposal> (@vennio/react) no longer accept forged accept / counter / reject events. Any origin that contained localhost or 127.0.0.1 (for example https://localhost.attacker.example) used to pass the origin check, and the sender was never tied to the widget's iframe. Events now count only when event.source is the widget's own iframe and event.origin exactly matches the origin of baseUrl. Local development needs the new allowedOrigins option, for example allowedOrigins: ['http://localhost:5173'].@vennio/widget onBooked no longer accepts forged bookings. The check was origin.includes('vennio.app') || origin.includes('localhost'), so https://vennio.app.attacker.example passed. It now uses the same iframe and exact-origin check, plus allowedOrigins, and builds the BookingData object field by field.@vennio/widget onBooked now fires for real bookings. The hosted booking page posts vennio:booking_confirmed, but the widget only listened for vennio:booking:complete, so onBooked never ran. The widget now accepts both names. BookingData from the hosted page carries startTime, endTime, customerEmail and shortCode; bookingId and customerName are now optional because the page does not send them. Paid Venn Links go to checkout, so onBooked does not fire for them.baseUrl to https://app.vennio.app. The old default, https://vennio.app, is the marketing site, which returns 404 for /venn/… and /p/…, so a widget using the default showed a "not found" page in its iframe. Integrators who set baseUrl themselves are not affected.@vennio/mcp no longer ships a Smithery manifest. The Smithery listing is being withdrawn, so packages/mcp/smithery.yaml and the Smithery section of the package README are gone. Install with npx @vennio/mcp as before. No tool or behaviour changes. The published npm package is unchanged until the next release.checkout.session.expired, the pending_payment booking becomes cancelled (internal_metadata.cancel_reason = checkout_expired) and its pending payment becomes failed. Previously the event was ignored and the booking stayed pending_payment for good. A booking that was already paid, cancelled or otherwise changed is left alone, so Stripe retries do nothing. Needs the Connect webhook endpoint subscribed to checkout.session.expired in Stripe.business_calendar_event_id stayed empty. Covers POST /v1/bookings (single and recurring), Venn Link booking, paid bookings confirmed by Stripe, and team bookings. Proposal accept was not affected. Bookings made during that period did not get an event and are not backfilled.20261114_booking_slot_functions.sql). This covers POST /v1/bookings (single and recurring), Venn Link booking (free and paid), and PATCH /v1/bookings/{id} / MCP reschedule_booking. The request that loses gets the same error as any other clash: 409 on /v1/bookings, 400 "This time slot is no longer available" on Venn Links, and a skipped occurrence (reason: conflict) in a recurring series. Proposal accept and team bookings are not covered yet.POST /v1/venn-links/{identifier}/book on a paid link creates a Stripe Checkout Session that expires after 31 minutes (it used to stay open for Stripe's default 24 hours). The pending_payment booking holds the slot for 36 minutes: the checkout window plus 5 minutes for a late payment webhook. While the hold lasts, other customers can't book that time and it is missing from slot listings. Once it ends, the slot is free again. Older pending_payment bookings with no hold don't block anything.POST /v1/bookings, PATCH /v1/bookings/{id}, recurring bookings, Venn Link booking, GET /v1/venn-links/{identifier}/availability, GET /v1/availability/slots and mutual availability all treat a held slot as taken. Previously they counted confirmed bookings only, so a second customer could book a time someone else was paying for.pending_payment.buffer_minutes is now enforced when booking, not only when listing slots. The buffer pads both sides of the new booking. Rescheduling a Venn Link booking uses that link's buffer. POST /v1/bookings has no link, so no buffer. Venn Link slot listings now apply the same padding around existing bookings and busy calendar time, so a listed slot passes the booking check. No live link has a buffer set today.POST /v1/bookings conflict message is now "This time slot conflicts with an existing booking". It used to say "or calendar event", but the connected calendar was never checked. Still 409.internal_metadata.calendar_check (mode, result, blocks, buffer_minutes, path, evaluated_at) and a booking.calendar_shadow_would_reject warning is logged for a clash. This is the evidence for deciding when to enforce. internal_metadata is never returned by the API.checkout.session.completed arrives after the hold ended and another booking has taken the time, the paid booking is still confirmed. The API logs booking.paid_slot_conflict at error level (sent to Sentry) and stores the clashing booking ids at internal_metadata.paid_slot_conflict. No automatic refund.DELETE /v1/hosts/{id}/connect-link revokes a host's unused connect links. Same authorisation as creating one. Returns 204 whether or not a link was outstanding. It doesn't disconnect a calendar the coach already connected.expires_at in the POST /v1/hosts/{id}/connect-link response.host_link and account_name in the POST /v1/calendars/google/exchange response when the connection came from a host connect link.expires_in is now 604800. Links are still single-use.409.DELETE /v1/hosts/{id}) revokes its unused connect links.hc_, and Vennio stores only a SHA-256 hash of each one. Treat the token as opaque.redirect_url, the coach sees "Your calendar is connected to {Account}. You can close this page." ("Your calendar is connected. You can close this page." when the account can't be named). Previously they were sent to the portal dashboard, which asked them to sign in.@vennio/mcp and @vennio/sdk: the create_host_connect_link tool and hosts.createConnectLink() descriptions now say 7 days. Not yet published.Connect links from the portal, POST /v1/oauth/connect-token and POST /v1/calendars/google/connect-guest-link are unchanged: 5 minutes, used on first open.
POST /v1/calendars/google/connect. Takes the token from a host connect link as a form field, uses the link and redirects to Google. It accepts only links from POST /v1/hosts/{id}/connect-link. Public, like the GET: the token is the credential. A form submitted from another site (Sec-Fetch-Site: cross-site) gets 403 and the link stays unused.POST /v1/hosts/{id}/connect-link are emailed, and mail scanners (Safe Links, Mimecast) open every link first. Before, that first open used the link up, so the coach found it already spent. Now GET /v1/calendars/google/connect reads a host link without using it, for any client, and only the button's POST uses it. Links from the portal, when.vennio.app and POST /v1/oauth/connect-token still go straight to Google on GET, as before. The POST /v1/hosts/{id}/connect-link response is unchanged; links stay single-use with a 5-minute expiry.vennio_pk_...) is now refused on every request outside the public availability and booking surface. It's accepted only on GET /v1/availability/slots, GET /v1/availability/next, GET /v1/venn-links/{identifier}/availability and POST /v1/venn-links/{identifier}/book. Any other request that presents one returns 403 with detail "This request requires a secret API key (vennio_sk_live_...) or a user session. Publishable keys (vennio_pk_...) can only be used for public availability and booking." Previously 50 read endpoints accepted a publishable key, including GET /v1/bookings, GET /v1/booking-series, GET /v1/hubspot/contacts, GET /v1/events/{id}/attendees, GET /v1/me and GET /v1/billing/*. Writes already required a secret key.find_availability. It could call every read-only tool, including list_bookings and get_booking.DELETE /v1/venn-links/{identifier}/waitlist/{id} refuses a publishable key. With the link owner's key it removed any waitlist entry as the owner. A customer removing their own entry sends no key and is unaffected.POST /v1/proposals/{id}/response) sent with a publishable key now returns 403; without a key it works as before. The React SDK and the embeddable widget keep working.customer_id or internal_metadata. GET /v1/booking-series, GET /v1/booking-series/{id}, and the recurring forms of POST /v1/bookings and POST /v1/venn-links/{identifier}/book returned the raw series row. They now return exactly the 21 fields of the documented BookingSeries schema.list_bookings tool no longer returns internal booking fields. It returned raw database rows, including internal_metadata (test and demo flags, price, calendar-consent flags, the agent that made the booking), Google Calendar event IDs, customer_id, venn_link_id and hold_expires_at. It now returns the same booking fields as GET /v1/bookings, plus pagination with has_more, next_cursor and total_count. The npm package @vennio/mcp already called GET /v1/bookings and is unchanged.PATCH /v1/bookings/{id} and MCP reschedule_booking can now move a booking to a time that overlaps its current time. Moving a booking by less than its own length, for example a 60-minute booking 15 minutes later, failed with 409 "The new time slot conflicts with an existing booking", because the booking clashed with itself. The conflict check now ignores the booking being moved. A move onto another confirmed booking still returns 409.GET /v1/calendars/google/connect, where links from POST /v1/hosts/{id}/connect-link, the connect-guest flows and the portal land. An expired link sent to a managed host names the account that manages them ("Ask Acme Coaching to send you a new link."). Requests that don't prefer HTML, including Accept: application/json, */* or no Accept header, get the same JSON and status codes as before.@vennio/mcp respond_to_proposal accept and counter no longer fail with API error 400. Every published version (1.0.0–1.3.0) sent the unused field as null (counter_slots: null on accept, selected_slot_id: null on counter), which the API rejected. The client now omits unused fields, and POST /v1/proposals/{id}/response now accepts null for selected_slot_id and counter_slots, so older clients work too. A null still counts as missing for the field the action requires. Released as @vennio/mcp 1.3.1.@vennio/mcp errors now include the API's response body, for example API error 409: {"type":…,"detail":"calendar_disconnected_recipient",…}, instead of a bare API error 400. Released as @vennio/mcp 1.3.1.GET /v1/availability/mutual and MCP find_mutual_availability no longer report free time for a principal with no connected calendar. Such a principal has no busy blocks, so every slot looked free. The request now returns 409 calendar_disconnected_principal: <ids>. The check runs after the access check, so it never reveals calendar status for a principal you can't read.POST /v1/hosts has no calendar until they complete POST /v1/hosts/{id}/connect-link. Until then, mutual availability that includes that host returns 409 calendar_disconnected_principal. Previously it returned slots based on the host's schedule alone, which could offer times the host isn't free.POST /v1/proposals and MCP propose_meeting now refuse a recipient with no connected calendar with 409 calendar_disconnected_recipient: <ids>, and create nothing. Previously the proposal was created and failed only at accept. Countering applies the same rule to the counter-proposal's recipients. Poll mode is unchanged.consents field on mutual availability lists only principals reached through explicit consent. It is empty when access comes from a connection, a managed host or the caller itself. The spec previously said it held one entry per principal.POST /v1/consents and MCP grant_consent now accept a grantee only if it is a business in the directory, someone you have an active connection with (either direction), or a host your account manages. Anyone else, including an id that matches no profile, gets the same 403 (detail: "You can grant consent only to a business in the directory, someone you have an active connection with, or a host your account manages."). Previously any existing profile could be a grantee, and an unknown id returned a distinct 404, which revealed whether a profile existed. Revoked or inactive connections, and hosts managed by another account, don't count. Approving a consent request is unchanged. Self-grants still return 400.consents are removed (migration 20261110_consents_lock_client_writes.sql, applied by hand). A signed-in Supabase client could insert, update or delete its own consent rows directly, or call ensure_booking_propose_consent over RPC, skipping the API's scope, self-grant and duplicate checks and its webhooks. All consent writes now go through POST /v1/consents, DELETE /v1/consents/{id}, MCP grant_consent, consent-request approval and the consent-on-connect trigger, which use the service role. Reading your own consents is unchanged.GET /v1/consents and GET /v1/consents/{id} no longer return the grantee's email or business location to the grantor. The grantee object now carries id, full_name and business_profile (business_name, service_type) only. Because POST /v1/consents accepts any existing profile as the grantee, these fields let any caller who knew a profile ID read that person's address and location. The grantee's view (role=grantee) still includes the grantor's email.20261109_profiles_select_self_or_connected.sql, applied by hand).POST /v1/consents response ({ consent: {...} }), so its follow-up fetch went to GET /v1/consents/undefined and failed, and the new row showed "Unknown Business" and "Granted Never" until the page was reloaded. The grant itself was always saved correctly. Broken since 2026-03-07.business_profiles table was readable by anyone holding the public Supabase anon key, including each business's street address where one was set. Reads are now limited to the owner and to people with an active connection to that business (migration 20261109_business_profiles_restrict_reads.sql, applied by hand after the portal deploy).list_business_directory(), available to signed-in users only (migration 20261109_business_directory_function.sql). It no longer fetches each business owner's email and name, and no longer writes them to the browser console.mcp.vennio.app/mcp, the @vennio/mcp npm package (now 1.3.0) and GET /.well-known/ai-agent?format=mcp all report Vennio for Agents as their name, replacing Vennio Scheduling. The npm package's runtime version now matches its published version (it reported 1.1.0 while publishing 1.2.0). Tool names, schemas and behaviour are unchanged.error_message: "HTTP 302: redirect not followed") and retried on the usual schedule. The blocked ranges now include 0.0.0.0/8, 100.64.0.0/10, 168.63.129.16, fe80::/10, ::, and IPv4-mapped / NAT64 spellings of any blocked IPv4 range. Signature headers, delivery statuses, and the retry schedule are unchanged.GET /v1/webhooks/{id}/deliveries no longer returns response_body, and new deliveries no longer store it. The first 1000 bytes of your endpoint's reply were kept and shown to the webhook owner. response_status and error_message remain; the WebhookDelivery schema in the spec now matches the fields actually returned (attempts, max_attempts, response_status, error_message, next_retry_at, payload).webhooks are removed (migration 20261018_lock_client_writes_webhooks.sql, apply separately). A signed-in Supabase client could insert or update a webhook row directly, skipping the API's URL validation. All writes go through POST /v1/webhooks, PUT /v1/webhooks/{id}, DELETE /v1/webhooks/{id} and MCP register_webhook, which use the service role. Owner reads are unchanged.time_range are now checked when availability is read. GET /v1/availability/slots?consent_id=… verified only that the consent was active and granted to the caller, so a consent holding just booking:propose read the grantor's bookable slots, and the time_range saved on POST /v1/consents was never consulted. Consent-ID mode now returns 403 unless the consent carries availability:read:freebusy or availability:read:details. On every availability path that relies on a consent (consent_id mode, GET /v1/availability/slots, /next, /mutual, GET /v1/principals/{id}/availability, and the MCP find_availability and find_mutual_availability tools) a consent with a time_range must contain the requested from/to window, or the request returns 403 naming the permitted window. Self, managed-host and connection access are unchanged. The MCP check_consent tool accepts optional from/to so an agent can check a window before reading. Response shapes are unchanged.calendar_access_requests could be inserted with the public anon key naming any email next to any requester_id; approving it granted the consent to that id. Approval now refuses (400) unless the stored requester_id verifiably owns requester_email in Supabase Auth, and a migration (supabase/migrations/20261018_access_requests_lock_client_writes.sql, applied by hand) removes client INSERT/UPDATE/DELETE on the table. All writes go through the API.AccessRequest has a new requester_verified boolean. true when the request came from an authenticated principal (MCP request_consent); false when it came from the public POST /v1/access-requests form, where anyone can enter any email. Unverified requests are stored with requester_name: null, so a name cannot lend credibility to an unproven email. MCP list_consent_requests returns the same flag as grantee_verified.POST /v1/access-requests caps message at 1000 characters and requester_name at 200.GET /v1/venn-links/{shortCode}/availability no longer trusts a bare customer_email. The route subtracted the named customer's consented busy times for any caller, so anyone with a public link code and an email could read that customer's free/busy by comparing the response with and without the parameter. customer_email is now honoured only when the request also carries that customer's own Supabase session (Authorization: Bearer <JWT>) with a matching auth email, compared case-insensitively. Anonymous, API-key and other-user callers get the business's availability only, identical to a call without the parameter, and mutual_availability is true only when the session matched. The response shape is unchanged.POST /v1/venn-links/{shortCode}/book links a booking to a customer account only for that customer's own session. The booking was linked to whichever account's profile email matched the body's customer_email, and the consent flag was read from that account. Bookings from anonymous or non-matching callers now carry customer_id: null and customer_calendar_consent: false. The booking itself, its customer_email, and the confirmation emails are unchanged.GET /v1/me and the get_me MCP tool report the verified login email.email or role on their own profile. The database rejects those writes from the browser. The profile email follows the login email, and every change to either field is recorded.POST /v1/me/role sets a role at onboarding. Send { "role": "business" } or { "role": "customer" } with a signed-in session. It works once, while the account has no role. Sending the same role again returns it unchanged; a different role returns 409. API keys and connected-app tokens get 403.POST /v1/calendars/google/connect-guest-link mints a single-use guest connect URL. Call it from your server with a secret key when a customer clicks "Connect calendar", then redirect them to connect_url. The link works once and expires after 5 minutes. Your account is the business, taken from the key. reference and redirect_url are bound into the link, and redirect_url is checked against your whitelist when you mint. The result is reported as before: a consent.granted webhook, plus principal_id and reference on the redirect. Limited to 10 mints per minute per account.GET /v1/calendars/google/connect-guest with a raw principal_id is retired for new integrations. It now returns 410 connect_guest_link_required for every business except existing embeds that predate the link endpoint. Anyone who knew a business ID could start a connect to that business; a minted link can't be forged. Move to POST /v1/calendars/google/connect-guest-link.GET /v1/calendars/google/connect-guest is now rate-limited. Each call creates a guest user, and the route is unauthenticated, so a loop could create users without limit. It now allows 5 calls per minute and 20 per hour per IP, and 50 per hour per business, and returns 429 with Retry-After above that. principal_id must be a single v4 UUID; other spellings (braces, no hyphens, principal_id[]=) return 400 invalid_business. Real traffic peaks at 3 per minute, so existing embeds are unaffected.redirect_url on guest connect and host connect links must now be https: (or http: on localhost), with no fragment. The check looked only at the hostname, so javascript://vennio.app/… passed. The portal's Google callback page then navigated to it, running script on the portal origin for any signed-in user who opened a crafted link. The API refuses such URLs (400 invalid_redirect_url), the OAuth callbacks drop any stored before this fix, and the portal page only follows https links. The same rule now applies to redirect_url on POST /v1/oauth/connect-token (a fragment returns 400) and to success_url / cancel_url on POST /v1/venn-links/{shortCode}/book.GET /v1/availability/slots and /next, and on the API's built-in MCP find_availability and find_mutual_availability tools. consent_id mode, GET /v1/availability/mutual, GET /v1/principals/{id}/availability, /v1/network and team availability now require a secret key or user session and return 403 for publishable keys. No publishable key had used these routes.GET /v1/calendars/google/connect-guest, Vennio fires consent.granted to the business with source: "calendar_connect", the customer's grantor_id, connection_id and your reference. It also appends principal_id and reference to your redirect_url. Previously the marketplace learned only google_connected=true and had to diff its connection list to find the new customer.reference parameter on connect-guest. Pass your own identifier (for example a trip ID); it comes back on the redirect and the webhook. Your whitelisted redirect_url must match exactly, so this is the way to carry your own context through the connect.POST /v1/oauth/connect-token now returns 400 principal_id_not_supported when principal_id or business_id is sent. Previously any signed-in user could name any principal, complete Google OAuth with their own account, and get an active connection to that principal. A connection counts as consent for availability reads, so this exposed the named principal's free/busy. The token now connects the caller's own calendar only. A business connects customers with an invitation or GET /v1/calendars/google/connect-guest. No first-party app sent these fields.GET /v1/availability/mutual now accepts hosts your account manages. Delegated authority previously covered bookings only. A marketplace querying a host together with a customer got 403, because the account has no connection to its own hosts. Managed hosts now pass the access check the same way they do for POST /v1/bookings. The customer must still be connected to the account or have granted it consent. Consent stays with the account, so a customer who connects once can be queried alongside any of its hosts. Hosts managed by another account still return 403. The same rule applies to the API's built-in MCP find_mutual_availability tool and team availability. GET /v1/principals/{principalId}/availability now uses the shared rule too: it also accepts connected principals, and returns 403 rather than 404 for unknown IDs.GET /v1/availability/slots and GET /v1/availability/next now require authentication and access to the principal. Previously both answered without credentials for any principal ID, computing free slots from that person's synced calendar, consumers included. Callers now need one of: the principal is themselves, a host their account manages, connected to them, or a grantor of availability:read:freebusy consent to them. Anything else returns 403, including unknown principals, so the endpoint can't be used to enumerate IDs. Unauthenticated calls return 401. The API's built-in MCP find_availability tool applies the same rule. Public booking pages are unaffected: they use GET /v1/venn-links/{shortCode}/availability. A publishable key can still read its own business's slots.DELETE /v1/network/connections/{id} ends an active connection. Either party may call it; the connection is kept as inactive. The portal's "Disconnect" now uses it.vennio_at_…) now work only on the MCP endpoint. Every REST route returns 403 for them. Previously a token from any dynamically registered client acted as a full secret key, so a user tricked into approving a malicious app could have it mint a persistent API key that outlived "Disconnect". No such key or grant was found in production. The claude.ai connector only uses MCP and is unaffected.register_webhook is unavailable to every OAuth token, because a webhook keeps sending data after the app is disconnected. The consent tools (grant_consent, request_consent, respond_to_consent_request, withdraw_consent_request) are unavailable to unverified apps. An app is verified when all its redirect URIs are on a recognised host (currently claude.ai). Secret API keys are unaffected.redirect_uri when you click Deny: a crafted link could previously run script on app.vennio.app that way. The scope list shows only real scopes, as the server records them.GET /oauth/clients/{client_id} returns a registered client's name, redirect hosts and verified status for the consent page.find_mutual_availability accepts up to 10 principals@vennio/mcp find_mutual_availability now accepts 2–10 principals (was 2–5), matching the REST API's engine bound. The previous max(5) in the published MCP server rejected 6–10-participant queries client-side before they reached the API, even though the engine has always accepted up to 10. Aligns the last of three cap surfaces (REST engine, the API's built-in MCP, and this standalone package). The find_mutual_connections bound is unchanged (separate endpoint, its own 2–5 limit). Released as @vennio/mcp 1.2.0.when.vennio.app now works for people who don't use Google or Microsoft — including iCloud-only users. A new "Continue with email" option (Supabase magic-link) provides identity, then a Connect iCloud screen captures an Apple ID + app-specific password (Apple has no calendar OAuth; iCloud is CalDAV) and links it via the existing POST /v1/calendars/apple/connect. The connect screen walks through creating the app-specific password (deep link + three steps), trims whitespace, reassures that the password is calendar-scoped and revocable, and maps specific errors (bad credentials vs. no calendars found) without signing the user out. Available on the Landing and invite-accept screens.
Known limitation (by design): events written to an Apple calendar on accept are private time-blocks — no iCloud invite email and no video link. In a mixed Apple/Google meeting the other side still sends a normal invite; an Apple-organized meeting simply has no auto video link (when doesn't surface one anyway). Sign in with Apple (identity) was intentionally deferred in favour of email magic-link — its OAuth client secret is a JWT requiring rotation roughly every six months, which isn't worth the maintenance while magic-link serves the same users.
when.vennio.app now supports Microsoft users. Sign in with Microsoft (Azure) and that single grant becomes your calendar connection — the Microsoft mirror of the existing unified Google auth (one consent covers identity + calendar, so the wrong calendar can't be attached). The Landing screen offers both "Sign in with Google" and "Sign in with Microsoft".
POST /v1/calendars/microsoft/link — the Microsoft equivalent of /google/link: stores a connection from the sign-in grant's Graph tokens, with an events-scope probe (422 needs_consent on a scope-short token) and token-account primary-calendar selection. Backed by a new shared storeMicrosoftConnection (mirrors storeGoogleConnection).
Teams meeting links on accepted proposals — MicrosoftProvider.createEvent now honors the online-meeting request (isOnlineMeeting/teamsForBusiness), so an accepted proposal on the Microsoft side gets a Teams link, matching Google Meet. Cross-provider (Google ↔ Microsoft) propose → accept → both-calendars works end to end.
Requires the Supabase Azure provider and the API to share one Azure app registration (the same shared-client model Google uses); that infra config is a deployment prerequisite.
.test/.example/.invalid/.localhost, and example.*). The test suite mints these in bulk (e.g. @vennio.test), and — because tests run against the production database — the production email cron was transmitting thousands of them via Resend, each a guaranteed hard-bounce. The send path now checks the recipient at the actual send site and marks such rows skipped (a new terminal email_deliveries status — deliberately not failed, so it stays out of the deliverability/bounce metrics) without ever calling the provider. This prevents reputational damage from the synthetic-send firehose: the Resend dashboard shows delivery healthy and the one recent suppression was address-specific (its own bounce history), not domain-level — the risk was real and is now plugged before it landed. It does not fix the deeper issue that tests touch production.when responder page (/p/:token) now recognises when you're signed in as the wrong Google account and offers one-tap recovery. Accepting an invite while signed into a different account than the one it was sent to used to fail with a generic error (the signed-in session takes precedence over the magic-link token server-side). Now that case shows a distinct screen — "Nearly there — wrong Google account" — naming the invited address in masked form, with a Switch account button that signs out and re-opens Google's account chooser, returning to the same invite. A dedicated analytics event (respond_wrong_account) separates this from real failures.GET /v1/proposals/by-token returns participant.email_masked — the invited address masked to first character + domain (e.g. k***@gmail.com). The endpoint is unauthenticated (the token is the only credential), so the full address is never exposed; the mask is fixed-length and does not leak the local-part length.when.vennio.app can now propose a time and have the recipient accept from their own email — the last product gate. Tapping a mutual-free slot sends a standard-mode proposal; the recipient gets a magic-link email and lands on a /p/:token page inside the when app to accept or decline. Accepting writes the event into both calendars. Previously the propose screen was a placeholder that sent nothing.POST /v1/proposals accepts an optional responder_base_url (standard mode). It pins the responder magic-link to a specified first-party app origin (e.g. https://when.vennio.app) so recipients stay in the originating channel instead of hopping to the platform portal. The value is validated against the exact-origin first-party allowlist at both mint and send (a non-allowlisted origin is rejected 400); when omitted, links default to the portal, so existing callers are unaffected.POST /v1/calendars/google/link now rejects a token that can't read events, instead of storing a broken connection. Under unified auth, an existing user's login can return a cached Google grant that lacks calendar.events (it can list the calendar but not read events). Linking such a token produced a degraded sync. Now the endpoint probes event access before storing; on failure it returns 422 { needs_consent: true } and writes nothing (so a scope-short token can never clobber a good connection), and the when app forces a single fresh consent (prompt=consent) to obtain the scope — still not on every login. Existing users self-migrate with one extra consent; a degraded connection is treated as needing repair.when.vennio.app sign-in now grants calendar access in the same Google consent (unified auth), and stores the connection via a new POST /v1/calendars/google/link. Previously identity (Supabase Google login) and calendar (a separate OAuth) were two independent grants, so a user with multiple Google accounts could sign in as one account and silently attach a different account's calendar — with no feedback and no way to fix it. One grant means identity and calendar come from the same account and can't diverge. prompt=consent is used only to repair a missing connection, never on every login. The stored calendar and its primary-calendar selection are always set to the token's own account (replacing stale selections). The portal/business calendar-connect flow is unchanged.degraded (with the reason), not synced. Previously a per-calendar fetch failure (e.g. a wrong-account 404) was swallowed: the connection was still recorded as sync_status: synced, sync_error: null, and the availability rebuild deleted the user's existing busy blocks before writing nothing — so a transient failure both hid itself and wiped good data. Now: a total fetch failure marks the connection degraded, records the error, and preserves the last-good blocks (does not advance synced_at); a partial failure is degraded but the succeeding calendars still write; a genuine empty calendar (0 events, no error) stays synced. This silent failure had masked a wrong-account calendar bug through several review passes.when consumer app now works when served from its production domain when.vennio.app. The custom domain is bound and serving, but https://when.vennio.app wasn't in the API's trusted-origin allowlist, so the app's own API calls were CORS-blocked and calendar-connect rejected its redirect. Added https://when.vennio.app to the shared allowlist (api/config/allowedOrigins.js). The raw SWA origin stays trusted too — both host names answer the same app — until that host is deliberately retired.when app no longer shows its "invite someone" empty screen when a data load fails. Home rendered the empty/invite state whenever the connections call errored — which silently swallowed a hard CORS failure and masked a real bug for two review rounds. Home and the overlap view now render a distinct "Something went wrong — try again" state (with retry) on a failed load, and only show the empty result on a successful load that genuinely returned nothing.when deep routes (e.g. the OAuth return /auth/callback, /i/:token, /home) no longer 404 on the Azure Static Web App. staticwebapp.config.json (the navigationFallback that rewrites unknown routes to index.html) sat at the app root, which Vite does not copy into dist/ — and the deploy uploads dist/. So Azure never received the fallback config and served its own 404 for anything but /. Moved the config into apps/when/public/, which Vite copies to the dist/ root, so Azure applies it.when consumer app's Azure SWA origin is now a trusted first-party origin. when.vennio.app can't bind its custom domain (the old Static Web App is wedged/undeletable), so the app is served from its raw *.azurestaticapps.net origin — which was never in the API's allowlist. Every cross-origin call from the app to api.vennio.app was browser-blocked (connections, invites, calendar checks), and the native_callback calendar-connect gate rejected it too. The origin is added to the shared allowlist (api/config/allowedOrigins.js), fixing both CORS and calendar-connect. It carries a dated drop-when-bound note and is removed once when.vennio.app binds.POST /v1/oauth/connect-token accepts native_callback. When set, the Google OAuth callback runs entirely server-side (GET /v1/calendars/google/callback) and redirects the browser straight back to redirect_url — no intermediate portal-domain page. Consumer apps on a vennio.app subdomain (e.g. when.vennio.app) now keep the whole calendar-connect flow on their own domain instead of bouncing through vennio.app, removing a drop point. The portal exchange flow is unchanged.native_callback requires a trusted first-party app origin, enforced at two independent gates. The normal redirect_url validation is an SSRF guard only (any public host), which is safe for the portal's client-side exchange but not for a direct server-side 302. So a native_callback token is rejected at mint unless redirect_url's origin exactly matches an allowed first-party app origin (the same allowlist CORS uses — the vennio.app family plus EXTRA_ALLOWED_ORIGINS), and the callback re-validates at the redirect sink (and only for native_callback state) before honouring it on the error path. Exact-origin match only — a suffix match on a shared parent (e.g. *.azurestaticapps.net) or a lookalike would reopen the vector. Closes an open-redirect on the public callback endpoint.POST /v1/invitations/link mints an open, single-use share link — no recipient email required. Where POST /v1/invitations addresses a known email and Vennio sends it, an open link carries no invitee: the creator shares it however they like, and whoever opens it and signs in with any account accepts. Accepting establishes the mutual connection and bidirectional booking:propose consent through the existing connect trigger, so overlap and proposals work immediately. JWT user sessions only — an API key cannot mint a link that represents a person's consent. A fresh token is minted per call, links default to a 30-day expiry, and minting is rate-limited. Backs the when.vennio.app consumer experience. (PR #625)POST /v1/invitations/accept/{token} now serves both invitation kinds. Targeted (email-addressed) invitations are unchanged — the email-match gate still applies. Open links skip the match (any signed-in account may accept), reject self-acceptance, and return the connection_id plus the inviter's first name so a client can route straight to the shared availability. The public preview (GET) exposes only the inviter's first name for open links.vennio_pk_live_*) can no longer reach mutating /v1 routes. Previously a publishable key held the same access as a secret key on every write endpoint — it could provision hosts, grant or revoke consent, send invitations, mint webhook secrets, and more. Publishable keys are now rejected (403) on all mutating routes outside the public surface; use a secret key (vennio_sk_live_*) or a user session for server-side operations. The public booking flow (POST /v1/venn-links/{shortCode}/book and availability reads) and magic-link accept paths are unchanged, so embedded booking widgets keep working. A CI gate now blocks any new mutating route that ships without a key-type check. (PR #621)react-email and @react-email/components dependencies (email templates are hand-rolled HTML in api/emails/) — eliminates the socket.io/engine.io alert chain. Overrides added for @opentelemetry/propagator-jaeger ^2.9.0 and @opentelemetry/core ^2.8.0; in-range bumps for brace-expansion and body-parser. (Batch 4 of the security sweep.)@vennio/sdk: dev-tooling overrides js-yaml ^4.3.0 and esbuild ^0.28.1 (lockfile-only; no runtime or API surface change).@modelcontextprotocol/sdk bumped 1.27.1 → 1.30.0 in the API's MCP endpoint and the @vennio/mcp stdio package. Carries the @hono/node-server security fix (GHSA-frvp-7c67-39w9, CORS-adjacent request handling) — node-server now resolves to 2.0.12. Upstream 1.28–1.30 changes are stricter Content-Type parsing and SSE keep-alive frames on the Streamable HTTP transport; no tool, auth, or transport contract changes. (PR #538)api/openapi.yaml info.version bumped 1.4.0 → 1.5.0. The spec version had not moved since 2026-03-09 despite shipped features (multi-host delegated authority, Apple Calendar, marketplace rate-limit tiers, OAuth 2.1 for remote MCP). The docs build now fails if the version shown on the docs introduction page drifts from the spec.request_consent, respond_to_consent_request, list_consent_requests, withdraw_consent_request. Until now an agent without access could only check_consent, get false, and stop — there was no in-protocol way to ask. request_consent creates a pending request (idempotent: an existing pending request is returned, not duplicated); the grantor accepts or rejects with respond_to_consent_request; accepting creates a consent identical to one from grant_consent, so check_consent, availability, and proposals work unchanged. Built on the existing access-request flow — same access_request.* and consent.granted webhook events, no schema changes./.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server (issuer mcp.vennio.app), dynamic client registration (POST /oauth/register, PKCE-only public clients), authorization via a portal consent page, token exchange with mandatory PKCE S256 and refresh rotation (POST /oauth/token), and RFC 7009 revocation. Access tokens (vennio_at_, 1 h) act as the authorizing user; manage and revoke connected apps at GET/DELETE /v1/me/connected-apps or in the portal's API Keys page. (PR #502)notifications/initialized message, aborting the handshake. JSON-RPC notifications and ping now pass unauthenticated; tool calls remain gated. (PR #500)rate_limit_per_hour is capped at 10,000/hr on POST /v1/api-keys. This was already enforced; it is now a named, tested boundary (SELF_SERVICE_MAX_RATE_LIMIT) so it can't regress silently. Marketplace / enterprise accounts that need a higher per-key bucket are granted an elevated tier out-of-band by an operator against an existing key — no key reissue — rather than self-assigning it at mint time.POST /v1/calendars/apple/connect — connect an iCloud calendar. Apple has no OAuth, so you submit an Apple ID and a 16-character app-specific password (created at appleid.apple.com). Vennio validates it against iCloud over CalDAV, then syncs busy times from every calendar on the account into your availability. Booking events are written back to iCloud as self-only busy blocks — Vennio sends its own confirmation, and iCloud sends no duplicate invite to the guest. (PR #491)@vennio/sdk 0.4.0 — new vennio.hosts namespace: create, list, createConnectLink, and unlink. Provision and manage host principals, and get a hosted calendar-connect URL to send each host. bookings.create() and the availability calls already accept principal_id (alias for business_id) — pass a managed host's principal_id to book against / query that host. (PR #487)@vennio/mcp 1.1.0 — new tools provision_host, list_hosts, create_host_connect_link, delete_host; create_booking now accepts principal_id so agents can book on behalf of a managed host. (PR #487)@vennio/sdk and @vennio/mcp now publish via npm trusted publishing (OIDC) instead of a long-lived NPM_TOKEN. Release workflows run on Node 24 with npm ≥ 11.5.1 and id-token: write; @vennio/sdk gains a repository field (OIDC requires it to match the repo). Requires a one-time trusted-publisher config per package on npmjs.com. (PR #489)/v1/hosts — manage many bookable hosts under one account. Enterprise accounts (e.g. multi-coach L&D orgs) can now provision and manage many independently-bookable host principals with a few API keys, scaling to hundreds. POST /v1/hosts mints a host principal; GET /v1/hosts lists them with calendar-connection status; POST /v1/hosts/{id}/connect-link returns a single-use hosted Google calendar-connect URL to send to the host; DELETE /v1/hosts/{id} soft-unlinks. (PR #480)POST /v1/bookings accepts a managed host's principal_id (delegated authority). Previously a booking's principal_id had to equal the authenticated account; it now also accepts any host the account manages, and the booking is attributed to that host and written to its calendar. Bookings list/get/update/cancel are likewise scoped to the account's managed principals, and GET /v1/bookings?principal_id= filters to one managed host. Single-host accounts are unaffected — the account is its own host. Each host's per-host availability is queried via the existing GET /v1/availability/slots?principal_id= path. (PR #480)overview/webhooks.md now lists proposal.resolved with a dedicated payload section. (The webhook event list also lives in info.description of the OpenAPI spec — a known drift, logged for a future hygiene sweep.)sdks/proposals-widget.md documents poll-mode tokens (named vs open), the voter self-identification form for open tokens, and which widget callbacks fire vs don't in poll mode..ics content shape (title hard-coded Vennio meeting, description format, ATTENDEE / PARTSTAT polish) and status: 'accepted' reuse for resolved polls — code defensively, refinements will ship with a deprecation window.401 invalid_token across all token-auth endpoints. GET /v1/proposals/by-token and GET /v1/proposals/{id}/ics previously returned 404 invalid_token on unknown tokens; they now return 401 {error:'unauthorized', detail:'invalid_token'}, matching POST /v1/proposals/{id}/response which already 401'd. One coherent rule: magic-link tokens are auth credentials, not resource lookups, so credential failures uniformly return 401. Deliberate behaviour change, made while there are no live consumers. (PR #TBD)api/openapi.yaml brought up to date for Stages 1-6a. Pure documentation of live code behaviour — no behaviour change beyond the 401 normalisation above. Proposal gains proposer_name, proposer_email, team_id; ProposalParticipant gains full_name, email, and user_id becomes nullable (open voters). Proposal.status description now includes the poll-mode lifecycle (reaper two-pass, resolution reuses accepted, open polls resolve only via close or expiry). CreateProposalRequest documents the poll-mode expiry floor (earliest_slot_too_soon 400), expires_in_hours being ignored in poll mode, and the metadata.team_id promotion. Per-endpoint error codes added: 400 earliest_slot_too_soon on create; 400 poll_mode_only_supports_accept, 401 missing_credentials, 401 participant_unresolved, 403 not_a_participant, 409 you_have_already_responded on response; full error matrix added on by-token. Prerequisite to Stage 8 (docs + llms.txt generate from this spec).proposal.resolved webhook event. Fires when a poll-mode proposal resolves to a winning slot — covers both named polls (all-voted trigger) and open polls (organiser close, and the future expiry reaper). Payload: {proposal_id, thread_id, poll_variant, winning_slot:{id, start, end}, vote_count, total_votes, tie_count}. Delivered to the organiser's webhook subscribers (Model 1: the API knows the votes, the builder fans out to voters by their preferred channel). (PR #TBD)GET /v1/proposals/{id}/ics?token=... — returns the resolved poll as a text/calendar (.ics) file so a voter can tap a magic-link URL and add the meeting to their calendar without needing email. Token auth mirrors GET /v1/proposals/by-token (the magic-link token IS the credential). 409 poll_not_resolved until the poll resolves; 410 token_expired after the token's expiry. Deterministic iCal UID proposal-{proposalId}-slot-{slotId}@vennio.app — every retrieval of the same resolved poll produces the same UID, so calendar clients can reconcile organiser-side updates against a single shared event identity.ATTENDEE roster on the .ics lists voters who voted (selected_slot_id IS NOT NULL) with a resolvable email; the organiser is the ORGANIZER. Anonymous voters and non-voting invitees are omitted (RFC 5545 expects a CALAddress; mirrors the Model 1 boundary). Title, description, and RSVP/PARTSTAT polish are provisional — validated against real Apple/Google/Outlook clients in Job 2; expect refinements before GA.mode: "poll" and no participant_emails and the 201 returns a single magic_link_url instead of per-participant tuples. Anyone with the link can vote; voters self-identify at vote time via optional voter_name / voter_email on POST /v1/proposals/{id}/response. Email voters can revise their vote (re-POST same email updates the existing row); anonymous voters can't revise and can double-vote — the API gives basic resistance, stricter identity is the builder's surface to harden. Distinguished from named polls (per-participant magic links, Stages 2-4) via the new poll_variant: 'named' | 'open' field on Proposal. (PR #444)POST /v1/proposals/{id}/close — organiser-explicit close of a poll. Required for open polls (which have no all-voted trigger since the voter set is open-ended) and useful for named polls when the organiser doesn't want to wait. With ≥1 vote → resolves to the winning slot (ties broken by earliest start_time); zero votes → expires. Poll-mode only; standard proposals use /cancel (different semantics — cancel deletes calendar events from an accepted proposal, close terminates a still-proposed poll).GET /v1/proposals/by-token now returns participant: null for open-poll tokens (token.kind: 'open'); client UI must render a name/email field and create the participant on submit. For named tokens (token.kind: 'named') participant is always populated as before.POST /v1/proposals/{id}/response — 20 votes per 60 seconds per token by default, env-tunable via OPEN_VOTE_RATE_LIMIT_MAX / OPEN_VOTE_RATE_LIMIT_WINDOW_MS. Returns RFC 7807 on 429.proposals.poll_variant column added ('named' | 'open', NOT NULL when mode='poll'). Set at create time; every Stage 5+ branch reads this field rather than inferring mode from token shape.proposal_action_tokens — participant_id is now nullable, new kind column ('named' | 'open'), the original UNIQUE (proposal_id, participant_id) replaced with two partial UNIQUE indexes (one per kind). Open tokens are multi-use (skip the used_at flip on consume).proposal_participants identity CHECK relaxed to accept display_name IS NOT NULL so fully-anonymous voters pass (server synthesises display_name='Anonymous' when neither voter field is supplied).502 calendar_unavailable — misleading, because the user's calendar was perfectly fine and Google was never called. The pin captured at create-time was simply still null. Accept now re-resolves the participant's primary calendar on the fly, persists it onto the participant row, and proceeds. (PR #400)400 participant_calendar_not_pinned (with a human-readable message) rather than a generic 502. calendar_unavailable is now reserved for genuine upstream Google failures, making future debugging less misleading.app.vennio.app) cutover from Vercel to Azure Static Web Apps. The React app is now served from the vennio-portal SWA in West Europe. The Vercel project is retained as a rollback target only — no new Vercel-specific config should be added. (PRs #386, #384, #385, #399)vennio.app) and docs (docs.vennio.app) on SWA finalised. staticwebapp.config.json is now served from each app's public/ directory so SWA picks it up at build time. Marketing-site wildcard redirects had their trailing /* dropped from destinations (Azure SWA rejects them). (PRs #395, #398, #382)vennio.app/* and have moved to app.vennio.app/* now 301 at the marketing edge so external links and email templates don't break. (PR #394)api.vennio.app CORS allowlist now includes app.vennio.app so the cutover portal can call the API. (PR #389)app.vennio.app ahead of cutover. (PR #388)vennio-api.service systemd unit fixed. WorkingDirectory=/opt/vennio/api pointed at an empty directory after the source-tree move; CI deploys were bypassing the unit by calling docker compose directly, masking the drift. The unit is now under deploy control with the correct path — systemctl restart and reboots will actually work. (PR #383)/src to /apps/portal/ for monorepo symmetry with apps/marketing and apps/docs. (PR #384)PORTAL_URL, plus a centralised getPortalUrl() helper. Previous names (VITE_PORTAL_URL, FRONTEND_URL, APP_URL, etc.) drifted across services and were a source of inconsistent OAuth redirect URIs and email link bases. Operators running self-hosted deployments should set PORTAL_URL and remove the legacy variables. (PR #387)infra/README.md trimmed from 284 lines to ~50. The duplicated operational sections (env vars, viewing logs, manual cron testing, rollback, troubleshooting) are removed — those live in docs/deployment/DEPLOYMENT.md. What remains: a tight IaC file inventory + the architecture diagram + the source→VM path mapping for each file. Each file's status is now explicit (active vs. historical vs. stale).infra/staging.md banner clarifying the staging environment is not implemented (no vennio-api-staging-rg exists), and flagging the doc's drifted facts (B2s vs actual D2s_v6, /opt/vennio/api/ vs actual /source/, UK South vs actual West Europe). If staging is stood up in future it should be redone from current state, not from these steps.infra/cutover-env-vars.md banner clarifying the cutover this doc was written for completed months ago. Pointed at the audit doc's "Env vars actually set on the VM" section as current truth; flagged the drift items (most Paperclip keys, WEBAPP_URL, API_BASE_URL, APPLICATIONINSIGHTS_CONNECTION_STRING etc. listed in template but not on VM).docs/projects/marketing-site.md — DNS provider question resolved (Porkbun, confirmed in the audit). Pointer added to the audit doc as the verified infrastructure source.docs/adr/002-domain-split.md — pointer added to the audit doc in the Related references.No code changes. No content changes other than banners + the README rewrite. This PR just stops competing sources of truth.
docs/deployment/DEPLOYMENT.md from evidencedocs/deployment/DEPLOYMENT.md rebuilt from scratch. The previous version had drifted (path errors, missing surfaces, missing Function App for docs). The new doc was assembled via a methodical audit: every claim is dated 2026-05-17 and traceable to a verification command, listed in a verification log at the end./opt/vennio file layout, all 6 cron systemd timers, marketing + docs SWAs, docs Function App, full DNS record map (Porkbun nameservers), every third-party service in use (Supabase, Google/MS/Salesforce/HubSpot OAuth, Stripe, Resend, Anthropic, Firecrawl, Sentry, PostHog, Paperclip, Tailscale, GHCR, Application Insights), GitHub Actions workflows + required secrets.vennio-api.service systemd unit (WorkingDirectory=/opt/vennio/api points at an empty directory; CI deploys bypass it via direct docker compose, but systemctl restart or VM reboot would fail), the EXTRA_ALLOWED_ORIGINS duplicate entry, stray source-tree artefacts on the VM including unexpected .env.local/.env.vercel.local files that should not be on production hardware, missing APPLICATIONINSIGHTS_CONNECTION_STRING, and the Stripe webhook destination drift noted in CLAUDE.md.infra/README.md gets a banner clarifying it documents the original Vercel → Azure migration sequence (historical) and pointing at the new deployment doc for current operations.No code changes. No infrastructure changes. The audit identified work items; this PR ships the durable record.
apps/marketing/src/pages/scheduling-audit.astro) ported from src/pages/SchedulingAudit.jsx. Five-question form, A–F scoring across multi-party / conflict / timezone / cancellation / observability dimensions, plain-text report, email-capture lead form posting to POST /v1/audit-leads. Logic verbatim; visual surface refit to the editorial design language (Playfair headlines, mono Q1–Q5 eyebrows, hairline-bordered radio options with amber-accent selected state, ink terminal block for the report).apps/marketing/. The interactive form is a React component rendered as a client:load island inside the Astro page. Added @astrojs/react + react + react-dom to the marketing site. The static shell (hero, headings, design language) remains zero-JS; only the audit form hydrates.The audit form POSTs to https://api.vennio.app/v1/audit-leads. The API's CORS allowlist accepts vennio.app, www.vennio.app, docs.vennio.app, localhost. On SWA PR preview URLs (<host>-<PR#>.westus2.7.azurestaticapps.net) the call will fail until EXTRA_ALLOWED_ORIGINS on the API VM is updated. Production is fine.
Phase 2 progress: 5 of 5 marketing pages ported. Developers, Waitlist, vibe-coders, GetStarted dropped (dead / auth flow). Phase 2 complete after this PR merges.
/ is now the homepageapps/marketing/src/pages/index.astro) ported from src/pages/LandingPage.jsx. Six sections: hero ("Infrastructure for Time" with italic-amber accent on "Time"), About Vennio (compliance copy), What it is (Stripe analogy), How it works (three step cards), Why Vennio (five differentiator rows), CTA band. Content verbatim; presentation uses the established editorial design language (Playfair regular headlines, mono eyebrows, hairline section dividers, ink/paper/amber palette)./ → /blog 302 redirect removed from staticwebapp.config.json. The marketing site now serves an actual homepage at vennio.app/. Phase 1 placeholder behaviour retired.SITE.external.auth.Known copy tension flagged for follow-up (not changed here): the homepage "What it is" section retains "Scheduling infrastructure for developers" verbatim from the SPA, while the new /about copy uses "Scheduling infrastructure for builders." Deliberate verbatim port — the homepage messaging is a separate editorial decision, not a port concern.
Phase 2 progress: 4 of 6 marketing pages ported (Privacy, Terms, Pricing, Landing). Still pending: Developers, SchedulingAudit.
apps/marketing/src/pages/pricing.astro) ported from src/pages/Pricing.jsx. Four flat-rate tiers — Free, Indie £29, Builder £99, Scale £299 — with "Most Popular" amber accent on Indie. Eleven-row feature comparison table. Content unchanged. Visual presentation aligned to the marketing editorial design language; ● (amber) and — replace the ✅/❌ emoji for a less casual look.SITE.external.auth constant added to lib/site.ts. Every "Get Started" / "Sign in" CTA on the marketing site now reads from this single source — flips one line at Phase 4 cutover from vennio.app/auth to app.vennio.app/auth. Header Sign in button and all three Pricing CTAs use it.Phase 2 progress: 3 of 6 marketing pages ported (Privacy, Terms, Pricing). Still pending: Landing, Developers, SchedulingAudit.
apps/marketing/src/pages/privacy.astro) and Terms of Service (apps/marketing/src/pages/terms.astro) ported from the SPA (src/pages/Privacy.jsx, src/pages/Terms.jsx). Content verbatim; visual presentation aligned to the marketing site's editorial design language (Playfair Display headlines regular weight, DM Sans light body, mono-uppercase eyebrows, hairline section dividers, no shadows). Service-provider table on Privacy updated: Vercel → Azure (West Europe) to reflect the API + docs migration that's already shipped.LegalLayout.astro with the back-to-home link, eyebrow + title + last-updated header, and prose-styled body. Reusable for any future legal page (DPA, sub-processor list, AUP).Phase 2 progress: 2 of 6 marketing pages ported. Still pending: Landing, Pricing, Developers, SchedulingAudit. Waitlist + vibe-coders + GetStarted dropped from the port list (dead / auth flow).
apps/marketing/. Astro 5 SSG project, deploys to Azure SWA at vennio-marketing (West Europe, Standard tier). Independent of the workspace; mirrors the apps/docs/ deploy pattern. Same brand tokens, fonts (Playfair Display / DM Sans / DM Mono), and editorial design language as the existing vennio.app React SPA — visual continuity for the cutover (ADR-002)./blog/best-scheduling-api-for-developers-2026. 6000-word comparison pillar covering 13 scheduling/calendar APIs. Carries Article + ItemList + FAQPage + BreadcrumbList + Organization + WebSite + Person JSON-LD; passes Google Rich Results Test on all five surfaces./ (302 → /blog), /blog index with Pagefind client-side search, /blog/[...slug], /about, /rss.xml, /sitemap-index.xml, /robots.txt, /llms.txt.src/lib/og.ts renders 1200×630 PNGs via satori + resvg at build time; per-post OGs auto-generated from frontmatter so future posts ship with the right social card without manual asset production. Title font scales 76→52→44px based on character count to avoid overflow.Vennio Design System/brand/monograms.html. Four assets (favicon.svg, apple-touch-icon.png, icon-192.png, icon-512.png) all generated programmatically from the same satori pipeline.vennio.app becomes the marketing site (Astro SSG) at Phase 4 cutover; portal SPA moves to app.vennio.app. Decision documents: target structure, redirect map for all portal routes, OAuth whitelist checklist (ADR-001 dependency), phased migration plan, Phase 4 rollback strategy (90-day Vercel warm-keep with explicit rollback triggers).docs/projects/marketing-site.md. Single source of truth: phase tracker, decisions log, open items, verification log. Resumable cold by any agent.vennio.app is still the Vercel SPA. SWA preview URL: https://delightful-grass-0c36f151e.7.azurestaticapps.net (production hostname; PR previews carry a -<PR#> suffix and X-Robots-Tag: none).src/pages/ into apps/marketing/. Phase 3–5 cover OAuth whitelist updates, DNS cutover, and the 90-day deprecation window.@vennio/proposals-widget pagedocs.vennio.app/sdks/proposals-widget (source). Documents the demand-side embed widget — quick start, options, programmatic usage, event payload shapes, React companion, security/threat model for the token in the DOM, and a "when to use this vs. the raw REST endpoint" framing. Sibling to the JavaScript / Python / React SDK pages under "SDKs & TOOLS".build-content.js scans src/content/**/*.md and regenerates content-manifest.json). Pre-rendered into the static build.@vennio/widget@0.1.4 + @vennio/react@0.3.1 — repository URL refresh@vennio/widget@0.1.4 and @vennio/react@0.3.1 — patch bumps to correct repository.url. Both packages pointed at the long-defunct https://github.com/vennio-app/vennio (the old org/repo name). Now: git+https://github.com/vennio-hq/my-porter.git in the npm-normalised form. No code change — metadata-only.publish warning on @vennio/react@0.3.0 (the version published earlier today) and @vennio/widget@0.1.3 (last published 4 months ago). Fixing in tandem so both shipped packages stop redirecting npm users to a 404.@vennio/proposals-widget@0.1.1 — its repository.url was correct at first publish.POST /v1/proposals/{id}/response description now opens with a "For browser embeds: use the widget, not this endpoint" callout. Surfaces @vennio/proposals-widget and <VennioProposal> from @vennio/react as the recommended path for browser-side recipient responses, with the raw REST endpoint reserved for server-side flows (webhooks, schedulers, adapters). Closes the discoverability gap where agents reading the spec went straight to writing fetch code and rebuilt the the-cut/safe-space mistake (calling the response endpoint with the organizer's API key → 403 organizer_cannot_respond).docs.vennio.app/llms-full.txt and the rendered docs site via the existing build pipeline on next deploy.@vennio/react@0.3.0 — <VennioProposal> component@vennio/react@0.3.0 — minor bump for the new <VennioProposal> component exported on 2026-05-15. The component embeds vennio.app/p/:token in an iframe and surfaces accept/counter/reject postMessage events as React callbacks. Same accept/counter/reject payload shapes as @vennio/proposals-widget. Inlined iframe with useEffect cleanup — no listener leak (the bug fixed in @vennio/proposals-widget@0.1.1 never affected the React component).BookingCalendar / BookingForm / TimeSlotPicker / BookingConfirmation components.@vennio/proposals-widget@0.1.1 — listener-leak fixinit() no longer leaks message listeners on re-mount. Each call to init(container, options) registered a fresh window.message listener but never removed earlier ones bound to the same container. SPAs that re-initialise on token/prop change saw callbacks fire N times for one event. Surfaced by the 2026-05-15 manual iframe test (Mount clicked twice → onAccepted fired twice). Fix: track active handlers per container in a WeakMap and remove the prior listener before binding a new one.init() now returns an unsubscribe function. Backwards-compatible (callers ignoring the return are unaffected). Lets host apps manually tear down the widget; documented in packages/proposals-widget/README.md. The React <VennioProposal> component was unaffected by the leak (its useEffect cleanup already removed the listener) — no change there.@vennio/proposals-widget (demand-side embed widget)Backfilled entry. PR #366 merged without a CHANGELOG entry because the R4 changelog-gate's tier-1 path list does not yet cover
packages/proposals-widget/,packages/react/,packages/widget/, or the main app atsrc/. Gap surfaced in audit follow-up; gate-widening tracked separately.
@vennio/proposals-widget@0.1.0 (new package). Drop-in iframe widget that embeds Vennio's existing magic-link recipient view (vennio.app/p/:token) into any third-party site with 2 lines of HTML, mirroring the supply-side @vennio/widget pattern. Removes the 403 organizer_cannot_respond footgun: embedding apps pass a token and react to postMessage events; they never call POST /v1/proposals/{id}/response themselves, so they cannot accidentally call it as the wrong principal. Three callbacks (onAccepted / onCountered / onRejected) plus a generic onEvent for terminal/error states (expired, used, not_found, calendar_disconnected, error). IIFE 2.57 KB, ESM 2.10 KB, CJS 2.57 KB. Origin-verified postMessage. Auto-init + MutationObserver. Not yet published to npm — see Phase A4 follow-up.@vennio/react — new <VennioProposal> component. React wrapper for the same flow. Inlined iframe (no inter-package runtime dependency). Same callback surface as the vanilla widget. Will publish as @vennio/react@0.3.0 when ready.vennio.app/p/:token)action: counter with counter_slots. New COUNTERING / COUNTERED states in the page state machine. Previously the page linked recipients into the portal to counter; the embedded widget now supports counter end-to-end without leaving the iframe.window !== window.parent), the page now posts vennio:proposal:* events to the parent on accept / counter / reject / expired / used / not_found / calendar_disconnected / error. This is the load-bearing prerequisite for the widget's callback surface. Target origin is '*' because third-party embeds cannot enumerate parent origins; the widget itself verifies event.origin on the receive side.audit/0c-doc-prose-vs-agent-behaviour-2026-05-15.md (this morning's falsification of the doc-prose intervention). Spec at audit/0c-proposals-widget-design.md (PR #365).POST /v1/proposals/{id}/response endpoint now explicitly state that the principal who created a proposal cannot accept, counter, or reject it. Previously the rule was implicit in the dual-auth model (Bearer auth for organizer-side reads; magic-link token for recipient responses) and discoverable only by hitting a 403 mid-build. The 403 error code (organizer_cannot_respond) is now in the documented error code list alongside the existing 401/409 entries.No code or behaviour change — documentation only. Spec change propagates to docs.vennio.app/llms-full.txt and the rendered docs site via the existing build pipeline on next deploy.
@vennio/sdk@0.3.0 published to npm. Second curated-surface release. The
package is the recommended way to talk to the Vennio API from JS/TS apps and
AI agents.vennio.availability namespace with two methods:slots(params) — bookable time slots for a single business or principal
in a date range. Returns a discriminated union (kind: 'flat' for a flat
slots[] array, kind: 'grouped' for slots_by_day keyed by ISO date
when group_by_day: true is passed). Supports public, authenticated, and
consent-scoped access modes; the consent audit-trail field on the
response populates only in consent-scoped mode.findOverlap(params) — mutual availability across 2-10 principals.
Returns the full intersection plus a consents array proving the caller
had authorization from each participant. Empty overlap returns 200 with
slots: [] and a populated consents array (verified via production
probe 2026-05-11).network, eventTypes, consents, apiKeys, invitations,
accessRequests, hubspot, schedules) are now documented in the README
with usage examples for vennio.raw.<namespace>.<method>. Closes the
failure mode where Cursor/Copilot would recommend vennio.eventTypes.create(...)
— which doesn't exist on the modern class — instead of the working
vennio.raw.eventTypes.create(...).vennio.raw.offers (3 methods: create, list, respond). The
underlying /v1/offers/* routes were retired in May 2026; calls would have
returned 404. The SDK's generated client now omits them.vennio.raw.salesforce (7 methods). All /v1/salesforce/* routes are
deprecated: true in the spec; the Salesforce integration is being sunset.
If you currently depend on the Vennio Salesforce integration, contact the
team — the surface is being replaced.sdk-release.yml) now runs a tag-sync guard
before publish. It fails the release if the pushed sdk-v* tag and
packages/sdk/package.json:version disagree. Closes the
0.2.0-vs-0.2.0-rc.1 mislabel class of bug structurally rather than relying
on manual discipline at release time.parser.filters.deprecated: false in
packages/sdk/openapi-ts.config.ts) so any future routes marked
deprecated: true in api/openapi.yaml automatically drop out of the
SDK's public type surface on the next build.user_id query parameter. Dashboard integrations are unaffected. Programmatic integrations need to call POST /v1/oauth/connect-token before initiating OAuth at /v1/calendars/google/connect or /v1/calendars/microsoft/connect.POST /v1/venn-links/{id}/book) now references a new BookingConfirmation schema (5 fields) instead of the canonical Booking schema. The endpoint's behaviour hasn't changed — the spec now accurately reflects what it returns.GET /v1/bookings/stats and GET /v1/api-keys/{keyId}/stats schemas updated to match handler output. The unused last_7_days field has been removed from API key stats responses.redirectUrl field returned by POST /v1/calendars/google/exchange has been renamed to redirect_url for consistency with the rest of the API surface.duration_minutes across all availability and venn-link endpoints — now accepts any positive integer up to 480GET /v1/stripe/session-status, GET /v1/billing/invoices, GET /v1/calendars/connections, GET /v1/calendars/google/connect-guestGET /v1/stripe/session-status made public per original intent — was incorrectly auth-gated, now rate-limited at 5 req/min/IPPOST /v1/access-requests made public per original intent — was incorrectly auth-gated, now rate-limited at 5 req/min/IPGET /v1/invitations/{id} caused by missing validateUUID importPOST /v1/invitations/bulk spec to match handler — request body field names corrected after stale rewrite in d3db26bprincipal_id migration complete: now accepted as alias for business_id across all booking, availability, venn-link, offer, invitation, and booking-series endpointsbusiness_id query param from GET /v1/bookings/stats spec — handler always uses req.userIdGOOGLE_CLIENT_SECRET, MICROSOFT_CLIENT_SECRET) no longer use the VITE_ prefix — prevents accidental exposure in the browser bundlecheck-env.html) no longer displays VITE_GOOGLE_CLIENT_SECRETapplication_fee_amountenrich_meeting calendar enrichment, and Smithery tool annotations/audit page with wizard flow, audit leads API, and personalised fix guide emails/api/og/report-card endpoint for dynamic social sharing imageserror.message in production — details routed through Sentry onlyconsole.log to structured Winston logger with Sentry error transportcalendar.events scope, added regression testsinitialize and tools/list for registry discovery.env.example added with all 30+ environment variables documentednpx vennio CLI with init wizard, status, links, bookings, and test commandsvennio-tokens.css)npm run sync-tokens to propagate token changes to docs site.vercelignore to prevent hobby plan serverless function limit (12 max)