Features › Integrations
Integrations and API

Integrations: a webhook,
the REST API and a calendar feed

Sixteen events leave the system the moment they occur, signed with HMAC-SHA256 and in a JSON format every automation tool understands. Four routes let outside software read the data. Nothing has to be retyped by hand.

Two directions of data transfer

The difference between those two directions decides which mechanism you use. The rest of this page is detail on one or the other.

Outbound

Webhook

The system reports outward the moment an event happens, with no request from the other side. You enter an address and select the events, and the data packet goes out on its own.

Example: a client books at 11pm. A second later the details are in your spreadsheet, a message has gone out to Viber, and a notification has reached your phone.
Inbound

API key

Outside software reads data from the plugin when it needs to. You issue a key, and the software uses it to ask for appointments since a given date, the list of services or the list of active staff.

Example: on the first of each month the accountant pulls the list of completed appointments for the previous month, without logging into the admin.
Most users need only the outbound direction. A webhook covers most of what is needed, because the goal is for the message to send itself and the spreadsheet row to write itself. An API key is needed when outside software has to read your data.

The list of sixteen events

Each webhook receives only the events you assign to it. One address can take a single event, another all sixteen.

Bookings

7
  • booking.createdNew booking
  • booking.cancelledBooking canceled
  • booking.completedBooking completed
  • booking.status_changedStatus changed, any status
  • booking.confirmedClient confirmed attendance
  • payment.recordedPayment recorded
  • waitlist.joinedJoined the waiting list

Messages to the client

9
  • booking.reminderReminder before the appointment
  • booking.reminder2Second reminder
  • booking.no_showClient did not show up
  • customer.debt_reminderUnpaid balance reminder
  • customer.review_requestReview request
  • customer.winbackLapsed client
  • customer.rebookTime to rebook
  • customer.birthdayBirthday message
  • customer.loyaltyLoyalty reward

What exactly arrives at your address

A JSON message in a fixed structure. Below is the packet that goes out for a new booking.

POST to your URL
X-PB-Event:     booking.created
X-PB-Signature: sha256=a3f1c8...
Content-Type:   application/json

{
  "id":          1482,
  "reference":   "3BB6844B",
  "status":      "pending",
  "service":     "Women's haircut",
  "staff":       "Milica Jovanović",
  "date":        "2026-07-24",
  "time":        "17:30",
  "price":       2500,
  "amount_paid": 0,
  "customer": {
    "name":  "Ana Petrović",
    "email": "ana@primer.rs",
    "phone": "+381 60 123 4567"
  }
}
The phone number is part of the packet. Because of it, every message that normally goes by email can go out at the same time as WhatsApp, Viber or SMS, through a tool you already use. The plugin does not send SMS itself and contains no SMS gateway, but the packet carries every field another service needs in order to send it.

Two mechanisms without which a webhook cannot be verified

The first proves the packet comes from you, the second shows whether the recipient address is set up correctly.

A signature the recipient uses to verify the sender

A webhook address is public. Without a signature, anyone who guesses it can write a fake booking into your spreadsheet.

  • Every packet carries a signature header, computed with HMAC-SHA256 over the message body and a secret known only to you and the recipient.
  • The recipient repeats the same calculation and compares the result. If the signatures do not match, the message is not from you, or the contents were altered in transit.
  • The secret is never transmitted. Only the result of the calculation travels, and the secret cannot be derived from it.
  • With no secret set there is no signature and the packet goes out without that header. Delivery still works, but the recipient cannot verify the sender.
Why this is the standard: Stripe, GitHub and Shopify use the same signing mechanism, so automation tools already support it.

A test send without a real booking

Without a test send, an integration is checked by booking an appointment with yourself and watching whether anything arrived.

  • The button sends a test packet to your address and displays the server's response.
  • The response is shown in the admin, not in a log. A wrong address or a switched-off scenario is visible at that moment.
  • The number of addresses is not limited, and each has its own set of events and its own secret.
  • A webhook is switched off with a toggle, without deleting it. The configuration stays saved.

Works with any tool that accepts an HTTP request

Zapier
Make
n8n
Pabbly
your own server

Four routes for reading data

The mechanism for when outside software has to make a request rather than wait to be told.

/auth/test Checks that the key is valid. The first call any integration makes.
/api/appointments Appointments with full client details. Filters by creation date, appointment date range, status and row count (100 at most).
/api/services Service catalog: name, duration, price.
/api/staff Staff catalog.

Managing keys

  • Up to twenty keys, each with its own label. The label should name the integration, for example “Zapier” or “Accountant report”, because after a few months it is no longer obvious which key belongs to what.
  • The time of last use is recorded for each key. A key unused for months is either an inactive integration or an access path you do not know about. In both cases it should be revoked.
  • Revocation is per key. One integration is switched off without affecting the others.
  • The key travels in the request header, as X-PB-API-Key or in the standard Authorization: Bearer form.
  • Key comparison is timing-safe, so a key cannot be guessed by measuring the server's response time.

A calendar feed, with no external tool

Staff usually check their schedule on a phone, not in the WordPress admin. A calendar feed puts the schedule where it actually gets read.

One link, added once

Setting this up needs neither Zapier nor a developer. It takes about thirty seconds per staff member, once.

  • Every staff member gets their own link and sees strictly their own appointments in it. The link is added once to Google, Apple or Outlook Calendar.
  • A global link exists for the owner or the front desk, with every appointment in one place.
  • This is a subscription, not a one-off import. A new appointment appears on its own, a canceled one is removed on its own. After the first setup there is nothing further to do.
  • It works on a watch, a phone and a computer, because iCal is a standard every common calendar supports. Instructions for all three systems are inside the plugin.
  • This is not the “Add to calendar” button from the email. That button adds a single appointment for the client. The feed keeps a staff member's whole schedule, permanently.
When this is useful: when the schedule has to be on a staff member's phone, with no account on any automation platform.
Integrations page: a webhook with event selection and a test button
Integrations in the admin: the address, the event selection, the signing secret and the test send button.

The limits of this part of the system

Integrations carry the data. What happens to it is configured in a tool of your choosing.

  • There is no ready-made connection to a named platform. There is no button for connecting a Zapier account. There is an address the system posts to, and you build the scenario yourself. That is a few minutes of work, but it is work.
  • No SMS, WhatsApp or Viber sending from the plugin. The system sends the event with the client's phone number, and the message is sent by a tool you choose and pay for. That is why those messages are not part of the license price.
  • No inbound writes. The routes are read-only. Outside software cannot create an appointment through the API, only read existing ones.
  • No import from Google Calendar. Appointments go from the plugin into the calendar, not the other way round. Entries made earlier in Google Calendar stay there.
  • No delivery retry. If the recipient's server does not answer at that moment, the packet is missed and is not sent again. For messages that must not be lost, use a tool that retries on its own.
These limits are a design decision, not an oversight. The plugin runs on your hosting and does not tie you to an account or a subscription on someone else's platform.

Which package includes integrations

In every paid plan, with no cap on the number of calls and no charge per event.

Webhook, API and calendar

Free1 service, 1 staff member
SingleEverything, 1 site
BusinessEverything, multiple sites
AgencyEverything, for client sites
See pricing →

Questions about integrations

A webhook needs no programming. In Zapier or Make you create a step called a catch hook, you get an address, you enter it in the plugin and select the events. Then you set what happens when a packet arrives: a Viber message, a spreadsheet row, a notification on your phone. API keys do need technical knowledge, but most users never open that screen.

Switch on a webhook for the reminder event and connect it to a tool that sends WhatsApp. The packet carries the name, phone number, service, date, time and booking reference, so every field a message needs. The plugin still sends the email, so the client gets both channels, or you switch the email off. You pay for the messages to that tool, not to us, and that is why the license has no monthly charge.

That is what the signing secret is for. Someone who knows the address but not the secret cannot send a packet that passes verification, because the recipient compares the signature against their own calculation. If you suspect the secret leaked as well, change it in the plugin and at the recipient. The address stays the same.

No. The packet is sent without waiting for a response and on a short timeout, so a client making a booking is not waiting on your Zapier. The only exception is the test send, which waits deliberately so it can show you the answer. If the recipient's server does not respond, the booking completes normally.

Yes, in three ways. The routes for appointments, services and staff return data as JSON. The client record has an export. The database sits on your hosting, so you can reach it directly. There is no data lock-in, because the data is not with us.

What travels through this

Integrations have no content of their own. They carry what the rest of the system produces.

Data retyped by hand gets lost sooner or later

Sixteen events leave on their own, signed, in the second they occur. The license is paid once, and the number of calls is never billed.