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

StatusMeaning
200 / 201 / 202OK, created, or accepted for sending
401Missing, invalid or revoked key
403Key is read-only, or the plan doesn't include the API
404Unknown endpoint or record
409Conflict: time already booked, or outside WhatsApp's 24-hour window
422Missing or invalid fields
429Rate limit: 30 requests per minute per key
{ "error": { "code": 409, "message": "That time is already booked." } }

Account

GET/me

Your business, plan, WhatsApp number and the key's access.

Contacts

GET/contacts?since=2026-10-01T00:00:00Z&limit=100

Everyone 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

GET/availability

The 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

GET/bookings?from=2026-10-20&to=2026-11-30

Bookings in a date range (default: the last 7 days to 60 days ahead).

POST/bookings
Field
startRequired. ISO date-time, e.g. 2026-11-04T10:30
phoneRequired. Patient or customer WhatsApp number
name, service, notesOptional
duration_minutesOptional, 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

POST/cancel-booking
{ "id": "BK-8F3A21C0" }

The time is offered to your waiting list automatically.

Send a WhatsApp

POST/messages

Free 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"] } }
Never send test results, diagnoses or other health details in a WhatsApp message. Ask the patient to contact the practice, or use a secure document link.

Waiting list

POST/waitlist
{ "phone": "27821234567", "name": "Thandi", "note": "Any morning next week" }

Stats

GET/stats?from=2026-10-01&to=2026-10-31

Daily 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

EventWhen
message.receivedA customer messaged and the receptionist replied (includes both texts)
handoverA chat needs a person. urgent: true for possible medical emergencies
form.submittedA request flow finished, e.g. consultation booking or new patient registration. fields holds the answers
booking.createdBooked on WhatsApp, in the portal, from the waiting list or through the API
booking.confirmedThe customer tapped Confirm on a reminder
booking.cancelledCancelled by the customer, the practice or the API
waitlist.joinedA customer asked to go on the waiting list
rating.receivedA customer rated their experience (1 to 5)
testYou pressed Send test in the portal

Zapier & Make

  1. In Zapier, create a Zap with the trigger Webhooks by Zapier → Catch Hook (Make: Webhooks → Custom webhook) and copy its URL.
  2. Paste it in Replyza under Integrations → Webhooks, tick the events you want and save. Press Send test.
  3. Map the fields to Google Sheets, HubSpot, Pipedrive, Gmail, Slack or anything else.
  4. 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:

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.