Server address: https://txapi-usa.lbai.ai
✅1. The stock analysis interface
Interface description
Look up the closing price of the stock and analyze the reasons for the rise and fall. Returns the last closing price of the previous trading day.
Interface address
POST /ai-api/v1/stock/info
Request Head
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)Or Bearer cpn-xxxxxxxxxxxxxxxxxxxxxx (enterprise token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/stock/info \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"stocks_name": "Ping An Bank",
"stocks_code":"000001",
"maximum_value": "0.05",
"minimum_value": "0.02"
}'
Returns results
{
"data": {
"answer": "### Stocks: Ping An Banknn**Overview of Change Data:**n- **Stock Change of the Day:** 1.00%n- **Industry Change of the Day:** 0.43%n- **Shanghai Composite Index Change of the Day:** -0.44%nn### News Analysisnn### 1. **The impact of Fed rate cut expectations**nThe news mentions a possible Fed rate cut, which is usually bad for the banking sector. A rate cut will compress banks' net interest margins, leading to lower bank earnings. However, Ping An Bank is up 1.00% today, while the industry as a whole is up 0.43%. This suggests that despite the expectation of a rate cut, the impact may no be fully felt in the near term, or that the market may react more strongly to other positive news. nn#### 2. **Science and Technology Innovation Loans**nThe news mentioned that the accelerated implementation of science and technology innovation loans has completed the first batch of launches, which is good news for commercial banks participating in these projects such as Ping An Bank, as it will increase loan business and profit opportunities. This may be one reason for Ping An Bank's gains today. Technology and innovation loans no only bring business growth to banks, but also may enhance the overall market image and customer stickiness of banks. nn#### 3. **Market Liquidity Improvement**nReferring to the first anniversary of the launch of the "Dual Counter Model" for Hong Kong stocks, liquidity has improved, which is good news. Increased liquidity in international markets has helped to boost bank-related revenues, especially for cross-border business. This is a positive signal for Ping An Bank as a bank with close ties with the international capital market. nn#### 4. **Increased activity in the real estate market**nThe increase in market activity brought about by the new real estate market policy is also good news, especially for banks with large real estate loan business. Ping An Bank is more likely to benefit from this, which could also contribute to today's share price rally.",
"model": "gpt-4o",
"crystalStone":100
"requestId": "ce25fa0c316f4f39a7f41e80e8663510"
},
"errorCode": 0,
"line": null,
"message": "succeed",
"success": true
}
✅2. list of conversations
Description of the interface
Conversation list, including AI partners, create your own Mini Programs and official Mini Programs.
Interface address
GET /ai-api/v1/chat/list
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/chta/list?session_type= \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": [{
"session_id":"999992",
"command_session_id":"",
"nick_name":"jack",
"header_url":"https://xxx.com/xx.jpg"
"session_type":1
},{
"session_id":"99999",
"command_session_id":"22222",
"nick_name":"jack2",
"header_url":"https://xxx.com/xx.jpg"
"session_type":3
}],
"errorCode": 0,
"message": "succeed",
"success": true
}
3. AI Partner
3.1 The user talks to the AI partner
Description of the interface
The user talks to the agent. Send texts, documents and pictures. Default with memory, context. Only the current round of messages will be sent. If the interface is slow, it is recommended to adjust the timeout period to 2 minutes.
Note: The file image uploaded during the conversation or the AI-generated file image will expire after 3 months from the URL of the Chinese image in the dialog box. Cloud space for long-term preservation.
Interface address
POST /ai-api/v1/chat/completions
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"session_id":"1681207028381696108"
"user_question": {
"type": 0,
"content": "Why do the stars twinkle and twinkle."
},
"mark_type": 2,
"file_attachs": [
{"file_id":"1753399182701993984","url":"http://xxx.xx.png","file_type":"1"},
{"file_id":"1753399182701993985","url":"http://xxx.xx.png","file_type":"2"}
]
}'
Reply parameters
Example of a reponse
{
"data": {
"id": "123456789123",
"create_time": "2024-01-01 01:11:11",
"message": {
"text": "After analysis, the company's operating conditions are excellent.......",
"text_type": null,
"file_attachs": [
{
"url": "https:// xxx.xx.xx/xx/xx.pdf",
"size": "244KB",
"file_id": "888888",
"title": "2020 Corporate Planning Report",
"file_type": 1,
"file_id": "1753399195393957888",
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.jpg",
"size": null,
"file_id": "8888882",
"title": "Screenshot 1",
"file_type": 2,
"file_id": "1753399195393957889",
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.mp3",
"file_id": "1753399195393957890",
"file_type": 3,
"url_invalid": 0
}
]
}
},
"errorCode": 0,
"message": "succeed",
"success": true
}
3.2 Text-to-speech
Description of the interface
Convert text to speech. Support Chinese and English. It can be used in scenarios where the user requests a return language. This interface needs to be polled. Text-to-speech takes time. According to the length of the text, it takes time no to use it, and it is no converted well and returns empty.
Interface address
POST /ai-api/v1/tts
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"message":"Hello, I am little beauty AI, how can I help you."
}'
Reply parameters
Example of a reponse
{
"data": {
"url":"https://xxx.com/xx.mp3"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅3.3 Query history chats
Description of the interface
Query historical chat history. Contains AI partners, applets.
Interface address
GET /ai-api/v1/chat/msgList
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/chat/msgList?session_id=88888&page_size=10&page_num=2 \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
Reply parameters
Example of a reponse
{
"data": {
"isMore": 0,
"items": [
{
"id": "1753398356134699008",
"header_url": "https://xxx.com/x.jpg",
"message": {
"text": "After analysis, the company's operating conditions are excellent.......",
"text_type": null,
"file_attachs": [
{
"url": "https:// xxx.xx.xx/xx/xx.pdf",
"size": "244KB",
"file_id": "888888",
"title": "2020 Corporate Planning Report",
"file_type": 1,
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.jpg",
"size": null,
"file_id": "8888882",
"title": "Screenshot 1",
"file_type": 2,
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.mp3",
"file_type": 3,
"url_invalid": 0
}
]
},
"create_time": "2024-01-01 01:11:11",
"user_type": "human"
},
{
"id": "1753398356134699009",
"header_url": "https://xxx.com/x.jpg",
"message": {
"text": "After analysis, the company's operating conditions are excellent.......",
"text_type": null,
"file_attachs": [
{
"url": "https:// xxx.xx.xx/xx/xx.pdf",
"size": "244KB",
"file_id": "888888",
"title": "2020 Corporate Planning Report",
"file_type": 1,
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.jpg",
"size": null,
"file_id": "8888882",
"title": null,
"file_type": 2,
"url_invalid": 0
}
]
},
"create_time": "2024-01-01 01:11:11",
"user_type": "AI"
}
],
"pageNum": 1,
"pageSize": 10,
"startIndex": 0,
"totalCount": 2,
"totalPage": 1
},
"errorCode": 0,
"message": "succeed",
"success": true
}
4. Personalized Token Generation
AI performs multiple rounds of diffusion and in-depth mining of the input text, which plays a role in drawing inferences from one case to another, so as to improve the ability of AI partners.
✅4.1 Upload File for Personalized Token Generation
Description of the interface
Add File for Personalized Token Generation.
Interface address
POST /ai-api/v1/aiTrainingGround/add
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/form-data
Request parameters
Sample request
curl /ai-api/v1/aiTrainingGround/add \
-H "Authorization: xxxxx" \
-F 'multipartFile=@/path/to/your/file'
Reply parameters
Example of a reponse
{
"data": null,
"errorCode": 0,
"message": "succeed",
"success": true
}
✅4.2 List of Personalized Token Generation
Description of the interface
This list displays the status of personalized token generation for text.
Interface address
GET /ai-api/v1/aiTrainingGround/list
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/aiTrainingGround/list?pageSize=10&pageNum=1 \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"isMore": 0,
"items": [
{
"fileId":"33333333",
"fileName":"Encyclopedia of Science.doc",
"beBeingTrainedTime": "2024-01-01 01:11:11",
"trainedStatus": 1
},
{
"fileId":"4444444",
"fileName":"Encyclopedia of Science.doc",
"beBeingTrainedTime": "2024-01-01 01:11:11",
"trainedStatus": 1
}
],
"pageNum": 1,
"pageSize": 10,
"startIndex": 0,
"totalCount": 2,
"totalPage": 1
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅4.3 Restart Tasks with Failed Personalized Token Generation
Description of the interface Restart Failed Tasks for Personalized Token Generation. Can only be triggered when in a failed generation state.
Interface address
GET /ai-api/v1/aiTrainingGround/retry
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/trainingSpace/retry?fileId= \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": null,
"errorCode": 0,
"message": "succeed",
"success": true
}
5. Meeting Assistant
The meeting recording file is parsed to generate the original text of the meeting, and then the AI collates and outputs the collated version.
5.1 Create a meeting
Description of the interface
Create a meeting.
Interface address
POST /ai-api/v1/meetingAssistant/create
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/meetingAssistant/create \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"language":null,
"auto_organize": 1,
"meeting_name": "Weekly meeting of the technical department",
"":
}'
Reply parameters
Example of a reponse
{
"data": {
"meeting_id": "99999"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
5.2 Upload the meeting voice/end the meeting
Description of the interface
You can upload audio continuously while the meeting is in progress. When 'is_end=true', the meeting closes and no longer receives new audio input. At this point, the asynchronous generation of the original and collated drafts of the meeting begins.
File uploads are currently limited to 25 MB and the following input file types are supported: mp3,mp4,mpeg,mpga,m4a,wav,webm
Interface address
POST /ai-api/v1/meetingAssistant/upload
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"meeting_id":"88488",
"is_end":null,
"voice_file_ids":["111111","111111"
]
}'
Reply parameters
Example of a reponse
{
"data": null,
"errorCode": 0,
"message": "succeed",
"success": true
}
5.3 Review the meeting documents
Description of the interface
View the original and collated transcripts of the meeting.
Interface address
POST /ai-api/v1/meetingAssistant/show
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/meetingAssistant/show \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"meeting_id":"999999",
"doc_type":0
}'
Reply parameters
Example of a reponse
{
"data": {
"doc": "I'm a manuscript xxxxxxxxx",
"state": 3
},
"errorCode": 0,
"message": "succeed",
"success": true
}
5.4 List of meetings
Description of the interface
List presentation meeting.
Interface address
GET /ai-api/v1/meetingAssistant/list
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/aiTrainingGround/list?page_size=10&page_num=1 \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"isMore": 0,
"items": [
{
"meeting_id":"33333333",
"meeting_name":"The first meeting of the Technical Department",
"create_time": "2024-01-01 01:11:11",
"meeting_duration":"00:21:33",
"state": 1
},
{
"meeting_id":"33333333",
"meeting_name":"The second meeting of the technical department",
"create_time": "2024-01-01 01:11:11",
"meeting_duration":"00:21:33",
"state": 1
}
],
"pageNum": 1,
"pageSize": 10,
"startIndex": 0,
"totalCount": 2,
"totalPage": 1
},
"errorCode": 0,
"message": "succeed",
"success": true
}
6. Mini Programs
The Mini Program is more powerful, can customize prompts, integrates the python sandbox environment, and can plug in files to complete specified complex tasks. Mini Programs can be created through dialog boxes, or you can directly edit the Mini Program configuration.
Calling logic:
Call '6.1 Create Mini Program session_id 'Generate' session_id' and 'command_session_id'
Call the '6.2 Conversation Settings Mini Program' interface and put forward the requirements for building the Mini Program.
Call the '6.5 Mini Program Dialogue' interface to use the Mini Program, whether it meets the requirements.
If you want to modify the Mini Program, you can go through two ways:
Continue to '6.2 Conversation Settings applet'
Call '6.4 Save and update the applet settings' to directly modify the Mini Program configuration items.
✅6.1 Create a Mini Program session_id
Description of the interface
Create 'Configure Applet Dialog' and 'Applet Dialog'.
Interface address
GET /ai-api/v1/miniProgram/getsessionid
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/miniProgram/getsessionid?nick_name= \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"session_id":"8888888",
"command_session_id":"99999"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.2 Conversation Settings applet
Description of the interface
Create applets through conversations.
Interface address
POST /ai-api/v1/miniProgram/create
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/miniProgram/create \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"command_session_id":"",
"user_question": {
"type": 0,
"content": "Why do the stars twinkle and twinkle?" //Or a voice file id "1813497918504092978"
}
}'
Reply parameters
Example of a reponse
{
"data": {
"id":"",
"create_time": "2024-01-01 01:11:11",
"message": {
"text": "After analysis, the company's operating conditions are excellent......."
}
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.3 Query the Mini Program settings
Description of the interface
Change the applet prompt, and you can also mount the file. Only the parameters that need to be modified are specified.
Interface address
GET /ai-api/v1/miniProgram/getSetting
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/miniProgram/getsessionid?command_session_id=1 \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"mini_program_instructions": "**Background B:**n- Theme: Random Song Writing Assistantn- Target Users: Users who want to get creative inspiration or complete songs, music lovers and professional musiciansn- User characteristics: Interested in music creation and want to get help through AIn**Role R (Role):**n- You are an expert in the field of music, and you are able to generate lyrics and melodies based on the information provided by users, such as style, theme, emotion, etc. At the same time, you are also a patient and creative partner who can inspire users to create. n**Objective O (Objective):**n- Help users complete their musical compositions by understanding their creative needs and providing personalized lyrics and melody suggestions. n- Intelligently judge the content of the conversation, and reply to the conversation that is not related to the current topic according to the user's question. n**Key Result KR (Key Result):**n1. Based on the information provided by the user, the lyrics and melodies that meet the requirements are generated. n2. A variety of styles and themes are available, allowing users to freely choose and combine them into a complete work. n3. By engaging with users, the generated content is constantly adjusted and optimized to make it more relevant to the needs of users. n4. It can also answer customer questions that are not relevant to the current topic and allow for normal content interactions. n**Step S (Steps):**n1. Communicate with users and gather their creative needs, including style, theme, emotion, and other information. n2. Based on the information gathered, analysis is performed and preliminary lyrics and melodic fragments are generated. n3. Show the generated content to the user and adjust and optimize based on the feedback。",
"mini_program_name": "Inspired Writer",
"mini_program_icon": "https://prod-aipic.jxjia.net/ai/npc_avatar/create_mini/v3_02a8_7323186e-27ef-406c-95d2-13a100f06abg21.png"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.4 Save and update the applet settings
Description of the interface
Change the applet prompt, and you can also mount the file. Only the parameters that need to be modified are specified.
Interface address
POST /ai-api/v1/miniProgram/saveUpdate
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"command_session_id": "",
"mini_program_name": "",
"mini_program_icon": "",
"mini_program_introduction": "",
"mini_program_instructions": "",
"mini_program_setting": "",
"knowledge_base": {
"fileIds": [
"1802643330484416514"
]
}
}'
Reply parameters
Example of a reponse
{
"data": null,
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.5 Mini Program conversations
Description of the interface
The user talks to the agent. Send texts, documents and pictures. Default with memory, context.
Interface address
POST /ai-api/v1/miniProgram/chat
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token) Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/miniProgram/chat \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"session_id":"1681206985633349739",
"user_question": {
"type": 0,
"content": "Why do the stars twinkle and twinkle."
},
"mark_type": 2,
"file_attachs": [
{"file_id":"1753399182701993984","url":"http://xxx.xx.doc","file_type":1},
{"file_id":"1753399182701993985","url":"http://xxx.xx.png","file_type":2}
]
}'
Reply parameters
Example of a reponse
{
"data": {
"id": "123456789123",
"create_time": "2024-01-01 01:11:11",
"message": {
"text": "After analysis, the company's operating conditions are excellent.......",
"text_type": null,
"file_attachs": [
{
"url": "https:// xxx.xx.xx/xx/xx.pdf",
"size": "244KB",
"file_id": "888888",
"title": "2020 Corporate Planning Report",
"file_type": 1,
"file_id": "1753399195393957888",
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.jpg",
"size": null,
"file_id": "8888882",
"title": "Screenshot 1",
"file_type": 2,
"file_id": "1753399195393957889",
"url_invalid": 0
},
{
"url": "https:// xxx.xx.xx/xx/xx.mp3",
"file_id": "1753399195393957890",
"file_type": 3,
"url_invalid": 0
}
]
}
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.6 Query the chat history
Same as the '3.3 Query History' interface.
✅6.7 Get the sharing applet
Description of the interface
Add a mini program shared by others, "2. list of conversations" session_type=3 can be shared,
Only under the same enterprise and the same groupID can you get the sharing applet.
Interface address
GET /ai-api/v1/miniProgram/share/sessionid
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/miniProgram/getsessionid?session_id= \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"session_id":"8888888"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅6.8 Mini Program knowledge base
Description of the interface
Mini Program knowledge base binding file. When a user talks to the Mini Program, the selected document content will be brought into each conversation.
Interface address
POST /ai-api/v1/miniProgram/mount/file
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/miniProgram/mount/file \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '{
"session_id": "",
"knowledge_base": {
"fileIds": [
"1802643330484416514"
]
}
}'
Reply parameters
Example of a reponse
{
"data": null,
"errorCode": 0,
"message": "succeed",
"success": true
}
7. Cloud Space
The cloud space stores user and AI-generated files. Files uploaded to the cloud will be parsed by default. Audio and documents will be parsed into text for storage.
✅7.1 File image upload
Description of the interface
Uploading the text to the cloud will automatically trigger file parsing.
form upload file.
The file will be uploaded to the Tencent Cloud encrypted bucket and will be stored for a long time.
Usage scenarios: Chat box (including Mini Program dialog window and AI partner dialog box) file upload, cloud space file upload.
Interface address
POST /ai-api/v1/trainingSpace/addFileOrImg|
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/form-data
Request parameters
Sample request
curl /ai-api/v1/trainingSpace/addFileOrImg \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-F "multipartFile=@/path/to/your/file"
Reply parameters
Example of a reponse
{
"data": {
"fileId":"99999",
"fileUrl":"https://xxx.com/xx.pdf"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅7.2 Voice upload
Interface address
Voice upload does no enter the cloud space and is no trained
form upload file.
The file will be uploaded to the Tencent Cloud encrypted bucket and will be stored for a long time.
Usage scenarios: Upload files of chat boxes (including Mini Program dialog windows and AI partner dialog boxes) and conference voice files
Interface address
POST /ai-api/v1/trainingSpace/addVoice
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/form-data
Request parameters
Sample request
curl /ai-api/v1/trainingSpace/addVoice \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-F "multipartFile=@/path/to/your/file"
Reply parameters
Example of a reponse
{
"data": {
"fileId":"99999",
"fileUrl":"https://xxx.com/xx.pdf"
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅7.3 The list of files in the cloud space is displayed
Interface address
The list displays the list of files in a user's cloud space. It is also used as a small program to check the file.
Interface address
GET /ai-api/v1/cloudSpace/list
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Request parameters
Sample request
curl /ai-api/v1/cloudSpace/list?pageSize=10&pageNum=3 \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx"
Reply parameters
Example of a reponse
{
"data": {
"isMore": 0,
"items": [
],
"pageNum": 1,
"pageSize": 10,
"startIndex": 0,
"totalCount": 2,
"totalPage": 1
},
"errorCode": 0,
"message": "succeed",
"success": true
}
✅7.4 Delete files in bulk
Interface address
Delete files in cloud space in batches to free up space. File parsing content and files in object storage will be deleted. It cannot be restored after deletion.
Interface address
POST /ai-api/v1/cloudSpace/del
Request header
Authorization:Bearer user-xxxxxxxxxxxxxxxxxxxxxx (user token)
Content-Type: application/json
Request parameters
Sample request
curl /ai-api/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: xxxxx" \
-d '["44444","33333"]'
Reply parameters
Example of a reponse
{
"data": null
"errorCode": 0,
"message": "succeed",
"success": true
}