Developers

API reference

The complete endpoint index, plus a machine-readable spec for codegen and tooling.

Machine-readable spec

The same operations documented on this site are published as an OpenAPI 3 document, generated directly from BeniBrain's internal spec by filtering it to the public/customer integration surface — so it can never describe more than what's actually implemented.

Generate a typed client (example: openapi-typescript)
npx openapi-typescript https://benibrain.com/openapi.json -o benibrain-api.d.ts

Endpoint index

Storefront

MethodPathSummary
GET/public/store/infoStorefront info (business + products)
GET/public/store/relatedRelated in-stock products
GET/public/store/reviewsList approved reviews for a product
POST/public/store/reviewsSubmit a purchase-verified review
GET/public/store/shareServer-rendered Open Graph share page
GET/public/store/loyaltyLoyalty balance (verified customer)
POST/public/store/validate-discountPreview a discount code
POST/public/store/validate-gift-cardCheck a gift-card balance
POST/public/store/checkoutCreate a checkout for a cart
GET/public/store/orderOrder confirmation summary (by opaque orderToken)
POST/public/commerce/attachmentsUpload a buyer-extra file, get a fileToken
POST/public/store/auth/request-codeEmail a one-time sign-in code
POST/public/store/auth/verifyVerify the code, start a customer session
GET/public/store/auth/sessionCurrent customer session, if any
POST/public/store/auth/logoutEnd the customer session
GET/public/store/my-ordersOrder history (verified customer)

Booking

MethodPathSummary
GET/public/booking/infoBusiness info + active services
GET/public/booking/staffAgents available for a service
GET/public/booking/slotsAvailable time slots for a service/date
POST/public/booking/bookingsCreate a booking
GET/public/booking/{apiKey}/bookings/{id}Authoritative booking + payment status
GET/public/booking/my-bookingsBooking history (verified customer)
POST/public/booking/my-bookings/{id}/manage-linkIssue a fresh manage-booking link

Webhooks (business session required)

MethodPathSummary
GET/webhooksList your webhook endpoints
POST/webhooksRegister a new endpoint
PATCH/webhooks/{id}Update url/events/active state
DELETE/webhooks/{id}Delete an endpoint
POST/webhooks/{id}/testSend a test delivery
GET/webhooks/{id}/deliveriesLast 50 delivery attempts

Connected website (business session required)

MethodPathSummary
GET/integrations/websiteRegistered website origin and route templates
PUT/integrations/websiteRegister or replace origin and product/collection/service routes
DELETE/integrations/websiteDisconnect the website

Not included here

BeniBrain's dashboard/authoring API (product and service management, staff, analytics, conversations, invoicing, phone/AI settings) is owner-session-only and intentionally excluded from this public reference. A few storefront routes that serve browsers and crawlers directly — an XML sitemap, a server-rendered HTML storefront document, and the marketing-email unsubscribe landing page — are also out of scope here since they return HTML/XML for direct navigation rather than JSON for integration.