curl --request POST \
--url https://api.liderhub.com.br/v1/send/message \
--header 'Content-Type: application/json' \
--header 'x-company-key: <api-key>' \
--data '
{
"contactId": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"content": "Mensagem de exemplo",
"messageType": "conversation",
"url": "https://example.com/storage/bucket/example-file.jpg"
}
'{
"response": "Success",
"chat": "aaaaaaaa-bbbb-cccc-dddd-111111111111"
}Cria uma mensagem para um chat existente (contactId), sem criar novo chat. Regras: conversation exige content e ignora url; image/video/audio/document exigem url e tratam content como opcional.
curl --request POST \
--url https://api.liderhub.com.br/v1/send/message \
--header 'Content-Type: application/json' \
--header 'x-company-key: <api-key>' \
--data '
{
"contactId": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"content": "Mensagem de exemplo",
"messageType": "conversation",
"url": "https://example.com/storage/bucket/example-file.jpg"
}
'{
"response": "Success",
"chat": "aaaaaaaa-bbbb-cccc-dddd-111111111111"
}Chave de autenticação do workspace (gerada na plataforma Liderhub)
Chat/contact ID
"aaaaaaaa-bbbb-cccc-dddd-111111111111"
Message content. Required for conversation; optional for media types.
"Mensagem de exemplo"
Message type
conversation, image, video, audio, document "conversation"
URL for media messages (required for image, video, audio and document; ignored for conversation).
"https://example.com/storage/bucket/example-file.jpg"
Esta página foi útil?