Skip to main content
POST
Enviar mensagem

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.