Parameter name | Data type | Description | Possible Values |
WOZTELL_ADMIN* | String | Email address of your Woztell account. | |
WOZTELL_TOKEN* | String | Your Woztell account token. | abc-defgh-ijk-123 |
WOZTELL_NUMBER* | String | Woztell phone number validated by WhatsApp. | "+1-631-555-1002", "16315551002", "001(631)555-1002"or "1 631 555 1002" |
DATA | JSON | See the following documentation in Data parameters section. |
POST https://webservice.woztell.com/webhook/webhooks { "WOZTELL_ADMIN":"your-woztell-admin-email", "WOZTELL_TOKEN":"your-woztell-token", "WOZTELL_NUMBER":"your-woztell-number", "DATA": { "URL":"notifications-webhook-url", "LABEL":"your-label-text", "ENABLED":"boolean", "MESSAGES":"boolean", "ALERTS":"boolean" } }
Parameter name | Data type | Description | Possible Values |
URL* | String | The webhook URL to send messages | |
LABEL* | String | A label for you to keep track of what this webhooks is for | "Zoho flow notifications" |
ENABLED | Boolean | If the webhook is active. Default value is true | true or false |
MESSAGES | Boolean | If you want to receive text messages in webhook. Default value is true. | true or false |
ALERTS | Boolean | If you want to receive alerts of outbound messages. Default value is false. | true or false |
IMAGES | Boolean | If you want to receive incoming images. The default value is false | true or false |
{ "STATUS":"SUCCESS", "ID":"webhook-id" }
GET https://webservice.woztell.com/webhook/webhooks { "WOZTELL_ADMIN":"your-woztell-admin-email", "WOZTELL_TOKEN":"your-woztell-token", "WOZTELL_NUMBER":"your-woztell-number", "DATA": { "ID":"webhook-id" } }
Parameter name | Data type | Description | Possible Values |
ID | String | Webhook ID. If the ID is not specified, all webhooks will be returned. | "123123413" |
{ "STATUS":"SUCCESS", "DATA":[ { "ID":"webhook-id", "URL":"notifications-webhook-url", "LABEL":"your-label-text", "ENABLED":"boolean", "MESSAGES":"boolean", "ALERTS":"boolean"
}, {
"ID":"webhook-id","URL":"notifications-webhook-url", "LABEL":"your-label-text", "ENABLED":"boolean", "MESSAGES":"boolean", "ALERTS":"boolean"},... ] }
POST https://webservice.woztell.com/webhook/webhooks { "WOZTELL_ADMIN":"your-woztell-admin-email", "WOZTELL_TOKEN":"your-woztell-token", "WOZTELL_NUMBER":"your-woztell-number", "DATA": { "ID" : "webhook-id" "URL":"notifications-webhook-url", "LABEL":"your-label-text", "ENABLED":"boolean", "MESSAGES":"boolean", "ALERTS":"booleas" } }
Parameter name | Data type | Description | Possible values |
ID* | String | Webhook ID | "123123413" |
URL | String | Your Woztell account token. | |
LABEL | String | A label for you to keep track of what this webhooks is for | "Zoho Flow notification" |
ENABLED | Boolean | If the webhook is active | True or false |
{ "STATUS":"SUCCESS", "ID":"webhook-id" }
DELETE https://webservice.woztell.com/webhook/webhooks { "WOZTELL_ADMIN":"your-woztell-admin-email", "WOZTELL_TOKEN":"your-woztell-token", "WOZTELL_NUMBER":"your-woztell-number", "DATA": { "ID":"webhook-id" } }
Parameter name | Data type | Description | Possible values |
ID* | String | Webhook ID | "123123413" |
{ "STATUS":"SUCCESS", "ID":"webhook-id" }
STATUS | DESCRIPTION |
ERROR | METHOD NOT ALLOWED |
ERROR | INVALID AUTHORIZATION |
ERROR | INVALID JSON DATA |
ERROR | NO WHATSAPP ACTIVED |
ERROR | Other error details |
{
"STATUS":"ERROR",
"DESCRIPTION":"INVALID JSON DATA" }
{ "id":"WhatsApp-message-id", "from":"from-WhatsApp-phone", "to":"to-WhatsApp-phone", "type":"text", "timestamp":"timestamp-for-WhatsApp-message", "text":"text-WhatsApp-message" }
Parameter name | Data type | Description | Possible values |
ID | String | WhatsApp message ID | "ABGHVJNHZYFRPwIQtAkyZ4zvbaRCCwqa1ekDuQ" |
from | String | The issuer's WhatsApp number in international format. | "0019875632588" |
to | String | The receiver's WhatsApp number. | "0034675572588" |
type | String | Type of message. "text" is the only possible value. | "text" |
timestamp | Number | Time when the message was sent. Timestamp is in seconds | "1593554400" |
text | String | WhatsApp message text | "Hello world" |
{ "id":"WhatsApp-message-id", "from":"from-WhatsApp-phone", "to":"to-WhatsApp-phone", "type":"alert", "timestamp":"timestamp-for-WhatsApp-message", "status":"WhatsApp-message-status", "error":"WhatsApp-error-message" }
Parameter name | Data type | Description | Possible values |
ID | String | WhatsApp message ID | "ABGHVJNHZYFRPwIQtAkyZ4zvbaRCCwqa1ekDuQ" |
from | String | The issuer's WhatsApp number in international format. | "0019875632588" |
to | String | The receiver's WhatsApp number. | "0034675572588" |
type | String | Type of request. "alert" is the only possible value. | "alert" |
timestamp | Number | Time when the alert was received. Timestamp is in seconds. | "1593554400" |
status | String | WhatsApp message status. It indicates status from WhatsApp message. | Check status types in the next point |
error | string | Reason for the error indicated by WhatsApp. | https://developers.facebook.com/docs/whatsapp/api/errors |
"sent": the server received the message your company sent.
"delivered": the message your company sent was sent to the user's device.
"read": the user read the message your company sent. Read notifications are only available to users who have read receipt enabled. For users who do not have it enabled, you will only receive the delivery notification.
"failed": the message your company sent could not be sent.
Images
{ "id":"WhatsApp-message-id", "from":"from-WhatsApp-phone", "to":"to-WhatsApp-phone", "type":"image", "timestamp":"timestamp-for-WhatsApp-message", "base64":"base64-image-encode",
"mimeType":"mimeType-image","caption":"image-comment"}
Parameters:
Parameter name | Data type | Description | Possible Values |
ID | String | WhatsApp Message ID | "ABGHVJNHZYFRPwIQtAkyZ4zvbaRCCwqa1ekDuQ" |
from | String | Sender's WhatsApp number in international format | "0019875632588" |
to | String | The recipient's WhatsApp number | "0034675572588" |
type | String | Type of message. "image" is the only possible value. | "image" |
timestamp | Number | Time the message was sent. The time stamp is in seconds | "1593554400" |
base64 | String | Base64 image encoding | "......................" |
mimeType | String | Image format. Possible values: "image/png" or "image/jpeg" | "image/png" |
caption | String | Commentary accompanying the image. | "Esto es un comentario" |