1. Enviar Mensagens
Titov
  • Titov
    • Enviar Mensagens
      • Enviar template HSM
        POST
      • Enviar mensagem livre
        POST
      • Enviar mídia
        POST
    • Contatos
      • Listar contatos
      • Listar conversa do contato
      • Criar contato
      • Atualizar contato
      • Excluir contato
  1. Enviar Mensagens

Enviar mensagem livre

POST
/api/send/message
Envia uma mensagem de texto livre para um contato do WhatsApp. Se o contato não existir, ele será criado automaticamente.

Requisição

Authorization
Forneça seu token bearer no cabeçalho
Authorization
ao fazer requisições para recursos protegidos.
Exemplo:
Authorization: Bearer ********************
Parâmetros Bodyapplication/jsonNecessário

Exemplo
{
    "phone": "+5511999990000",
    "message": "Olá! Como posso ajudar?",
    "from": "5511988887777",
    "type": "text",
    "first_name": "João",
    "last_name": "Silva",
    "header": "Confirmação",
    "footer": "Responda abaixo",
    "buttons": [
        {
            "type": "reply",
            "reply": {
                "id": "sim",
                "title": "Sim"
            }
        },
        {
            "type": "reply",
            "reply": {
                "id": "nao",
                "title": "Não"
            }
        }
    ]
}

Exemplos de Requisição

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://titov.com.br/api/send/message' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "phone": "+5511999990000",
    "message": "Olá! Como posso ajudar?",
    "from": "5511988887777",
    "type": "text",
    "first_name": "João",
    "last_name": "Silva",
    "header": "Confirmação",
    "footer": "Responda abaixo",
    "buttons": [
        {
            "type": "reply",
            "reply": {
                "id": "sim",
                "title": "Sim"
            }
        },
        {
            "type": "reply",
            "reply": {
                "id": "nao",
                "title": "Não"
            }
        }
    ]
}'

Respostas

🟢200Success
application/json
Mensagem enviada com sucesso
Body

Exemplo
{
    "statusCode": 200,
    "data": {
        "uuid": "abc123",
        "type": "outbound",
        "status": "delivered",
        "wam_id": "wamid.xxx"
    }
}
🟠400
Modificado em 2026-03-09 16:16:13
Página anterior
Enviar template HSM
Próxima página
Enviar mídia
Built with