Skip to main content
POST
/
message
/
send-message
Enviar mensagem
curl --request POST \
  --url https://api.multchats.com/v2/message/send-message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "integrationId": "<string>",
  "phoneNumber": "<string>",
  "chatId": "<string>",
  "message": {
    "type": "text",
    "text": {
      "body": "<string>"
    },
    "context": {
      "message_id": "<string>"
    },
    "media": {
      "link": "<string>",
      "caption": "<string>",
      "fileName": "<string>"
    },
    "reaction": {
      "message_id": "<string>",
      "emoji": "<string>"
    },
    "template": {
      "templateId": "<string>",
      "params": {}
    }
  }
}
'
{
  "success": true,
  "response": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
integrationId
string
required

ID da integração para enviar a mensagem

phoneNumber
string
required

Número de telefone do destinatário (obrigatório se chatId não fornecido)

Required string length: 1 - 255
chatId
string
required

ID do chat do destinatário (obrigatório se phoneNumber não fornecido)

Required string length: 1 - 255
message
object
required

Response

Mensagem enviada com sucesso

success
boolean
default:true

Indica se a operação foi bem-sucedida

response
object

Resposta da operação de envio