Send Template - With Header Image

Endpoint

https://app.wabais.com/api/messages

Method

POST

Authentication

Bearer Token

Body Type

json

Parameters

phone_number String required

template String required

media_id String required

media_file_path String required

media_type String required

phone_number_id String required

Sample Request Body

{
    "phone_number": "+254 724 459497",
    "template": "499185865664237",
    "media_id": "4066612766897446",
    "media_file_path": "storage/media/Screenshot from 2023-01-13 15-38-11.png",
    "media_type": "IMAGE",
    "phone_number_id": "106069605674953"
}

The 'phone_number_id is the 'phone_number_id from Step One - Fetch Phone Numbers

Sample Response

{
}