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 '{
  "content": "<string>",
  "type": "text",
  "media": {
    "name": "<string>",
    "mimeType": "<string>",
    "base64": "<string>"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Path Parameters

conversationId
string
required

Body

application/json
type
enum<string>
required
Available options:
text,
image,
document
content
string
media
object

Response

id
string<uuid>