Pular para o conteúdo principal
POST
/
v1
/
rooms
/
{roomId}
/
message
curl --request POST \
  --url https://api.jelou.ai/v1/rooms/{roomId}/message \
  --header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
  --header 'Content-Type: application/json' \
  --data '{
    "senderId": "agent-12345",
    "messages": [
      {
        "type": "text",
        "text": "Hello 👋, this is a test message."
      }
    ]
  }'
{
  "message": "<string>",
  "statusMessage": "<string>",
  "status": 123,
  "error": {
    "code": "<string>",
    "key": "<string>",
    "description": "<string>",
    "developerMessages": {},
    "clientMessages": {}
  },
  "validationError": {}
}
curl --request POST \
  --url https://api.jelou.ai/v1/rooms/{roomId}/message \
  --header 'Authorization: Basic <Base64Encoded clientId:clientSecret>' \
  --header 'Content-Type: application/json' \
  --data '{
    "senderId": "agent-12345",
    "messages": [
      {
        "type": "text",
        "text": "Hello 👋, this is a test message."
      }
    ]
  }'
Este endpoint só entregará mensagens a usuários que tenham escrito anteriormente para o bot nas últimas 24 horas, de acordo com as políticas do WhatsApp.

Autorizações

Authorization
string
header
obrigatório

Basic authentication using Base64 encoded clientId:clientSecret

Parâmetros de caminho

roomId
string
obrigatório

Corpo

application/json
senderId
string
obrigatório
messages
object[]
obrigatório

Resposta

Message sent