Template message - document

Send WhatsApp Message API

POST http://api.koreroplatforms.com/v1/whatsapp/send

Headers

Request Body

{
    "timestamp": "2021-05-19T11:01:22.0Z",
    "status": "success",
    "request_id": "5ef1eda4-9cd1-42d2-bf3f-4661e4e6f7bc",
    "recipients": [
        {
            "to": "919699112120",
            "message_id": "WA162140228225012"
        }
    ]
}

Sample Request Body

{
    "from": "919311815518",
    "to": "919699112120",
    "type": "template",
    "template": {
        "template_id": "201077",
        "header": {
            "type": "document",
            "document": {
                "accessory_url": "https://www.dbs.com/in/iwov-resources/pdf/forms-and-legal/form-15g.pdf",
                "filename":"form_15",
                "caption":"kingson"
            }
        },
        "body": {
            "type": "text",
            "personalization": ["Nitin"]
        }
    }
}

Last updated