Skip to main content
POST
/
api
/
v1
/
messages
/
{messageId}
/
reply
Reply to a message
curl --request POST \
  --url http://localhost:{port}/api/v1/messages/{messageId}/reply \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "media": {
    "type": "image",
    "url": "<string>",
    "mimetype": "<string>",
    "data": "<string>",
    "filename": "<string>",
    "caption": "<string>"
  },
  "options": {
    "mentions": [
      "<string>"
    ],
    "sendSeen": true,
    "linkPreview": true,
    "caption": "<string>"
  }
}
'
{
  "messageId": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

messageId
string
required

ID of the message to reply to

Body

application/json

Reply message content. Use this for replying to messages with text or media. Send either text or media, not both.

content
string

Text content

media
object

Media content. Use this for sending media messages like images, videos, documents, etc.

options
object

Additional options for the reply

Response

Reply sent successfully

messageId
string
required

ID of the created/sent message

success
boolean

Whether the operation was successful