API Reference
cURL
text
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 }
Send a new message to a contact or group. Supports text messages, media (image, video, audio, document), and location.
JWT token authentication
ID of the chat to send the message to
Message content (text, media, or location) Text content of the message
Additional options for sending the message
Show child attributes
Message sent successfully
ID of the created/sent message
Whether the operation was successful