Skip to main content
POST
/
api
/
v1
/
messages
curl --request POST \
--url http://localhost:{port}/api/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chatId": "[email protected]",
"content": "Hello, this is a text message!",
"options": {
"sendSeen": true,
"linkPreview": true
}
}
'
{
  "messageId": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

JWT token authentication

Body

application/json
chatId
string
required

ID of the chat to send the message to

content
required

Message content (text, media, or location) Text content of the message

options
object

Additional options for sending the message

Response

201 - application/json

Message sent successfully

messageId
string
required

ID of the created/sent message

success
boolean

Whether the operation was successful