Skip to main content
POST
/
conversations
/
{conversationId}
/
messages
Send a message to a conversation
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": "<string>",
  "media": {
    "name": "<string>",
    "mimeType": "<string>",
    "base64": "<string>"
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Path Parameters

conversationId
string
required

Conversation ID

Body

application/json
type
enum<string>
required

Message type

Available options:
text,
image,
document
content
string

Message content. Required for text messages, optional for media messages.

media
object

Response

Message sent successfully

id
string<uuid>

Message ID