API Documentation: Send Message

Endpoint
Method
Headers
HeaderRequiredExample
AuthorizationYesBearer <API_KEY>
Content-TypeYesapplication/json
Body Parameters
ParameterTypeRequiredDescription
toPhoneNumberstringYesRecipient phone number (with country code)
brandNumberstringYesSender brand phone number (with country code)
textBodystringNoMessage text body (required if type=text)
typestringNoMessage type (default: text, options: text, media)
mediaUrlstringNoURL for media (required if type=media)
captionstringNoCaption for media message
Example Request (cURL)
curl -L -X POST 'https://www.sendiee.com/api/v1/message/send' \
        -H 'Authorization: Bearer <API_KEY>'
Common Errors
Error CodeDescription
RATE_LIMIT_EXCEEDEDToo many requests. Please slow down.
INVALID_API_KEYAPI key is invalid.
API_KEY_MISSINGAPI key is missing in Authorization header.
METHOD_NOT_ALLOWEDHTTP method not allowed.
MISSING_FIELDSRequired fields are missing.
MISSING_TEXT_BODYtextBody is required for type=text.
MISSING_MEDIA_URLmediaUrl is required for type=media.
INVALID_ORGOrganization is invalid.
ORG_INACTIVEOrganization is inactive.
INSTANCE_NOT_FOUNDNo WhatsApp instance found for the given brand number.
SERVER_ERRORInternal server error. Please try again later.
MESSAGE_SEND_FAILEDFailed to send message. Please try again.