curl --request POST \
--url https://messenger-public-api.cogfy.com/conversations/{conversationId}/messages \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"type": "text",
"content": "Hello!"
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Conversations
Send a message to a conversation
Sends a text, image, or document message to the conversation recipient.
For text, content is required. For image and document, media is required and the file is uploaded to WhatsApp before sending.
This endpoint requires an open service window for the conversation.
POST
/
conversations
/
{conversationId}
/
messages
curl --request POST \
--url https://messenger-public-api.cogfy.com/conversations/{conversationId}/messages \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"type": "text",
"content": "Hello!"
}
'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Path Parameters
Body
application/json