Skip to main content
POST
/
messages
/
document
Send document message
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>"
}

Authorizations

api-key
string
header
required

Body

application/json
from
string
required
to
string
required
document
object
required

Response

200 - application/json
id
string