At a glance
| Item | Detail |
|---|---|
type | document |
| Common formats | PDF, DOC/DOCX, XLS/XLSX, PPT/PPTX, plain text |
| Maximum file size | 100 MB |
| Media field | content.media_url (aliases: media, url) |
| File name | Recommended: content.file_name (alias: fileName) |
| Caption | Optional content.caption |
| Channel support | Official and unofficial |
Request body
| Field | Required | Description |
|---|---|---|
channel_id | Yes | Sender channel ID |
to | Yes | Recipient phone number |
type | Yes | document |
content.media_url | Yes | HTTPS URL to the document |
content.file_name | No | Display name in the chat (recommended) |
content.caption | No | Optional caption |
Example
Endpoint
POST https://api.wazapin.com/v1/messages
Authenticate with X-Api-Key. See Authentication.
Response
On success, the API returns201 Created with a message record (status often starts as queued).
201 Created