Skip to content

Photos, PDFs & Documents

Send invoices, receipts, photos, and files to your contacts.

1 min read

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

FieldRequiredDescription
urlYesPublic HTTPS URL Kenalko can fetch
filenameYesDisplay name for the attachment
messageNoCaption 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.