Your Channels
Each channel is an independent WhatsApp connection with its own API key.
No channels yet
Create your first channel to connect a WhatsApp number and get an API key.
—
Connect this channel to start sending and receiving WhatsApp messages.
—
Pass as X-API-Key header in all requests to this channel.
Send a message
cURL example
| Time | Dir | From | To | Message | Type |
|---|---|---|---|---|---|
| No messages yet | |||||
Add Webhook
Active Webhooks
No webhooks configured
Payload Example
{
"event": "message",
"channel_id": "your-channel-id",
"timestamp": 1714000000000,
"data": {
"direction": "in",
"from_number": "4917612345678",
"to_number": "4930123456789",
"body": "Hello!",
"type": "chat"
}
}
API Reference
Base URL: https://wapi.strehldigital.com/api
Authentication
All API requests require an API key that identifies your channel. Pass it as an HTTP header or query parameter.
X-API-Key: wapi_xxxxxxxxxxxx
GET /api/status?api_key=wapi_xxxxxxxxxxxx
Send Message
/api/messages/send
Send a WhatsApp text message to any number.
| Body param | Type | Required | Description |
|---|---|---|---|
number | string | Yes | Recipient in international format (no +) |
message | string | Yes | Text content to send |
curl -X POST https://wapi.strehldigital.com/api/messages/send \
-H "X-API-Key: wapi_xxxx" \
-H "Content-Type: application/json" \
-d '{"number": "4917612345678", "message": "Hello from WAPI!"}'
{ "success": true, "messageId": "3EB0..." }
Get Messages
/api/messages
Retrieve message history for this channel.
| Query param | Default | Description |
|---|---|---|
limit | 50 | Max messages to return (max 100) |
offset | 0 | Pagination offset |
number | — | Filter by phone number |
curl https://wapi.strehldigital.com/api/messages?limit=20 \ -H "X-API-Key: wapi_xxxx"
{
"messages": [
{
"id": "...",
"direction": "in",
"from_number": "4917612345678",
"to_number": "4930123456789",
"body": "Hello!",
"type": "chat",
"timestamp": 1714000000
}
],
"total": 42,
"limit": 20,
"offset": 0
}
List Contacts
/api/contacts
Returns up to 500 contacts from your WhatsApp address book.
{ "contacts": [{ "number": "4917612345678", "name": "Max Mustermann" }] }
List Chats
/api/contacts/chats
Returns up to 100 open chats with the last message and unread count.
Webhooks
/api/webhooks
/api/webhooks
/api/webhooks/:id
Register a URL to receive real-time events when messages arrive.
curl -X POST https://wapi.strehldigital.com/api/webhooks \
-H "X-API-Key: wapi_xxxx" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-app.com/hook", "events": "message", "secret": "optional-secret"}'
{
"event": "message",
"channel_id": "...",
"timestamp": 1714000000000,
"data": {
"direction": "in",
"from_number": "4917612345678",
"to_number": "4930123456789",
"body": "Hello!",
"type": "chat",
"timestamp": 1714000000
}
}
Channel Status
/api/status
Check the connection status of your channel.
{
"status": "ready",
"info": { "number": "4930123456789", "name": "My Bot", "platform": "smba" },
"channel": { "id": "...", "name": "My Channel" }
}