cURL
curl --request POST \ --url https://messenger-public-api.cogfy.com/messages/document \ --header 'Content-Type: application/json' \ --header 'api-key: <api-key>' \ --data '{ "from": "<string>", "to": "<string>", "document": { "id": "<string>", "link": "<string>", "caption": "<string>", "filename": "<string>" } }'
{ "id": "<string>" }
Sends a document message to a phone number. Requires that the recipient has messaged the business in the last 24 hours.
Show child attributes