Developer documentation

Whatse API

Reference structure for integrating WhatsApp messaging into your application. Replace example endpoints and authentication values with your production API details.

Introduction

Whatse provides a REST-style interface for connecting your application to WhatsApp communication workflows.

The endpoints below are documentation examples for the website design. Confirm the final production endpoint, authentication method and limits with your Whatse backend before publishing this documentation.

Authentication

Send your API key using the Authorization header.

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Send a text message

POST /api/v1/messages/send
{
  "to": "+973XXXXXXXX",
  "type": "text",
  "message": "Hello from Whatse"
}

Media messaging

POST /api/v1/messages/media

Use a media URL or the final upload mechanism supported by your account.

{
  "to": "+973XXXXXXXX",
  "media_url": "https://example.com/file.jpg",
  "caption": "Your order is ready"
}

Webhooks

Configure a secure HTTPS endpoint to receive events from your Whatse integration.

{
  "event": "message.received",
  "message_id": "msg_123",
  "from": "+973XXXXXXXX"
}

Errors

CodeMeaningAction
400Invalid requestCheck payload fields.
401UnauthorizedVerify API credentials.
429Rate limitedRetry using backoff.
500Server errorRetry and contact support if persistent.