Introduction
The WhatBiz API lets you programmatically send WhatsApp messages, manage orders, and automate customer communication. It is a REST API that returns JSON responses.
Base URL:
https://developers.whatbizapp.com/api/v1
All requests must include your API key. Get one at the Developer Dashboard.
Authentication
Pass your API key in the X-API-Key header on every request.
curl https://developers.whatbizapp.com/api/v1/webhook-test \ -H "X-API-Key: wbk_your_key_here"
You can also use the Authorization header:
curl https://developers.whatbizapp.com/api/v1/webhook-test \ -H "Authorization: Bearer wbk_your_key_here"
Error Handling
All errors return a consistent JSON structure:
{
"success": false,
"error": "Human readable error message",
"code": "ERROR_CODE",
"docs": "https://developers.whatbizapp.com/docs"
}Messages
GET /api/v1/messages
List recent WhatsApp messages for your business.
limitphonedirectioncurl "https://developers.whatbizapp.com/api/v1/messages?limit=20&direction=inbound" \ -H "X-API-Key: wbk_your_key"
{
"success": true,
"messages": [
{
"id": "uuid",
"customer_phone": "2348012345678",
"customer_name": "Amaka",
"message_text": "Hi, do you have the red dress?",
"direction": "inbound",
"created_at": "2026-05-01T12:00:00Z"
}
],
"count": 1
}POST /api/v1/messages
Send a WhatsApp message to any phone number.
tomessagecustomer_namecurl -X POST https://developers.whatbizapp.com/api/v1/messages \
-H "X-API-Key: wbk_your_key" \
-H "Content-Type: application/json" \
-d '{
"to": "2348012345678",
"message": "Hi Amaka! Your order is ready for delivery.",
"customer_name": "Amaka"
}'{
"success": true,
"message_id": "wamid.xxx",
"to": "2348012345678",
"message": "Hi Amaka! Your order is ready for delivery.",
"sent_at": "2026-05-01T12:00:00Z"
}Orders
GET /api/v1/orders
List orders with optional filtering.
limitstatusphonePOST /api/v1/orders
Create an order and optionally send a Paystack payment link to the customer.
customer_phonecustomer_nameitemsamountdelivery_addresssend_payment_linksend_whatsapp_confirmationcurl -X POST https://developers.whatbizapp.com/api/v1/orders \
-H "X-API-Key: wbk_your_key" \
-H "Content-Type: application/json" \
-d '{
"customer_phone": "2348012345678",
"customer_name": "Amaka",
"items": "Red Cargo Dress x1",
"amount": 25000,
"delivery_address": "12 Allen Avenue, Ikeja, Lagos",
"send_payment_link": true
}'Customers
GET /api/v1/customers
List all customers who have messaged your business. Auto-created on first message.
limitphoneProducts
GET /api/v1/products
Get the full product catalogue for your business.
POST /api/v1/products
Add a single product to the catalogue.
namepriceunitmin_qtydescriptionvariantsavailablePUT /api/v1/products
Replace the entire product catalogue. Pass an array of product objects.
curl -X PUT https://developers.whatbizapp.com/api/v1/products \
-H "X-API-Key: wbk_your_key" \
-H "Content-Type: application/json" \
-d '{
"products": [
{
"name": "Cargo Jeans",
"price": 18000,
"unit": "per piece",
"variants": "Black, Grey, Khaki",
"available": true
},
{
"name": "White Sneakers",
"price": 22000,
"unit": "per pair",
"available": true
}
]
}'Broadcast
POST /api/v1/broadcast
Send a message to multiple customers at once. Max 500 per request.
messagesend_to_allrecipientscurl -X POST https://developers.whatbizapp.com/api/v1/broadcast \
-H "X-API-Key: wbk_your_key" \
-H "Content-Type: application/json" \
-d '{
"message": "New stock just arrived! Reply to order.",
"recipients": ["2348012345678", "2348098765432"]
}'{
"success": true,
"sent": 2,
"failed": 0,
"total": 2
}Test Connection
GET /api/v1/webhook-test
Verify your API key works and see your account status. No side effects.
curl https://developers.whatbizapp.com/api/v1/webhook-test \ -H "X-API-Key: wbk_your_key"
{
"success": true,
"message": "API key is valid and working",
"business_id": "uuid",
"plan": "starter",
"usage": {
"calls_used_this_month": 47,
"calls_limit": 1000,
"remaining": 953
},
"whatsapp_connected": true,
"business_name": "Glow & Go Skincare",
"currency": "NGN",
"products_count": 5
}