Bizmark API
Send WhatsApp messages, sync contacts, react to events and plug Bizmark into Zapier, Make, n8n or your own AI agents.
Quick start
1. In Bizmark open Integrations → API keys and create a key. 2. Send your first message:
curl -X POST https://api.bizmark.app/api/v1/messages/send \
-H "Authorization: Bearer bzk_your_key" \
-H "Content-Type: application/json" \
-d '{"to": "+971501234567", "template": "order_update", "language": "en", "variables": ["Sara", "#1042"]}'The base URL is https://api.bizmark.app/api/v1. Everything is JSON. Phone numbers use the international format.
API keys
Send the key in the Authorization: Bearer bzk_... header. Each key belongs to one workspace. When you create it you can:
- limit it to some areas (contacts, inbox, campaigns, integrations and more),
- make it read-only,
- give it an expiry date.
Keys are shown once. Revoke a key at any time from the same page. Keep keys on your server, never in a website or app that customers download.
Main endpoints
| Method | Path | What it does |
|---|---|---|
POST | /messages/send | Send a WhatsApp message: {to, text} inside the 24-hour window, or {to, template, language, variables[]}. |
POST | /contacts/upsert | Create or update a contact by phone: {phone, name, email, tags[], consent, consent_evidence}. |
GET | /contacts | List contacts (?search=, ?tag=, ?page=). |
GET | /conversations | List inbox chats (?status=open|pending|resolved). |
GET | /conversations/{id}/messages | Messages in one chat, newest last. |
POST | /conversations/{id}/send | Reply in a chat: {text} or {template_id, variables[]}. |
GET | /templates | Your WhatsApp message templates and their approval status. |
GET | /campaigns | Broadcasts with sent, delivered, read and failed counts. |
POST | /integrations/events | Send a business event that starts an automation: {type, phone, name, data}. Example types: cart.abandoned, order.shipped. |
GET | /integrations/webhooks | Your webhook endpoints. POST to add one: {url, events[]}. |
GET | /hooks/me | Connection test. Returns the workspace name. |
POST | /hooks/subscribe | REST-hook subscribe: {target_url, event, source}. Returns {id}. |
DELETE | /hooks/subscribe/{id} | REST-hook unsubscribe. |
GET | /hooks/sample?event= | A sample payload for an event, for no-code editors. |
WhatsApp rules apply: free text only inside 24 hours of the customer's last message; outside that, use an approved template. Marketing needs the contact's opt-in.
Webhooks
Add an HTTPS endpoint in Integrations → Webhooks and pick the events. We POST JSON like this:
{"event": "message.received", "tenant_id": "…", "occurred_at": "2026-11-14T10:00:00Z",
"data": {"conversation_id": "…", "contact": {"name": "Sara", "phone": "+971501234567"}, "type": "text", "text": "Hi"}}message.received | A customer sends a message |
message.status | A message is delivered, read or fails |
contact.created | A contact is added |
contact.opted_in | Someone agrees to marketing |
contact.opted_out | Someone stops marketing |
campaign.completed | A broadcast finishes |
conversation.assigned | A chat is assigned |
conversation.resolved | A chat is resolved |
Every call carries X-Bizmark-Signature: sha256=…, an HMAC-SHA256 of the raw body with your endpoint secret. Check it before trusting the data:
import hmac, hashlib
def valid(secret: str, raw_body: bytes, header: str) -> bool:
good = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(good, header or "")Answer with a 2xx within 10 seconds. Failed deliveries are retried with back-off, and an endpoint that keeps failing is paused.
Zapier, Make and n8n
Bizmark supports REST hooks, so triggers fire instantly instead of polling.
- Zapier: search for Bizmark, connect with an API key, then choose a trigger (New incoming message, New contact, Chat resolved…) or an action (Send WhatsApp message, Create or update contact, Send business event).
- Make: add the Bizmark app, connect with an API key and use Watch Bizmark events or the action modules.
- n8n or anything else: call
POST /hooks/subscribewith your webhook URL and an event, andDELETE /hooks/subscribe/{id}when you stop.
curl -X POST https://api.bizmark.app/api/v1/hooks/subscribe -H "Authorization: Bearer bzk_your_key" \
-H "Content-Type: application/json" \
-d '{"target_url": "https://hooks.example.com/abc", "event": "contact.created", "source": "n8n"}'MCP for AI agents
Bizmark speaks the Model Context Protocol, so Claude and other AI agents can search your knowledge base and work with your workspace.
URL: https://api.bizmark.app/mcp
Header: Authorization: Bearer bzk_your_keyA plain-text summary for AI crawlers is at /llms.txt.
Limits and errors
- Up to 600 requests a minute per key. Over that you get
429; wait and retry. - Errors come back as
{"detail": "…"}with a 4xx code.401means a missing, revoked or expired key;403means the key has no access to that area or your plan doesn't include it. - API access is part of the paid plans. See pricing.