Skip to content
Developers

REST API, webhooks & connectors

Connect BotHub 360 to your existing PHP/MySQL systems, ERPs and shops.

Authentication

Create an API key in Developer Centre → API keys and send it as a bearer token.

curl https://bots.itach.net/api/v1/contacts \
  -H "Authorization: Bearer bh_live_xxxxxxxxxxxxxxxx"

Endpoints

MethodEndpointDescription
GET/api/v1/contactsList contacts (search with ?q=)
POST/api/v1/contactsCreate or update a contact by phone/email
GET/api/v1/contacts/{id}Get one contact
GET/api/v1/conversationsRecent conversations
POST/api/v1/messagesSend a message to a contact on a channel
GET/api/v1/productsList products
POST/api/v1/ordersCreate an order
POST/api/v1/invoicesCreate an invoice with a payment link
GET/api/v1/invoices/{id}Invoice status
POST/api/v1/eventsFire a custom event into your automations

Send a message

POST /api/v1/messages
{ "phone": "254712345678", "channel": "whatsapp", "text": "Your order is ready for collection." }

Webhooks

Subscribe to events such as message.received, contact.created, order.created, payment.received and form.submitted. Every request is signed:

X-BotHub-Signature: sha256=HMAC_SHA256(raw_body, your_webhook_secret)

Generic API connector

Add any REST API (bearer, basic, header or query authentication) without changing code, then call it from bots (API block) and automations.

Get API access