Photos, PDFs & Documents
Send invoices, receipts, photos, and files to your contacts.
1 min read
Send a file from a link
Give Kenalko a public link. People see it as a normal file in the chat:
curl -sS -X POST "$BASE/v1/messages/send"
-H "Authorization: Bearer $KEY"
-H "Idempotency-Key: invoice-1042"
-H "Content-Type: application/json"
-d '{
"to": "peer_username",
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"filename": "sample-invoice.pdf",
"message": "Your August invoice"
}' Fields
| Field | Required | Description |
|---|---|---|
url | Yes | Public HTTPS URL Kenalko can fetch |
filename | Yes | Display name for the attachment |
message | No | Caption shown with the attachment |
message becomes the attachment caption.
When someone sends you a file
The notification has the name and id — not the file. Save it with the same API key. Details: Download a file.
Limits
- Don’t mix a file link with a button, list, or form in the same send.
- The link must be reachable over HTTPS.