curl --request GET \
--url https://api.duix.ai/duix-openapi-v2/sdk/v2/getConversationById \
--header 'token: <api-key>'{
"success": true,
"code": "0",
"message": "SUCCESS",
"msg": "SUCCESS",
"data": {
"id": "108",
"conversationName": "Unnamed-18:04",
"language": "zh",
"corpId": "1003645",
"userId": "3959",
"conversationConfigDto": null,
"maxConversation": 2,
"dataModelIsUsed": 1,
"knowledgeIsUsed": 1,
"fileIsUsed": 0,
"thirdIsUsed": 0,
"isFreedom": 0,
"asrProvider": null,
"conversationInfoDto": {
"id": 109,
"name": "1",
"nickName": "",
"gender": 1,
"age": 0,
"height": 0,
"weight": 0,
"characters": "",
"backStory": ""
},
"detailDto": {
"id": 95,
"conversationId": "108",
"proportion": "16:9",
"terminalType": 0,
"modelId": "321486924406853",
"modelIdType": 0,
"imageId": null,
"sceneId": null,
"modelName": "Model name",
"sceneType": 0,
"background": 1,
"backgroundDto": {
"id": 1,
"backgroundCode": "1591003727513522176",
"backgroundName": "zuoyi.jpg",
"backgroundUrl": "/video-server/jpg/1592809647136509954.jpg",
"fileType": 0,
"proportion": "16:9",
"userId": null
},
"modelConfig": null,
"ttsId": "15",
"ttsName": "guina",
"ttsConfig": null,
"ttsUrl": "",
"ttsVolume": 0,
"ttsSpeaker": "zhifeng_emo",
"ttsSpeedRate": 0,
"ttsPitch": 0,
"ttsSource": 20,
"samplePictureUrl": "/model/2023/02/06/c5348a17fac75feb0152a0c599b7af87.png",
"videoWidth": 1920,
"videoHeight": 1920,
"humanProportion": "9:16",
"humanWidth": 540,
"humanHeight": 960,
"humanX": 690,
"humanY": 120,
"localModelInfo": null
},
"knowledgeDtoList": [],
"kbConversationDto": null,
"modelDtoList": [
{
"id": 487,
"conversationId": "108",
"largeModelType": 0,
"modelCode": 0,
"largeName": "chatbot_law",
"modelId": "1",
"prompt": "Task: Your name is Zhang San...",
"botUrl": ""
}
],
"thirdDto": null,
"scriptDtoList": [
{
"id": 2728,
"conversationId": "108",
"scriptType": 0,
"scriptContent": "Els silvrants",
"ttsContent": null,
"emotion": "0"
}
]
}
}Query conversation details by providing the conversation ID.
curl --request GET \
--url https://api.duix.ai/duix-openapi-v2/sdk/v2/getConversationById \
--header 'token: <api-key>'{
"success": true,
"code": "0",
"message": "SUCCESS",
"msg": "SUCCESS",
"data": {
"id": "108",
"conversationName": "Unnamed-18:04",
"language": "zh",
"corpId": "1003645",
"userId": "3959",
"conversationConfigDto": null,
"maxConversation": 2,
"dataModelIsUsed": 1,
"knowledgeIsUsed": 1,
"fileIsUsed": 0,
"thirdIsUsed": 0,
"isFreedom": 0,
"asrProvider": null,
"conversationInfoDto": {
"id": 109,
"name": "1",
"nickName": "",
"gender": 1,
"age": 0,
"height": 0,
"weight": 0,
"characters": "",
"backStory": ""
},
"detailDto": {
"id": 95,
"conversationId": "108",
"proportion": "16:9",
"terminalType": 0,
"modelId": "321486924406853",
"modelIdType": 0,
"imageId": null,
"sceneId": null,
"modelName": "Model name",
"sceneType": 0,
"background": 1,
"backgroundDto": {
"id": 1,
"backgroundCode": "1591003727513522176",
"backgroundName": "zuoyi.jpg",
"backgroundUrl": "/video-server/jpg/1592809647136509954.jpg",
"fileType": 0,
"proportion": "16:9",
"userId": null
},
"modelConfig": null,
"ttsId": "15",
"ttsName": "guina",
"ttsConfig": null,
"ttsUrl": "",
"ttsVolume": 0,
"ttsSpeaker": "zhifeng_emo",
"ttsSpeedRate": 0,
"ttsPitch": 0,
"ttsSource": 20,
"samplePictureUrl": "/model/2023/02/06/c5348a17fac75feb0152a0c599b7af87.png",
"videoWidth": 1920,
"videoHeight": 1920,
"humanProportion": "9:16",
"humanWidth": 540,
"humanHeight": 960,
"humanX": 690,
"humanY": 120,
"localModelInfo": null
},
"knowledgeDtoList": [],
"kbConversationDto": null,
"modelDtoList": [
{
"id": 487,
"conversationId": "108",
"largeModelType": 0,
"modelCode": 0,
"largeName": "chatbot_law",
"modelId": "1",
"prompt": "Task: Your name is Zhang San...",
"botUrl": ""
}
],
"thirdDto": null,
"scriptDtoList": [
{
"id": 2728,
"conversationId": "108",
"scriptType": 0,
"scriptContent": "Els silvrants",
"ttsContent": null,
"emotion": "0"
}
]
}
}Unique conversation ID.
Successfully retrieved conversation details
Response code
Text message returned by the API
Additional message field
Request success flag
Main conversation data
Show child attributes
Conversation ID
Conversation name
Conversation language
Corporate ID
User ID
Conversation configuration
Maximum concurrent conversations
Whether data model is used
Whether knowledge base is used
Whether file is used
Whether third-party integration is used
Whether in freedom mode
ASR provider
Conversation information details
Show child attributes
Info ID
Name
Nickname
Gender (1=Male, 2=Female)
Age
Height
Weight
Character traits
Background story
Conversation resource details (includes model, background, and TTS configuration)
Show child attributes
Detail ID
Conversation ID
Video proportion
Terminal type
Model ID
Model type (0 = Cloud Digital Human, 1 = Local Digital Human)
Image ID
Scene ID
Model name
Scene type
Background type
Background resource details
Show child attributes
Background ID
Background code
Background name
Background image or video URL
File type
Background proportion
User ID
Model configuration
TTS ID
TTS name
TTS configuration
TTS URL
TTS volume
TTS speaker ID
TTS speed rate
TTS pitch
TTS source
Sample picture URL
Video width
Video height
Human proportion
Human width
Human height
Human X coordinate
Human Y coordinate
Local digital human information
Knowledge base list
Knowledge base conversation
Model data transfer object list
Show child attributes
Model DTO ID
Conversation ID
Large model type
Model code
Large model name
Model ID
Prompt template for the model
Bot URL
Third-party integration data
Predefined dialog scripts
Show child attributes
Script ID
Conversation ID
Script type (0: Wake-up Word, 1: Opening Line, 2: Waiting Phrase, 3: Unknown Question, 4: Farewell, 5: Interruption, 6: Interruption Sentence, 7: Guiding Phrase)
Script text
Script audio file URL
Emotion level