Send Template - With Header Document

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

media_name String required

phone_number_id String required

Sample Request Body

{
    "phone_number": "+222 724 459497",
    "template": "1160334048184703",
    "media_id": "1392252248269688",
    "media_file_path": "storage/media/PayPal Activities.pdf",
    "media_type": "DOCUMENT",
    "media_name": "PayPal Activities.pdf",
    "phone_number_id": "106069605674953"
}

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

Sample Response

{
}