Exportar conversas
Este endpoint retorna todas as conversas que atendem ao filtro informado, com itens de checklist opcionais.
/Conversation/exportEste endpoint retorna todas as conversas que atendem ao filtro informado, com itens de checklist opcionais.
Autenticação
Autenticação obrigatória. Envie sua chave de API de usuário no header X-API-Key.
Parâmetros
Esta operação não possui parâmetros de rota, query ou header.
Corpo da requisição
Content type: application/json · Schema: ConversationExportFilterDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
enableFilter | ConversationFilterEnable | Não | — | — |
liveAgentFilter | ConversationFilterEnable | Não | — | — |
callSuccessfulFilter | ConversationFilterEnable | Não | — | — |
messageContent | string | Não | — | aceita null |
userIds | array<integer · int32> | Não | — | aceita null |
botIds | array<integer · int32> | Não | — | aceita null |
tagIds | array<integer · int32> | Não | — | aceita null |
from | string | Não | — | aceita null |
createdAtStart | string · date-time | Não | — | — |
createdAtEnd | string · date-time | Não | — | — |
finishedAt | string · date-time | Não | — | aceita null |
conversationFilterQueue | ConversationFilterQueueStatus | Não | — | — |
integrationType | ConversationIntegrationType | Não | — | — |
conversationEvaluationStatus | ConversationEvaluationStatus | Não | — | — |
queueIds | array<integer · int32> | Não | — | aceita null |
conversationType | ConversationType | Não | — | — |
userId | integer · int32 | Não | — | — |
botId | integer · int32 | Não | — | — |
tagId | integer · int32 | Não | — | — |
id | integer · int32 | Não | — | — |
title | string | Não | — | aceita null |
finalScoreFrom | integer · int32 | Não | — | aceita null |
finalScoreTo | integer · int32 | Não | — | aceita null |
includeChecklistItemConversations | boolean | Não | — | — |
Exemplo de requisição
curl --request POST \
--url 'https://api.zild.ai/Conversation/export' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"enableFilter": 0,
"liveAgentFilter": 0,
"callSuccessfulFilter": 0,
"messageContent": "string",
"userIds": [
0
],
"botIds": [
0
],
"tagIds": [
0
],
"from": "string",
"createdAtStart": "2026-09-22T18:00:00Z",
"createdAtEnd": "2026-09-22T18:00:00Z",
"finishedAt": "2026-09-22T18:00:00Z",
"conversationFilterQueue": 0,
"integrationType": 0,
"conversationEvaluationStatus": 0,
"queueIds": [
0
],
"conversationType": 0,
"userId": 0,
"botId": 0,
"tagId": 0,
"id": 0,
"title": "string",
"finalScoreFrom": 0,
"finalScoreTo": 0,
"includeChecklistItemConversations": true
}'
Respostas
| Status | Descrição | Corpo da resposta |
|---|---|---|
200 | OK | application/json · array<ConversationExportDto> |
Exemplo de resposta (200):
[
{
"conversation": {
"id": 0,
"active": true,
"title": "string",
"liveAgent": true,
"from": "string",
"conversationId": "string",
"waterMark": "string",
"token": "string",
"createdAt": "2026-09-22T18:00:00Z",
"finishedAt": "2026-09-22T18:00:00Z",
"queuedAt": "2026-09-22T18:00:00Z",
"lastConversationUpdateTime": "2026-09-22T18:00:00Z",
"lastMessageContent": "string",
"contactId": 0,
"contactName": "string",
"userId": 0,
"userName": "string",
"counterpartUserId": 0,
"counterpartUserName": "string",
"botId": 0,
"botName": "string",
"fileUrl": "string",
"fileName": "string",
"tenantId": 0,
"conversationSummary": "string",
"messages": [
{
"id": 0,
"createdAt": "2026-09-22T18:00:00Z",
"from": "string",
"to": "string",
"content": "string",
"conversationId": 0,
"sentiment": "string",
"offset": "string",
"isNPS": true,
"contentSid": "string",
"messageType": 0,
"conversationTemplateId": 0,
"mediaUrl": "string",
"mediaFileName": "string",
"tenantId": 0,
"userId": 0,
"contentVariables": "string",
"messageSid": "string",
"messageStatus": 0,
"sent": true,
"delivered": true,
"read": true,
"errorCode": "string",
"errorMessage": "string",
"isReadByUser": true,
"documentId": 0
}
],
"score": 0,
"finalScore": 0,
"checklistId": 0,
"communicationChannel": 0,
"conversationIntegrationType": 0,
"duration": "string",
"highImportanceErrorDetected": true,
"tags": [
{
"id": 0,
"name": "string",
"active": true,
"createdAt": "2026-09-22T18:00:00Z",
"tenantId": 0
}
],
"conversationEvaluationStatus": 0,
"conversationEvaluationStatusMessage": "string",
"queueId": 0,
"queueName": "string",
"conversationEndedReasonId": 0,
"agentType": 0,
"conversationType": 0,
"applicationStatusId": 0,
"overallSentiment": "string",
"callStatus": "string",
"disconnectionReason": "string",
"callSuccessful": true,
"totalUnreadedMessagesByUser": 0,
"dynamicVariables": [
{
"id": 0,
"name": "string",
"value": "string",
"conversationId": 0
}
],
"dataCollection": [
{
"id": 0,
"name": "string",
"value": "string",
"conversationId": 0
}
],
"agentId": 0,
"loadingResponse": true
},
"checklistItemConversations": [
{
"id": 0,
"checklistItemId": 0,
"checklistItemName": "string",
"approved": true,
"feedback": "string",
"score": 0,
"notApplicable": true,
"checklistEvaluationId": 0,
"conversationId": 0,
"tenantId": 0,
"highImportance": true,
"maxScore": 0,
"groupName": "string",
"groupId": 0
}
]
}
]
Modelos de dados
AgentType
0 = ZildAssist; 1 = ZildFlow; 2 = ZildInsightChat; 3 = ZildChat; 4 = ZildDocs; 5 = ZildVoice; 6 = ZildCoach; 7 = ZildInsightChecklist
integer
ChecklistItemConversationDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
checklistItemId | integer · int32 | Não | — | — |
checklistItemName | string | Não | — | aceita null |
approved | boolean | Não | — | — |
feedback | string | Não | — | aceita null |
score | integer · int32 | Não | — | — |
notApplicable | boolean | Não | — | — |
checklistEvaluationId | integer · int32 | Não | — | aceita null |
conversationId | integer · int32 | Não | — | — |
tenantId | integer · int32 | Não | — | — |
highImportance | boolean | Não | — | — |
maxScore | integer · int32 | Não | — | — |
groupName | string | Não | — | aceita null |
groupId | integer · int32 | Não | — | aceita null |
CommunicationChannel
0 = Default; 1 = WhatsApp; 2 = Telefonia; 3 = Email; 4 = WebChat; 5 = InstagramDirectMessage; 6 = FacebookMessenger; 7 = MicrosoftTeams; 8 = ZildCoach
integer
ConversationDataCollectionDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
name | string | Não | — | aceita null |
value | string | Não | — | aceita null |
conversationId | integer · int32 | Não | — | — |
ConversationDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
active | boolean | Não | — | — |
title | string | Não | — | aceita null |
liveAgent | boolean | Não | — | — |
from | string | Não | — | aceita null |
conversationId | string | Não | — | aceita null |
waterMark | string | Não | — | aceita null |
token | string | Não | — | aceita null |
createdAt | string · date-time | Não | — | — |
finishedAt | string · date-time | Não | — | aceita null |
queuedAt | string · date-time | Não | — | aceita null |
lastConversationUpdateTime | string · date-time | Não | — | — |
lastMessageContent | string | Não | — | aceita null |
contactId | integer · int32 | Não | — | — |
contactName | string | Não | — | aceita null |
userId | integer · int32 | Não | — | — |
userName | string | Não | — | aceita null |
counterpartUserId | integer · int32 | Não | — | — |
counterpartUserName | string | Não | — | aceita null |
botId | integer · int32 | Não | — | — |
botName | string | Não | — | aceita null |
fileUrl | string | Não | — | aceita null |
fileName | string | Não | — | aceita null |
tenantId | integer · int32 | Não | — | — |
conversationSummary | string | Não | — | aceita null |
messages | array<MessageDto> | Não | — | aceita null |
score | integer · int32 | Não | — | — |
finalScore | integer · int32 | Não | — | — |
checklistId | integer · int32 | Não | — | — |
communicationChannel | CommunicationChannel | Não | — | — |
conversationIntegrationType | ConversationIntegrationType | Não | — | — |
duration | string · date-span | Não | — | aceita null |
highImportanceErrorDetected | boolean | Não | — | — |
tags | array<TagDto> | Não | — | aceita null |
conversationEvaluationStatus | ConversationEvaluationStatus | Não | — | — |
conversationEvaluationStatusMessage | string | Não | — | aceita null |
queueId | integer · int32 | Não | — | — |
queueName | string | Não | — | aceita null |
conversationEndedReasonId | integer · int32 | Não | — | — |
agentType | AgentType | Não | — | — |
conversationType | ConversationType | Não | — | — |
applicationStatusId | integer · int32 | Não | — | — |
overallSentiment | string | Não | — | aceita null |
callStatus | string | Não | — | aceita null |
disconnectionReason | string | Não | — | aceita null |
callSuccessful | boolean | Não | — | — |
totalUnreadedMessagesByUser | integer · int32 | Não | — | — |
dynamicVariables | array<ConversationDynamicVariableDto> | Não | — | aceita null |
dataCollection | array<ConversationDataCollectionDto> | Não | — | aceita null |
agentId | integer · int32 | Não | — | — |
loadingResponse | boolean | Não | — | — |
ConversationDynamicVariableDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
name | string | Não | — | aceita null |
value | string | Não | — | aceita null |
conversationId | integer · int32 | Não | — | — |
ConversationEvaluationStatus
0 = NotStarted; 1 = InProgress; 2 = Success; 3 = Error; 4 = Ineligible
integer
ConversationExportDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
conversation | ConversationDto | Não | — | — |
checklistItemConversations | array<ChecklistItemConversationDto> | Não | — | aceita null |
ConversationExportFilterDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
enableFilter | ConversationFilterEnable | Não | — | — |
liveAgentFilter | ConversationFilterEnable | Não | — | — |
callSuccessfulFilter | ConversationFilterEnable | Não | — | — |
messageContent | string | Não | — | aceita null |
userIds | array<integer · int32> | Não | — | aceita null |
botIds | array<integer · int32> | Não | — | aceita null |
tagIds | array<integer · int32> | Não | — | aceita null |
from | string | Não | — | aceita null |
createdAtStart | string · date-time | Não | — | — |
createdAtEnd | string · date-time | Não | — | — |
finishedAt | string · date-time | Não | — | aceita null |
conversationFilterQueue | ConversationFilterQueueStatus | Não | — | — |
integrationType | ConversationIntegrationType | Não | — | — |
conversationEvaluationStatus | ConversationEvaluationStatus | Não | — | — |
queueIds | array<integer · int32> | Não | — | aceita null |
conversationType | ConversationType | Não | — | — |
userId | integer · int32 | Não | — | — |
botId | integer · int32 | Não | — | — |
tagId | integer · int32 | Não | — | — |
id | integer · int32 | Não | — | — |
title | string | Não | — | aceita null |
finalScoreFrom | integer · int32 | Não | — | aceita null |
finalScoreTo | integer · int32 | Não | — | aceita null |
includeChecklistItemConversations | boolean | Não | — | — |
ConversationFilterEnable
0 = All; 1 = Enable; 2 = Disable
integer
ConversationFilterQueueStatus
0 = All; 1 = InQueueWithoutDefinedUser; 2 = InQueueWithDefinedUser
integer
ConversationIntegrationType
0 = None; 1 = Olus; 2 = TotalIP; 3 = MicrosoftTeams; 4 = Fluctus; 5 = OpaSuite; 6 = ChatMix; 7 = MKBOOT; 8 = FocusChat; 9 = Tallos; 10 = SZFortics; 11 = James; 12 = MatrixGo; 13 = Twilio; 14 = Native; 15 = Internal; 16 = RetellAI; 17 = ElevenLabs; 18 = Email; 19 = WhatsAppApi; 20 = WebChat
integer
ConversationType
0 = ZildAssist; 1 = ZildInsight; 2 = AiSdrReactive; 3 = AiSdrProactive; 4 = AiHrInterview; 5 = ZildCoach; 6 = ZildVoice; 99 = Agent
integer
MessageDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
createdAt | string · date-time | Não | — | — |
from | string | Não | — | aceita null |
to | string | Não | — | aceita null |
content | string | Não | — | aceita null |
conversationId | integer · int32 | Não | — | — |
sentiment | string | Não | — | aceita null |
offset | string | Não | — | aceita null |
isNPS | boolean | Não | — | — |
contentSid | string | Não | — | aceita null |
messageType | MessageType | Não | — | — |
conversationTemplateId | integer · int32 | Não | — | — |
mediaUrl | string | Não | — | aceita null |
mediaFileName | string | Não | — | aceita null |
tenantId | integer · int32 | Não | — | — |
userId | integer · int32 | Não | — | — |
contentVariables | string | Não | — | aceita null |
messageSid | string | Não | — | aceita null |
messageStatus | MessageStatus | Não | — | — |
sent | boolean | Não | — | — |
delivered | boolean | Não | — | — |
read | boolean | Não | — | — |
errorCode | string | Não | — | aceita null |
errorMessage | string | Não | — | aceita null |
isReadByUser | boolean | Não | — | — |
documentId | integer · int32 | Não | — | aceita null |
MessageStatus
0 = Queued; 1 = Sending; 2 = Sent; 3 = Delivered; 4 = Receiving; 5 = Received; 6 = Accepted; 7 = Scheduled; 8 = Read; 9 = Undelivered; 10 = Canceled; 11 = Failed
integer
MessageType
0 = Text; 1 = Image; 2 = File; 3 = Audio; 4 = Video; 5 = Internal; 6 = TemplateMarketing; 7 = TemplateUtility; 8 = Location; 9 = Contact
integer
TagDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
name | string | Não | — | aceita null |
active | boolean | Não | — | — |
createdAt | string · date-time | Não | — | — |
tenantId | integer · int32 | Não | — | — |