Skip to main content

GB Chat API

Welcome to the GB Chat API documentation. This API allows you to send WhatsApp template messages programmatically from your applications.

Overview​

The GB Chat API provides a simple REST interface to:

  • Send Template Messages - Send pre-approved WhatsApp template messages to your customers
  • Receive Webhooks - Get real-time status updates for sent messages (delivered, read, failed)
  • Track Delivery - Monitor message delivery status with your own reference IDs

Quick Start​

1. Get Your API Key​

  1. Log in to your GB Chat Dashboard
  2. Navigate to Settings > Public API
  3. Click Generate API Key
  4. Copy and securely store your API key
Important

Your API key is shown only once. Store it securely - you won't be able to see it again.

2. Send Your First Message​

curl -X POST https://inboxapi.workmatic.in/api/v1/message/send \
-H "X-API-Key: gbk_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"template": "order_confirmation",
"language": "en",
"variables": {
"1": "John Doe",
"2": "ORD-12345"
}
}'

3. Handle the Response​

{
"success": true,
"data": {
"messageId": "msg_abc123xyz",
"waMessageId": "wamid.HBgLMTIzNDU2Nzg5MA...",
"status": "sent",
"to": "919876543210",
"template": "order_confirmation"
}
}

Base URL​

All API requests should be made to:

https://inboxapi.workmatic.in/api/v1

Authentication​

All requests must include your API key in the X-API-Key header:

X-API-Key: gbk_live_your_api_key_here

Next Steps​