Send file (document) to a contact or group
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the file |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: [email protected] for contacts or [email protected] for groups |
file | object | ✅ Yes | Object containing the file information |
file.content | string | ✅ Yes | File content encoded in base64 |
file.mimetype | string | ✅ Yes | File MIME type (example: application/pdf, application/vnd.ms-excel, application/zip) |
file.filename | string | ✅ Yes | File name with extension (example: document.pdf, spreadsheet.xlsx) |
200 - File sent successfully400 - Invalid parameters401 - Unauthorized session404 - Session not foundYour Wappfy API key (get it at dash.wappfy.com.br)
Chat ID (WhatsApp JID)
File (remote URL or base64 data)
Session name (instanceName)
"my-session"
Message ID you want to reply to
null
Caption/text that accompanies the file
The response is of type object.