curl --request GET \
--url https://api.liderhub.com.br/v1/message/{id} \
--header 'x-company-key: <api-key>'{
"messageId": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"contactId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "<string>",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": {},
"scheduledFor": {},
"mediaUrl": {},
"mediaCaption": {},
"audioText": {},
"errorDetails": {
"code": 131060,
"title": "Erro ao enviar mensagem",
"message": "tente novamente mais tarde"
}
}Retorna os dados de uma mensagem específica, incluindo detalhes de erro quando aplicável.
curl --request GET \
--url https://api.liderhub.com.br/v1/message/{id} \
--header 'x-company-key: <api-key>'{
"messageId": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"contactId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "<string>",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": {},
"scheduledFor": {},
"mediaUrl": {},
"mediaCaption": {},
"audioText": {},
"errorDetails": {
"code": 131060,
"title": "Erro ao enviar mensagem",
"message": "tente novamente mais tarde"
}
}Chave de autenticação do workspace (gerada na plataforma Liderhub)
UUID da mensagem
Mensagem retornada com sucesso
Message unique identifier
"f8d015c2-e21b-4b96-9455-238d2e5be137"
Contact/Chat ID
"c83ccc3a-1102-4386-a533-d7a2f042b121"
True if message was sent by us
true
Message creation date (ISO string)
Message content (text)
"Hello!"
Message type
"conversation"
Delivery status
"DELIVERED"
When message was sent (ISO string)
Scheduled send time (ISO string)
Media file URL
Media caption
Audio transcription text
Error details when deliveryStatus is ERRO
{
"code": 131060,
"title": "Erro ao enviar mensagem",
"message": "tente novamente mais tarde"
}Esta página foi útil?