Exportar conversaciones

Exportar conversaciones. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.

POST /Conversation/export

Exportar conversaciones. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.

Descripción de OpenAPI: Este endpoint devuelve todas las conversaciones que cumplen el filtro indicado, con elementos de lista de verificación opcionales.

Autenticación

Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.

Parámetros

Esta operación no tiene parámetros de ruta, consulta o encabezado.

Órgano solicitante

Tipo de contenido: application/json · Schema: ConversationExportFilterDto

PropiedadTipoObligatorioDescripciónConstraints
enableFilterConversationFilterEnableNo——
liveAgentFilterConversationFilterEnableNo——
callSuccessfulFilterConversationFilterEnableNo——
messageContentstringNo—nullable
userIdsarray<integer · int32>No—nullable
botIdsarray<integer · int32>No—nullable
tagIdsarray<integer · int32>No—nullable
fromstringNo—nullable
createdAtStartstring · date-timeNo——
createdAtEndstring · date-timeNo——
finishedAtstring · date-timeNo—nullable
conversationFilterQueueConversationFilterQueueStatusNo——
integrationTypeConversationIntegrationTypeNo——
conversationEvaluationStatusConversationEvaluationStatusNo——
queueIdsarray<integer · int32>No—nullable
conversationTypeConversationTypeNo——
userIdinteger · int32No——
botIdinteger · int32No——
tagIdinteger · int32No——
idinteger · int32No——
titlestringNo—nullable
finalScoreFrominteger · int32No—nullable
finalScoreTointeger · int32No—nullable
includeChecklistItemConversationsbooleanNo——

Ejemplo de solicitud

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
}'

Respuestas

EstadoDescripciónCuerpo de respuesta
200OK.e.e. kgmapplication/json · array<ConversationExportDto>

Respuesta de ejemplo (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",
      "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 datos

AgentType

0 = ZildAssist; 1 = ZildFlow; 2 = ZildInsightChat; 3 = ZildChat; 4 = ZildDocs; 5 = ZildVoice; 6 = ZildCoach; 7 = ZildInsightChecklist

integer

ChecklistItemConversationDto
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
checklistItemIdinteger · int32No——
checklistItemNamestringNo—nullable
approvedbooleanNo——
feedbackstringNo—nullable
scoreinteger · int32No——
notApplicablebooleanNo——
checklistEvaluationIdinteger · int32No—nullable
conversationIdinteger · int32No——
tenantIdinteger · int32No——
highImportancebooleanNo——
maxScoreinteger · int32No——
groupNamestringNo—nullable
groupIdinteger · int32No—nullable
CommunicationChannel

0 = Default; 1 = WhatsApp; 2 = Telefonia; 3 = Email; 4 = WebChat; 5 = InstagramDirectMessage; 6 = FacebookMessenger; 7 = MicrosoftTeams; 8 = ZildCoach

integer

ConversationDataCollectionDto
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
namestringNo—nullable
valuestringNo—nullable
conversationIdinteger · int32No——
ConversationDto
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
activebooleanNo——
titlestringNoTítulo de conversación Persisted. Los nuevos chats lo generan después de la primera interacción; las conversaciones más antiguas pueden no tener título. Use este campo para etiquetar las conversaciones en lugar de la propiedad removida lastMessageContent.nullable
liveAgentbooleanNo——
fromstringNo—nullable
conversationIdstringNo—nullable
waterMarkstringNo—nullable
tokenstringNo—nullable
createdAtstring · date-timeNo——
finishedAtstring · date-timeNo—nullable
queuedAtstring · date-timeNo—nullable
lastConversationUpdateTimestring · date-timeNo——
contactIdinteger · int32No——
contactNamestringNo—nullable
userIdinteger · int32No——
userNamestringNo—nullable
counterpartUserIdinteger · int32No——
counterpartUserNamestringNo—nullable
botIdinteger · int32No——
botNamestringNo—nullable
fileUrlstringNo—nullable
fileNamestringNo—nullable
tenantIdinteger · int32No——
conversationSummarystringNo—nullable
messagesarray<MessageDto>No—nullable
scoreinteger · int32No——
finalScoreinteger · int32No——
checklistIdinteger · int32No——
communicationChannelCommunicationChannelNo——
conversationIntegrationTypeConversationIntegrationTypeNo——
durationstring · date-spanNo—nullable
highImportanceErrorDetectedbooleanNo——
tagsarray<TagDto>No—nullable
conversationEvaluationStatusConversationEvaluationStatusNo——
conversationEvaluationStatusMessagestringNo—nullable
queueIdinteger · int32No——
queueNamestringNo—nullable
conversationEndedReasonIdinteger · int32No——
agentTypeAgentTypeNo——
conversationTypeConversationTypeNo——
applicationStatusIdinteger · int32No——
overallSentimentstringNo—nullable
callStatusstringNo—nullable
disconnectionReasonstringNo—nullable
callSuccessfulbooleanNo——
totalUnreadedMessagesByUserinteger · int32No——
dynamicVariablesarray<ConversationDynamicVariableDto>No—nullable
dataCollectionarray<ConversationDataCollectionDto>No—nullable
agentIdinteger · int32No——
loadingResponsebooleanNo——
ConversationDynamicVariableDto
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
namestringNo—nullable
valuestringNo—nullable
conversationIdinteger · int32No——
ConversationEvaluationStatus

0 = NotStarted; 1 = InProgress; 2 = Success; 3 = Error; 4 = Ineligible

integer

ConversationExportDto
PropiedadTipoObligatorioDescripciónConstraints
conversationConversationDtoNo——
checklistItemConversationsarray<ChecklistItemConversationDto>No—nullable
ConversationExportFilterDto
PropiedadTipoObligatorioDescripciónConstraints
enableFilterConversationFilterEnableNo——
liveAgentFilterConversationFilterEnableNo——
callSuccessfulFilterConversationFilterEnableNo——
messageContentstringNo—nullable
userIdsarray<integer · int32>No—nullable
botIdsarray<integer · int32>No—nullable
tagIdsarray<integer · int32>No—nullable
fromstringNo—nullable
createdAtStartstring · date-timeNo——
createdAtEndstring · date-timeNo——
finishedAtstring · date-timeNo—nullable
conversationFilterQueueConversationFilterQueueStatusNo——
integrationTypeConversationIntegrationTypeNo——
conversationEvaluationStatusConversationEvaluationStatusNo——
queueIdsarray<integer · int32>No—nullable
conversationTypeConversationTypeNo——
userIdinteger · int32No——
botIdinteger · int32No——
tagIdinteger · int32No——
idinteger · int32No——
titlestringNo—nullable
finalScoreFrominteger · int32No—nullable
finalScoreTointeger · int32No—nullable
includeChecklistItemConversationsbooleanNo——
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
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
createdAtstring · date-timeNo——
fromstringNo—nullable
tostringNo—nullable
contentstringNo—nullable
conversationIdinteger · int32No——
sentimentstringNo—nullable
offsetstringNo—nullable
isNPSbooleanNo——
contentSidstringNo—nullable
messageTypeMessageTypeNo——
conversationTemplateIdinteger · int32No——
mediaUrlstringNo—nullable
mediaFileNamestringNo—nullable
tenantIdinteger · int32No——
userIdinteger · int32No——
contentVariablesstringNo—nullable
messageSidstringNo—nullable
messageStatusMessageStatusNo——
sentbooleanNo——
deliveredbooleanNo——
readbooleanNo——
errorCodestringNo—nullable
errorMessagestringNo—nullable
isReadByUserbooleanNo——
documentIdinteger · int32No—nullable
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
PropiedadTipoObligatorioDescripciónConstraints
idinteger · int32No——
namestringNo—nullable
activebooleanNo——
createdAtstring · date-timeNo——
tenantIdinteger · int32No——