| Header | Required | Example |
|---|---|---|
| Authorization | Yes | Bearer <API_KEY> |
| Content-Type | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| toPhoneNumber | string | Yes | Recipient phone number (with country code) |
| brandNumber | string | Yes | Sender brand phone number (with country code) |
| textBody | string | No | Message text body (required if type=text) |
| type | string | No | Message type (default: text, options: text, media) |
| mediaUrl | string | No | URL for media (required if type=media) |
| caption | string | No | Caption for media message |
curl -L -X POST 'https://www.sendiee.com/api/v1/message/send' \
-H 'Authorization: Bearer <API_KEY>'| Error Code | Description |
|---|---|
RATE_LIMIT_EXCEEDED | Too many requests. Please slow down. |
INVALID_API_KEY | API key is invalid. |
API_KEY_MISSING | API key is missing in Authorization header. |
METHOD_NOT_ALLOWED | HTTP method not allowed. |
MISSING_FIELDS | Required fields are missing. |
MISSING_TEXT_BODY | textBody is required for type=text. |
MISSING_MEDIA_URL | mediaUrl is required for type=media. |
INVALID_ORG | Organization is invalid. |
ORG_INACTIVE | Organization is inactive. |
INSTANCE_NOT_FOUND | No WhatsApp instance found for the given brand number. |
SERVER_ERROR | Internal server error. Please try again later. |
MESSAGE_SEND_FAILED | Failed to send message. Please try again. |