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.
- /openapi.json
- /openapi.yaml
- /llms.txt — AI-readable index of this site, including these docs
npx openapi-typescript https://benibrain.com/openapi.json -o benibrain-api.d.tsEndpoint index
Storefront
| Method | Path | Summary |
|---|---|---|
| GET | /public/store/info | Storefront info (business + products) |
| GET | /public/store/related | Related in-stock products |
| GET | /public/store/reviews | List approved reviews for a product |
| POST | /public/store/reviews | Submit a purchase-verified review |
| GET | /public/store/share | Server-rendered Open Graph share page |
| GET | /public/store/loyalty | Loyalty balance (verified customer) |
| POST | /public/store/validate-discount | Preview a discount code |
| POST | /public/store/validate-gift-card | Check a gift-card balance |
| POST | /public/store/checkout | Create a checkout for a cart |
| GET | /public/store/order | Order confirmation summary (by opaque orderToken) |
| POST | /public/commerce/attachments | Upload a buyer-extra file, get a fileToken |
| POST | /public/store/auth/request-code | Email a one-time sign-in code |
| POST | /public/store/auth/verify | Verify the code, start a customer session |
| GET | /public/store/auth/session | Current customer session, if any |
| POST | /public/store/auth/logout | End the customer session |
| GET | /public/store/my-orders | Order history (verified customer) |
Booking
| Method | Path | Summary |
|---|---|---|
| GET | /public/booking/info | Business info + active services |
| GET | /public/booking/staff | Agents available for a service |
| GET | /public/booking/slots | Available time slots for a service/date |
| POST | /public/booking/bookings | Create a booking |
| GET | /public/booking/{apiKey}/bookings/{id} | Authoritative booking + payment status |
| GET | /public/booking/my-bookings | Booking history (verified customer) |
| POST | /public/booking/my-bookings/{id}/manage-link | Issue a fresh manage-booking link |
Webhooks (business session required)
| Method | Path | Summary |
|---|---|---|
| GET | /webhooks | List your webhook endpoints |
| POST | /webhooks | Register a new endpoint |
| PATCH | /webhooks/{id} | Update url/events/active state |
| DELETE | /webhooks/{id} | Delete an endpoint |
| POST | /webhooks/{id}/test | Send a test delivery |
| GET | /webhooks/{id}/deliveries | Last 50 delivery attempts |
Connected website (business session required)
| Method | Path | Summary |
|---|---|---|
| GET | /integrations/website | Registered website origin and route templates |
| PUT | /integrations/website | Register or replace origin and product/collection/service routes |
| DELETE | /integrations/website | Disconnect 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.