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"
}Authorizations
Path Parameters
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
application/json
Response
Message sent successfully
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$