https://<erp-host>/api/site/v1
Authorization: Bearer <site_key>
X-Rivil-Client-IP: <visitor address>
The key stays on your site’s server. Each module answers only if it is enabled for the company. Store, client account and auction work with the site key when the channel, portal or event is linked to the site; otherwise they have their own key.
Shared rules (errors, limits, idempotency, webhooks) are in API . Exact fields, with your site’s types: GET /openapi.json and GET /shop/openapi.json.
Method and path
What it does
GET /types, GET /types.ts
content types, also as TypeScript types
GET /entries/<type>
list, with page, per_page, sort, filter[field], term[taxonomy]
GET /entries/<type>/<slug>
one entry
GET /taxonomies, GET /terms?taxonomy=<key>
categories and tags
GET /menus, GET /settings, GET /redirects, GET /sitemap
menus, single pages, redirects, sitemap
GET /search?q=
search in published content
POST /forms/<key>
{ name, email, phone, subject, message, page, source, fields, consent, website }
website is the honeypot: hide it in the form and send it empty. The response is 202, and the request shows up in the ERP under Site, Requests, and in the CRM if linked.
Method and path
What it does
POST /newsletter
{ email, name?, consent_text?, lang?, website }; returns 202 and sends the confirmation email
The person appears in the ERP only after pressing the button in that email, together with the consent and the accepted text. Send in consent_text exactly what the person ticked. website is the honeypot field. The response is the same for an address that already signed up. Requires the messaging module and the company email to be set up; otherwise it returns 404 or 503.
Method and path
What it does
GET /booking
catalog: services, specialists, locations, forms
GET /booking?services=<id,id>&from=&to=&employee=&location=
free slots
POST /booking/hold
hold a slot: { services, start, employeeId?, locationId? }
DELETE /booking/hold
release it: { token }
POST /booking
confirm: { holdToken, answers, consents, form?, lang?, paymentMethod?, website }
Method and path
What it does
GET /stay/search?checkIn=&checkOut=&adults=&children=&ages=&promo=
free rooms, prices, payment methods
POST /stay/reserve
{ typeId, checkIn, checkOut, adults, children, name, email, phone, notes, promoCode, paymentMethod }, or rooms[] for several rooms
GET /stay/manage, POST /stay/manage
the guest’s reservation, from their link
Method and path
What it does
GET /events, GET /events/<code>
published events, tickets and seats
POST /events/<code>/quote
price with coupon, before ordering
POST /events/<code>/orders
{ name, email, lines, success_url, cancel_url, lang }; returns order_token and payment_url
POST /events/<code>/waitlist
waiting list
GET /events/orders/<token>, .../pdf
order status and PDF tickets
Method and path
What it does
GET /shop/products, /shop/products/<slug>, /shop/collections, /shop/search
catalog
POST /shop/carts, GET /shop/carts/<token>
cart
POST /shop/carts/<token>/lines
{ product_id, qty }
POST /shop/carts/<token>/discount
discount code
GET /shop/shipping/quote, GET /shop/payment-methods
shipping and payment
POST /shop/carts/<token>/checkout
place the order; with Idempotency-Key
GET /shop/orders/track
order tracking
POST /shop/accounts, /shop/accounts/login
shopper account; the session goes in X-Shop-Session
POST /shop/returns, /shop/quote-requests, /shop/stock-alerts
return, quote request, stock alert
Ask for a language with X-Shop-Lang.
Method and path
What it does
GET /account/portal
portal settings
POST /account/register, /account/login, /account/logout
login returns session_token
POST /account/password/reset, /account/password/confirm
forgotten password
GET / PATCH /account/me
the person’s details
GET /account/appointments, /account/orders, /account/events
their history
GET /account/data
the client’s data sets
GET /account/subscription-plans, GET / POST /account/subscriptions
subscriptions; POST { plan_id, return_url } returns payment_url
GET /account/courses, /account/lessons/<id>
courses, lessons, progress, quizzes, assignments, certificates
Send the session in X-Account-Session. Keep it in an httpOnly cookie on your site.
Method and path
What it does
GET /careers, ?job=<slug>, ?spontaneous=1
open jobs and their form
POST /careers
multipart application: job, name, email, fields, answers, consents, cv
GET /reviews?open=1 or ?token=
the survey
POST /reviews
the answer: nps, answers, comment, consents
GET /reviews/wall
reviews to display
GET /auction/state, GET /auction/stream
auction state and live stream (SSE)
POST /auction/join, POST /auction/bid, GET /auction/me
sign up and bid, with X-Bidder-Token
For AI assistants For a new site start with types, entries and forms. Add modules one at a time, based on what the person asks for.