Replyza API
Connect your Replyza AI receptionist to the rest of your business: read contacts and bookings, book and cancel appointments, send WhatsApp messages, and get a signed webhook the moment something happens.
The API is part of the Pro plan. Base URL:
https://replyza.co.za/api/v1
All requests and responses are JSON. Times are ISO 8601; when you leave out the offset we use South African time (UTC+2). Phone numbers are international format, e.g. 27821234567.
Authentication
Create a key in your client portal under Integrations ā API keys. It is shown once, so store it safely. Send it as a bearer token:
curl https://replyza.co.za/api/v1/me \
-H "Authorization: Bearer rzk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Keys are read & write or read only. Revoke a key at any time from the portal; it stops working immediately. Never put a key in a website or app that customers can see.
Errors & limits
| Status | Meaning |
|---|---|
| 200 / 201 / 202 | OK, created, or accepted for sending |
| 401 | Missing, invalid or revoked key |
| 403 | Key is read-only, or the plan doesn't include the API |
| 404 | Unknown endpoint or record |
| 409 | Conflict: time already booked, or outside WhatsApp's 24-hour window |
| 422 | Missing or invalid fields |
| 429 | Rate limit: 30 requests per minute per key |
{ "error": { "code": 409, "message": "That time is already booked." } }
Account
/meYour business, plan, WhatsApp number and the key's access.
Contacts
/contacts?since=2026-10-01T00:00:00Z&limit=100Everyone who has messaged your WhatsApp line, newest first. Includes opt-in status, whether they need a person, and the last request form they filled in.
{ "data": [ { "phone": "+27821234567", "name": "Thandi", "last_message_at": "2026-10-21T09:12:00Z", "opted_in": true,
"needs_person": false, "last_form": "š Consultation booking\nPatient full name: Thandi Mokoena\nā¦", "last_form_at": "2026-10-21T09:12:00Z" } ] }
Availability
/availabilityThe next three free times, using your booking hours, existing bookings and your connected calendar feed. These are the same times your receptionist offers on WhatsApp.
Bookings
/bookings?from=2026-10-20&to=2026-11-30Bookings in a date range (default: the last 7 days to 60 days ahead).
/bookings| Field | |
|---|---|
start | Required. ISO date-time, e.g. 2026-11-04T10:30 |
phone | Required. Patient or customer WhatsApp number |
name, service, notes | Optional |
duration_minutes | Optional, defaults to your appointment length |
Returns 201 with the booking id, or 409 if the time is taken. The customer gets your normal reminders.
Cancel a booking
/cancel-booking{ "id": "BK-8F3A21C0" }
The time is offered to your waiting list automatically.
Send a WhatsApp
/messagesFree text only works within 24 hours of the customer's last message (a WhatsApp rule). Outside that window, send one of your approved templates.
{ "to": "27821234567", "text": "Your results are back. Dr Naidoo will call you this afternoon." }
{ "to": "27821234567", "template": { "name": "replyza_appt_reminder", "language": "en", "params": ["Thandi", "Sunrise Family Practice", "Tue 4 Nov at 10:30"] } }
Waiting list
/waitlist{ "phone": "27821234567", "name": "Thandi", "note": "Any morning next week" }
Stats
/stats?from=2026-10-01&to=2026-10-31Daily totals: customer messages, conversations, AI replies, team replies, handovers, bookings and after-hours chats.
Webhooks
Add up to 5 webhook URLs in Integrations ā Webhooks and choose which events each one gets. We send a POST with this body:
{ "id": "evt_mfx2k1a9b3", "event": "booking.created", "created": "2026-10-21T09:15:02Z", "client_id": "c_27821234567",
"data": { "phone": "+27821234567", "name": "Thandi", "start": "2026-11-04T10:30:00+02:00", "source": "whatsapp" } }
Headers: X-Replyza-Event (the event type) and X-Replyza-Signature. Reply with any 2xx within 10 seconds; we retry up to 3 times.
Verify the signature
X-Replyza-Signature is sha256= followed by the HMAC-SHA256 of the raw body, using your webhook's signing secret.
// Node.js
const crypto = require('crypto');
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.REPLYZA_SECRET).update(rawBody).digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-replyza-signature']))) return res.status(401).end();
# Python
import hmac, hashlib
expected = 'sha256=' + hmac.new(SECRET.encode(), raw_body, hashlib.sha256).hexdigest()
ok = hmac.compare_digest(expected, request.headers['X-Replyza-Signature'])
Event types
| Event | When |
|---|---|
message.received | A customer messaged and the receptionist replied (includes both texts) |
handover | A chat needs a person. urgent: true for possible medical emergencies |
form.submitted | A request flow finished, e.g. consultation booking or new patient registration. fields holds the answers |
booking.created | Booked on WhatsApp, in the portal, from the waiting list or through the API |
booking.confirmed | The customer tapped Confirm on a reminder |
booking.cancelled | Cancelled by the customer, the practice or the API |
waitlist.joined | A customer asked to go on the waiting list |
rating.received | A customer rated their experience (1 to 5) |
test | You pressed Send test in the portal |
Zapier & Make
- In Zapier, create a Zap with the trigger Webhooks by Zapier ā Catch Hook (Make: Webhooks ā Custom webhook) and copy its URL.
- Paste it in Replyza under Integrations ā Webhooks, tick the events you want and save. Press Send test.
- Map the fields to Google Sheets, HubSpot, Pipedrive, Gmail, Slack or anything else.
- For actions (book, cancel, send a WhatsApp), use Webhooks by Zapier ā POST with your API key in the Authorization header.
Practice management systems
GoodX, Healthbridge, Medinol and most practice systems can share a calendar or export appointments. Two ways to connect without custom work:
- Their calendar into Replyza: paste the system's (or the doctor's Google/Outlook) private iCal link in Bookings ā "Your other calendar". Those times are never offered on WhatsApp.
- Replyza bookings into their calendar: subscribe to your private Replyza calendar link (Bookings ā calendar link).
For full two-way sync, a developer can use this API and webhooks: create bookings in your practice system from booking.created, and push practice bookings to Replyza with POST /bookings. Need help? Email hello@replyza.co.za.
Replyza is a trading name of Networkking (Pty) Ltd, Reg. 2021/700686/07.