Sends PDFs, Word docs, or other files. Uses same endpoint as media but with document payload. Supports filename and caption.
/api/v1/contact/:phone/send-media-messageNote
Recipient phone number with country code
Publicly accessible document URL
Caption text for the document
Display filename shown to recipient
Whether request succeeded
Platform message ID (wamid)
Meta message ID
curl -X POST "https://app.chatofy.in/api/v1/contact/+917838343515/send-media-message" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"document":{"link":"https://example.com/invoice.pdf","caption":"Your invoice","filename":"invoice.pdf"}}'Was this endpoint guide helpful?