Request body

The request body contains a JSON object with an array of objects including phone_number, template_id, and variables.

  • fallbacks Array of objects. The ABBIE Platform may send an empty array that doesn’t include an object to confirm communication.
  • fallbacks.phone_number Mobile phone number in 10 digits e.g 0812345678.
  • fallbacks.ref Reference ID of the message sent by the client.
  • fallbacks.template_id ID of the template message sent by the client.
  • fallbacks.variables Set of variables sent by the client.

Request headers

  • Content-Type application/json
  • X-Abbie-Signature SHA256 hash of the request body using the secret key. See Signature for more information.

Response

The client server must return status code 200 after it receives the HTTP POST request sent from the ABBIE Platform.

Example of webhook object

{
  "fallbacks":[
    {
      "phone_number": "0811111111",
      "template_id": "1",
      "ref": "xxx",
      "variables": {
        "service_name": "ABBIE",
        "service_url": "https://abbie.biz"
      }
    },
    {
      "phone_number": "0899999999",
      "template_id": "2",
      "ref": "yyy",
      "variables": {
        "service_name": "ABBIE",
        "service_url": "https://abbie.biz"
      }
    }
  ]
}