Rezonta API
Connect a business's own app to Rezonta: online booking, clients, visit history, payments and reviews — with changes pushed within seconds through signed webhooks. The booking rules are the same as on the business's website.
API version: v1 · base URL https://api.rezonta.com/api/v1/integration
Business owners request access in Rezonta: Settings → Integrations → Rezonta API.
Getting access
- The API is available on the Pro and Enterprise plans. The Rezonta team opens access on request.
- The business owner requests access in Rezonta: Settings → Integrations → Rezonta API — app name, what it will do, the developer and the permissions (scopes) it needs.
- The Rezonta team reviews the request, usually within a business day. Once approved, the owner creates an API key and hands it to the developer.
- The key is shown once. Keep it on your server only — never in a mobile app or website code.
Keys look like rz_live_<prefix>_<secret> (rz_test_… for Rezonta's internal test businesses). A key can be limited to locations and given an expiry; the owner is emailed about every key created or revoked.
Quick start
Check your key — GET /me needs no scope:
curl https://api.rezonta.com/api/v1/integration/me \
-H "Authorization: Bearer rz_live_AbC123xyZ789_…"{
"company": { "id": "WuCzbG06Z4R4", "name": "Example Studio" },
"key": {
"id": "pRXHzQcNpbyz",
"name": "Mobile app backend (prod)",
"mode": "live",
"scopes": ["catalog:read", "clients:read", "appointments:write"],
"createdAt": "2026-01-15T09:00:00.000Z",
"expiresAt": null
},
"locations": [{ "id": "y6Uneid43eiR", "name": "Example Studio" }],
"allLocations": true
}Authentication and scopes
Send Authorization: Bearer <key> with every request. Access is checked on every call: a revoked key, revoked access or a downgrade to the free plan takes effect on the next request.
| Scope | Grants |
|---|---|
catalog:read | Locations, services, staff, bundles, free slots |
clients:read | Client profile, loyalty |
clients:write | Create clients, profile, marketing consent, notification handler |
appointments:read | Appointments, visit history, receipts |
appointments:write | Book, reschedule, cancel, confirm |
payments:write | Online payment through the business's acquirer (WayForPay or Plata by mono) |
reviews:write | Visit reviews |
events:read | Event feed |
webhooks:manage | Manage webhooks |
analytics:read | Reports: key figures, P&L, RFM, LTV |
catalog:readLocations, services, staff, bundles, free slots
clients:readClient profile, loyalty
clients:writeCreate clients, profile, marketing consent, notification handler
appointments:readAppointments, visit history, receipts
appointments:writeBook, reschedule, cancel, confirm
payments:writeOnline payment through the business's acquirer (WayForPay or Plata by mono)
reviews:writeVisit reviews
events:readEvent feed
webhooks:manageManage webhooks
analytics:readReports: key figures, P&L, RFM, LTV
Errors
Every error has one shape: { "error": { "code", "message", "details"? } }. Branch on code — messages may change, codes don't. A code always comes with the same HTTP status. The reference below lists the codes each endpoint can return, with an example body for each.
HTTP/1.1 409 Conflict
{
"error": {
"code": "SLOT_TAKEN",
"message": "This time slot is no longer available"
}
}| Code | When |
|---|---|
INVALID_API_KEY, API_KEY_REVOKED, API_KEY_EXPIRED | 401 — invalid, revoked or expired key |
INTEGRATION_ACCESS_REVOKED, INTEGRATION_PLAN_REQUIRED, COMPANY_SUSPENDED | 403 — the business's API access is not in force |
SCOPE_MISSING, LOCATION_NOT_ALLOWED | 403 — the key lacks a scope or location (details.missing) |
PUBLIC_BOOKING_DISABLED | 403 — online booking is off for the location |
VALIDATION_FAILED | 400 — field errors in details |
SLOT_TAKEN, OUTSIDE_BOOKING_HORIZON | Slot taken or too far ahead |
PREPAYMENT_REQUIRED | 409 — the business takes this phone number only with a prepayment; amounts in details. Show them to the client and repeat with payment: "deposit" and acceptedPrepaymentPercent (or payment: "full") |
PAYMENT_OPTION_UNAVAILABLE | 400 — the chosen payment option does not fit the location's payment rules: with optional payment (optional) use later or full, with a required prepayment (required) use deposit or full |
ONLINE_PAYMENT_UNAVAILABLE | 400 — the business has no online payments connected |
PAYMENT_START_FAILED | 502 — the acquirer did not open a checkout. For a number that requires a prepayment the booking is cancelled; otherwise retry POST /appointments/:id/payment later |
PAYMENT_IN_PROGRESS | 409 — a payment is already in progress for this booking: wait for payment.succeeded or for it to expire |
ALREADY_PAID, NOTHING_TO_PAY, PREPAYMENT_NOT_ENABLED | 409 — there is nothing left to pay, or the business does not take prepayments (for mode: "prepayment") |
OUTSIDE_CANCELLATION_WINDOW, OUTSIDE_RESCHEDULE_WINDOW, RESCHEDULE_LIMIT_REACHED | The business's cancel/reschedule rules |
RATE_LIMITED | 429 — see the Retry-After header |
INVALID_API_KEY,API_KEY_REVOKED,API_KEY_EXPIRED401 — invalid, revoked or expired key
INTEGRATION_ACCESS_REVOKED,INTEGRATION_PLAN_REQUIRED,COMPANY_SUSPENDED403 — the business's API access is not in force
SCOPE_MISSING,LOCATION_NOT_ALLOWED403 — the key lacks a scope or location (
details.missing)PUBLIC_BOOKING_DISABLED403 — online booking is off for the location
VALIDATION_FAILED400 — field errors in
detailsSLOT_TAKEN,OUTSIDE_BOOKING_HORIZONSlot taken or too far ahead
PREPAYMENT_REQUIRED409 — the business takes this phone number only with a prepayment; amounts in
details. Show them to the client and repeat withpayment: "deposit"andacceptedPrepaymentPercent(orpayment: "full")PAYMENT_OPTION_UNAVAILABLE400 — the chosen
paymentoption does not fit the location's payment rules: with optional payment (optional) uselaterorfull, with a required prepayment (required) usedepositorfullONLINE_PAYMENT_UNAVAILABLE400 — the business has no online payments connected
PAYMENT_START_FAILED502 — the acquirer did not open a checkout. For a number that requires a prepayment the booking is cancelled; otherwise retry
POST /appointments/:id/paymentlaterPAYMENT_IN_PROGRESS409 — a payment is already in progress for this booking: wait for
payment.succeededor for it to expireALREADY_PAID,NOTHING_TO_PAY,PREPAYMENT_NOT_ENABLED409 — there is nothing left to pay, or the business does not take prepayments (for
mode: "prepayment")OUTSIDE_CANCELLATION_WINDOW,OUTSIDE_RESCHEDULE_WINDOW,RESCHEDULE_LIMIT_REACHEDThe business's cancel/reschedule rules
RATE_LIMITED429 — see the
Retry-Afterheader
Rate limits and idempotency
- 600 requests per minute per key (booking 60/min and availability-days 60/min on their own). Current state is in
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset. - Booking and payment require an
Idempotency-Keyheader (8–128 chars, unique per action). Retrying with the same key and body within 24 h returns the first response instead of a duplicate — safe to retry after a timeout. - Same key, different body —
422 IDEMPOTENCY_KEY_REUSED; a concurrent duplicate —409 IDEMPOTENCY_IN_PROGRESS.
curl -X POST https://api.rezonta.com/api/v1/integration/locations/y6Uneid43eiR/appointments \
-H "Authorization: Bearer $REZONTA_KEY" \
-H "Idempotency-Key: booking-7f3c9a1e-2b4d" \
-H "Content-Type: application/json" \
-d '{
"serviceId": "rO3V8CUy88bx",
"staffId": "ZXzBkOjhlbcZ",
"date": "2026-10-10",
"time": "10:00",
"client": { "phone": "+380990000000", "firstName": "Ivan" }
}'Pagination and identifiers
Lists return { items, nextCursor }; pass cursor=<nextCursor> for the next page (limit up to 100). nextCursor: null means the last page. Cursors stay stable while data changes.
All ids are short public ids. Appointments imported from another system also carry externalId — their id in the source system — to match them with your data.
Clients
A client is a person with a phone number within the business. Each location they visited has its own card; the API shows the whole person: GET /clients?phone=+380…, profile, history across locations, loyalty.
POST /clients— find-or-create the card in a location by phone; an existing card is not overwritten (created: false).PATCH /clients/:id— the profile changes on all of the person's cards. The phone can't be changed here.clientIdin paths is the id of any of the person's cards; they all lead to the same person.stats.totalSpentinGET /clients/:clientIdis an array of{ currency, amount }per location currency: the sum of the prices of completed visits across all of the person's cards. Retail products are not included, unlike "Spent" in the CRM, which counts them.stats.visitsCountcounts completed visits.POST /clients/:id/anonymize— "delete account" in your app: erases name, phone, email, birth date and photo on all of the person's cards. Appointments and payments stay as history of an anonymous client. While visits are ahead —409 ACTIVE_APPOINTMENTS_EXIST; cancel them first. Afterwards the person is not found by phone (404), and a new booking with that number creates a new card.
Booking
- Catalog:
GET /locations,/locations/:id/services,/staff,/bundles. - Availability:
/availability-days?from&to(days with free slots, up to 92 days; clamped to the booking horizon),/availability?serviceId&date(slots),/staff-availability?date(staff first). - Several services in one booking:
services=a,binstead ofserviceIdin/availabilityand/availability-days. The length is resolved per staff member, and only staff members who do all of them are offered. - Every slot has
maxDurationMin— the longest booking that fits from that time (until the end of the shift, a break or the next booking)./staff-availabilityhas the same inslotDetails. - Book:
POST /locations/:id/appointmentswith anIdempotency-Key. The business's website rules apply: loyalty discounts, booking horizon, prepayment, blocked numbers. - If the client chose to pay online or the business requires a prepayment, the response carries
paymentwith anorderReference. WayForPay: POST the fields ofpayment.formtoform.url(e.g. in a WebView). Plata by mono:formisnull, so openpayment.redirectUrl(GET) instead. Check which of the two is set. If the payment could not be started,paymentStartFailedistrue: the booking is created and stays unpaid. To pay for an existing booking:POST /appointments/:id/payment. - Cancel with
POST /appointments/:id/cancel. If the booking was paid online, the response carriesautoRefund:decision(nothing_paid,disabled,too_lateorrefunded) andrefunds(one entry per refunded payment). The business sets the automatic refund rule in the location'sappointmentPayment.autoRefundOnClientCancel; thepayment.refundedevent confirms the money. Later cancellations are refunded by the business by hand. - Cancel and reschedule follow the business's rules;
selfServiceon the appointment tells whether the buttons are available now.
Webhooks
Add an https URL in settings or via POST /webhooks — the signing secret is shown once. Rezonta POSTs each event within seconds of the change.
| Event | When |
|---|---|
appointment.created / .updated / .deleted | Booking created, changed (time, staff member, services, price), deleted |
appointment.status_changed / .cancelled | Status change; changes.previousStatus, source.actor |
appointment.client_confirmed | The client confirmed the visit |
appointment.reminder_due / .review_requested | Time to remind / ask for a review — only for clients whose notifications your app sends |
payment.succeeded | Online payment received |
payment.refunded | Online payment refunded to the client (in full or in part, data.refund) |
review.created | New review |
client.created / client.updated | New client card / profile changes |
client.anonymized | The card's data was erased at the client's request — delete your copy |
appointment.created/.updated/.deletedBooking created, changed (time, staff member, services, price), deleted
appointment.status_changed/.cancelledStatus change;
changes.previousStatus,source.actorappointment.client_confirmedThe client confirmed the visit
appointment.reminder_due/.review_requestedTime to remind / ask for a review — only for clients whose notifications your app sends
payment.succeededOnline payment received
payment.refundedOnline payment refunded to the client (in full or in part,
data.refund)review.createdNew review
client.created/client.updatedNew client card / profile changes
client.anonymizedThe card's data was erased at the client's request — delete your copy
The data and changes schema and an example body of every event are in the reference below, under Webhooks. The general shape:
{
"id": "39783e15-6159-454f-8a99-3784e8c591e8",
"seq": 1042,
"type": "appointment.cancelled",
"version": 1,
"occurredAt": "2026-01-20T14:03:11.000Z",
"locationId": "y6Uneid43eiR",
"source": { "actor": "client", "keyId": null },
"changes": { "previousStatus": "scheduled" },
"data": { "id": "CpsvnRZB4TuH", "status": "cancelled", "…": "…" }
}- Answer
2xxwithin 10 seconds and process asynchronously. Otherwise the delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h, 24 h. - At-least-once delivery: deduplicate on
id. Order is not guaranteed — per resource, ignore an event whoseseqis lower than one already applied. - After 3 days of failed deliveries the webhook is turned off and the business owner and the developer from the access request get an email. Missed events stay in the API event feed (
GET /events).
Every request is signed: Rezonta-Signature: t=<unix>,v1=<HMAC-SHA256(secret, "<t>.<body>")>. During a secret rotation it carries two signatures — accept either.
import crypto from "node:crypto";
// Use the RAW request body — re-serialized JSON will not match the signature.
export function verifyRezontaSignature(rawBody, header, secret) {
const t = Number(header.match(/t=(\d+)/)?.[1]);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // replay window
const expected = crypto
.createHmac("sha256", secret)
.update(`${t}.${rawBody}`)
.digest("hex");
// During a secret rotation the header carries two v1= values.
return [...header.matchAll(/v1=([0-9a-f]+)/g)].some(([, sig]) =>
sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)),
);
}Keeping data in sync
- Initial load:
GET /locations/:id/appointments?from&to(up to 93 days per call) and clients by phone. - Then webhooks. Remember the highest
seqyou received. - After your server was down:
GET /events?after=<seq>— the same events as the webhooks, for the last 30 days. A cursor older than that gets410 EVENTS_CURSOR_EXPIRED: repeat the initial load. - Once a day, reconcile the coming weeks via
/appointments?from&to.
curl "https://api.rezonta.com/api/v1/integration/events?after=1042&limit=100" \
-H "Authorization: Bearer $REZONTA_KEY"
{ "items": [ /* envelopes, seq ascending */ ], "nextAfter": "1150", "hasMore": false }Client notifications
If your app sends the client push notifications itself, tell Rezonta — it will stop duplicating them over Telegram, SMS or email:
curl -X PUT https://api.rezonta.com/api/v1/integration/clients/QFCsIZLzkuRI/notifications \
-H "Authorization: Bearer $REZONTA_KEY" -H "Content-Type: application/json" \
-d '{ "handledBy": "app" }'handledBy: "app"after sign-in / push registration;"rezonta"when the client has no device left.- Confirmations, cancellations and reschedules come from the appointment events. Reminders and review requests arrive as
appointment.reminder_due(withchanges.offsetMinutes) andappointment.review_requested, exactly when Rezonta would have sent them. - Safety net: the flag only holds while the key is live, access is approved and an active webhook receives
appointment.reminder_due. Otherwise Rezonta sends again — the client never ends up without reminders.
Analytics for BI
Power BI, Looker Studio, Google Sheets and other BI tools can pull reports with a key that has the analytics:read scope, but they need a connector or script that sends the Authorization: Bearer header. The numbers match the analytics pages in Rezonta.
curl "https://api.rezonta.com/api/v1/integration/analytics/overview?period=month" \
-H "Authorization: Bearer $REZONTA_KEY"| Endpoint | Returns |
|---|---|
GET /analytics/overview | Revenue, visits, average ticket, new and returning clients, no-shows and cancellations |
GET /analytics/pnl | Profit and loss: revenue − cost of goods − payroll − expenses |
GET /analytics/rfm | Clients by RFM segment (a snapshot refreshed nightly) |
GET /analytics/ltv | All-time client value: statistics, a histogram, every client |
GET /analytics/overviewRevenue, visits, average ticket, new and returning clients, no-shows and cancellations
GET /analytics/pnlProfit and loss: revenue − cost of goods − payroll − expenses
GET /analytics/rfmClients by RFM segment (a snapshot refreshed nightly)
GET /analytics/ltvAll-time client value: statistics, a histogram, every client
- Period:
period=today|week|month|quarter|yearorperiod=custom&from=YYYY-MM-DD&to=YYYY-MM-DD; the current month by default. RFM and LTV take no period. locationId— a single location; without it, the sum over every location of the key.- P&L, RFM and LTV need the advanced analytics that come with the Pro plan; otherwise
403 PLAN_FEATURE_REQUIRED.
API changes
New response fields, endpoints, error codes and event types are not breaking — ignore what you don't know. Removing or renaming happens only in a new version (v2), announced in advance.
Endpoint reference
Every endpoint, parameter and request body — from the live OpenAPI specification.