Document

Sending a document message

POST https://api.qikchat.in/v1/messages

To send a document, use the request URL and the following body parameters.

accepted formats: Any valid MIME-type.

Request Example

{

"to_contact": "+918080808080",

"type": "document",

"document": {

"link": "http(s)://the-url",

"caption": "your-document-caption",

"filename": "your-document-filename"

}

}

Request Body

Name
Type
Description

to_contact*

string

customer whatsapp number you want to send message

type*

string

document

document*

object

contains link field

A successful response includes a data object with an ID for the message sent.

{
    "status": true,
    "message": "Messages queued successfully",
    "data": [
        {
            "id": "52JH6WmuSruAVyXvBBYemd0Ia",
            "channel": "whatsapp",
            "from": "919099999916",
            "recipient": "+918080808080",
            "created_at": "2023-02-19T12:52:25.222Z",
            "status": "queued"
        }
    ]
}

Last updated

Was this helpful?