The Whatsable Notifier API allows users to send messages via a POST request. This documentation covers the specifics of making a request to the API, including the required headers, payload structure, and understanding the API response.
POST https://api.notifier.whatsable.app/send
To use the API, an authorization token is required. This token must be included in the request headers.
Content-Type: application/json
- Indicates the media type of the resource.Authorization: Bearer YOUR_TOKEN_HERE
- Authentication token for the API.The body of the request should be a JSON object with the following fields:
phone
(string): The phone number to which the message will be sent. It should be in international format.text
(string): The text message to be sent.attachment
(string, optional): A public URL to an attachment to be sent with the message.filename
(string, optional): The name to be used for the attachment file.Example:
{
"phone": "phone_number",
"text": "text",
"attachment": "attachment as public url",
"filename": ""
}
The response from the API will be in JSON format. It typically includes a message
and details
field.