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
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/contacts | List contacts (search with ?q=) |
| POST | /api/v1/contacts | Create or update a contact by phone/email |
| GET | /api/v1/contacts/{id} | Get one contact |
| GET | /api/v1/conversations | Recent conversations |
| POST | /api/v1/messages | Send a message to a contact on a channel |
| GET | /api/v1/products | List products |
| POST | /api/v1/orders | Create an order |
| POST | /api/v1/invoices | Create an invoice with a payment link |
| GET | /api/v1/invoices/{id} | Invoice status |
| POST | /api/v1/events | Fire 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