Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Websocket
Send Message
Send Plain Text
Send plain text message
POST
/
message
/
sendText
/
{instance}
Copy
curl --request POST \
--url https://api.l2msg.com/whatsapp/message/sendText/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"text": "<string>",
"delay": 123,
"linkPreview": true,
"mentionsEveryOne": true,
"mentioned": [
"{{remoteJID}}"
],
"quoted": {
"key": {
"id": "<string>"
},
"message": {
"conversation": "<string>"
}
}
}'
Copy
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE594145F4C59B4"
},
"message": {
"extendedTextMessage": {
"text": "Olá!"
}
},
"messageTimestamp": "1717689097",
"status": "PENDING"
}
Authorizations
Your authorization key header
Path Parameters
Name of the instance
Body
application/json
Response
201 - application/json
Created
The response is of type object
.
Copy
curl --request POST \
--url https://api.l2msg.com/whatsapp/message/sendText/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"text": "<string>",
"delay": 123,
"linkPreview": true,
"mentionsEveryOne": true,
"mentioned": [
"{{remoteJID}}"
],
"quoted": {
"key": {
"id": "<string>"
},
"message": {
"conversation": "<string>"
}
}
}'
Copy
{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE594145F4C59B4"
},
"message": {
"extendedTextMessage": {
"text": "Olá!"
}
},
"messageTimestamp": "1717689097",
"status": "PENDING"
}
Assistant
Responses are generated using AI and may contain mistakes.