Social Content
Synced social media feeds.
The storefront API is public and callable from anywhere, including a Framer site. Every endpoint is scoped to one business by the slug in its path.
Non-sensitive store configuration for checkout UIs.
Product catalog with variants, images, sales, tags, and collections.
/api/store/[slug]/productsLists the store's active products with variants, images, service charges, tags/collections, and any active sale pricing applied.GET/api/store/[slug]/products/[id]Fetches one active product with full details including variants (with SKU), images, service charges, and active sale pricing.Published gallery images, video embeds, and collections.
/api/store/[slug]/galleryLists the store's approved, currently-published gallery items (images and social video embeds) with public URLs, optionally filtered by tag or collection.GET/api/store/[slug]/gallery/collectionsLists the store's gallery collections (id, name, description) sorted alphabetically for building filter UIs.Stripe and cash checkout, coupon validation, and session recovery.
/api/store/[slug]/checkoutCreates a Stripe Checkout session for the cart (one-time or subscription products), with optional coupon, gift card, service charges, and sale-price handling, then returns the hosted payment URL.POST/api/store/[slug]/checkout/cashCreates a cash (pay-in-person) order directly in the database, bypassing Stripe - records order items, decrements inventory, notifies the business, and emails the customer a confirmation.GET/api/store/[slug]/checkout/recoverResume-checkout link target from abandoned-cart recovery emails: validates the recovery token, mints a fresh Stripe checkout session, and redirects the shopper to it.GET/api/store/[slug]/checkout/verifyCalled from the checkout success page to verify a Stripe checkout session and create the order if the webhook was missed (common for $0 checkouts), including order items and inventory decrements.POST/api/store/[slug]/coupons/validateValidates a coupon code against the cart contents and customer email, returning the discount amount and eligible items without applying anything.Order webhooks and third-party delivery links.
/api/store/[slug]/delivery-linksReturns the business's third-party delivery storefront links (DoorDash, Uber Eats, Grubhub) plus the highest-priority available provider.POST/api/store/[slug]/form-order-webhookReceives form submission webhooks (order requests) from a website's form, such as a Coursey Studio order form, emails the business owner and optionally the customer a confirmation (with vacation-mode messaging), and files the submission into the admin Messages workspace.Custom form submissions.
Email one-time-code login for storefront customers.
/api/store/[slug]/auth/meReturns the currently authenticated storefront customer's basic account info.POST/api/store/[slug]/auth/send-codeSends an 8-digit one-time passcode to the customer's email so they can sign in to the storefront customer portal.POST/api/store/[slug]/auth/signoutSigns the customer out by invalidating their Supabase session server-side.POST/api/store/[slug]/auth/verify-codeVerifies the emailed OTP code and returns Supabase access/refresh tokens plus the storefront customer record (created on first login).POST/api/store/[slug]/auth/refreshExchanges a Supabase refresh token for a fresh access/refresh token pair so a storefront customer session can outlive the ~1h access-token expiry without re-running the OTP flow.Authenticated customer profile, orders, and billing portal.
/api/store/[slug]/customerReturns the authenticated customer's own storefront (Stripe-backed) record for this business, or null when they have none yet.POST/api/store/[slug]/customerCreates the authenticated customer's own storefront record (with a Stripe customer on the business's connected account), or returns their existing one, optionally attaching metadata.POST/api/store/[slug]/customer-portalCreates a Stripe Customer Portal session URL for the signed-in storefront customer, who must have at least one active, trialing, or past_due subscription.GET/api/store/[slug]/customer/ordersReturns the signed-in customer's paginated order history for this business (matched by customer ID or email so guest orders appear), with line items and shipment tracking info.GET/api/store/[slug]/customer/profileReturns the signed-in customer's profile for this business, auto-creating an empty profile (marketing_opt_in false) on first access.PATCH/api/store/[slug]/customer/profileUpdates the signed-in customer's profile fields (name, phone, default shipping address, marketing opt-in); only provided fields change.Customer subscription management.
/api/store/[slug]/subscriptionsCreates a Stripe Checkout session in subscription mode for a product variant on behalf of the signed-in customer, returning the hosted checkout URL.GET/api/store/[slug]/subscriptions/[id]Retrieves a single storefront subscription belonging to the signed-in customer, including joined product and variant summaries.Product reviews and synced Google Business reviews.
/api/store/[slug]/google-reviewsReturns the store's synced Google Business reviews plus place info and rating summary; only available to businesses on the GOOGLE_REVIEWS feature-flag allowlist (others get 404).POST/api/store/[slug]/reviewsSubmits a customer product review (rating plus optional text and email) for a product belonging to the store.Synced social media feeds.
Community threads and voting.
/api/store/[slug]/community/capabilitiesReturns the forum/community feature settings and the caller's effective permissions (can view, create threads, reply) for a store; alias that re-exports the forums capabilities handler.GET/api/store/[slug]/community/threadsLists public community threads for a store with categories, pinned ordering, and cursor pagination.POST/api/store/[slug]/community/threadsCreates a new community thread (plus its opening post) as the authenticated storefront customer.DELETE/api/store/[slug]/community/threads/[threadId]Soft-deletes a community thread (and its posts) - only allowed for the customer who originally created the thread.POST/api/store/[slug]/community/threads/[threadId]/posts/[postId]/voteCasts, changes, or clears the authenticated customer's vote on a forum post; alias that re-exports the forums vote handler.Customer forums: threads, posts, votes, and profiles.
/api/store/[slug]/forums/capabilitiesReturns the forum feature settings and the caller's effective permissions (can view, create threads, reply) for a store; canonical handler also exposed at /community/capabilities.GET/api/store/[slug]/forums/profileFetches a forum member profile plus activity stats - the caller's own profile by default, or another member's public profile when customer_id is supplied.PATCH/api/store/[slug]/forums/profileUpdates the authenticated customer's forum profile fields (display name, privacy mode, bio, avatar, tagline), subject to per-business profile settings.GET/api/store/[slug]/forums/threadsLists public forum threads for a store with categories, pinned ordering, and cursor pagination; alias that re-exports the community threads handler.POST/api/store/[slug]/forums/threadsCreates a new forum thread (plus its opening post) as the authenticated storefront customer; alias that re-exports the community threads handler.DELETE/api/store/[slug]/forums/threads/[threadId]Soft-deletes a forum thread (and its posts) - only allowed for the customer who originally created the thread; alias that re-exports the community thread delete handler.GET/api/store/[slug]/forums/threads/[threadId]/postsFetches a public forum thread with its visible posts, author labels/badges, vote scores, and cursor pagination.POST/api/store/[slug]/forums/threads/[threadId]/postsPosts a reply to a forum thread as the authenticated storefront customer, optionally replying to a specific post.POST/api/store/[slug]/forums/threads/[threadId]/posts/[postId]/voteCasts, changes, or clears the authenticated customer's vote on a forum post and returns the updated score.Reservation calendar availability.
Public tenant branding for theming storefronts and pre-authentication pages.
Contact messages.
/api/store/[slug]/messagesFetches the authenticated storefront customer's message thread with the business (portal messages, form submissions, and admin replies), oldest first.POST/api/store/[slug]/messagesSends a new secure portal message from the authenticated storefront customer to the business, creating an admin notification and email alert.Online drop-off booking for a mechanic shop.
/api/store/[slug]/mechanic/booking/slotsLists the drop-off slots a customer can book: inside the shop's booking hours, with room left, from the notice the shop needs to the end of its booking horizon. Slots change the moment one is booked, so the response is never cached.POST/api/store/[slug]/mechanic/bookingSends a drop-off request. The time is optional: a slot from the slots endpoint, a preferred time in the customer's words, or neither. Nothing is held or promised. The request opens a job on the shop's board at Off Site - Need To Schedule, and the shop confirms it (setting the appointment), suggests another time, or declines it (cancelling that job). The customer is emailed that it is a request, not a booking, and the shop is emailed about it.