Skip to main content
POST
/
enviarMensagem
Enviar mensagem
curl --request POST \
  --url https://api-vendas.taximachine.com.br/api/integracao/enviarMensagem \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "tipo_chat": "G",
  "destinatario_id": 1,
  "mensagem": "Bom dia, está indo ao local de partida?"
}
'
{
  "success": true,
  "response": {
    "status": "OK",
    "mensagem": "Mensagem enviada com sucesso."
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

api-key
string
header
required

Obrigatório. Sua chave API.

Body

application/json
tipo_chat
enum<string>
required

Obrigatório. Especifica o tipo de conversa. Valores aceitos: E (empresa ↔ central), C (central → empresa), G (central → condutores) e P (central ↔ condutores).

Available options:
E,
C,
G,
P
destinatario_id
integer
required

Obrigatório para os tipos E e P. Ignorado para os tipos C e G. Se tipo_chat for E, informe o ID da empresa. Se tipo_chat for P, informe o ID do condutor.

mensagem
string
required

Obrigatório. Mensagem que você deseja enviar, com no máximo 10000 caracteres.

Maximum string length: 10000

Response

200 - application/json

Sucesso

The response is of type object.