ChatDOC
  1. Documents
ChatDOC
  • Documents
    • Upload Document
      POST
    • Upload Document
      POST
    • Get Document
      GET
    • Delete Document
      DELETE
    • Download Document
      GET
  • Collections
    • Create Collection
      POST
    • Clone Document To Collection
      POST
  • Questions
    • Get Suggested Questions
      GET
    • Ask Question
      POST
    • Get Question
      GET
    • Ask Question With Multiple Documents
      POST
  • Users
    • Get Quota
      GET
  1. Documents

Download Document

Develop Env
https://dev.your-api-server.com
Develop Env
https://dev.your-api-server.com
GET
/documents/{upload_id}/download
Download content of the document, support CORS and range request.
If the document is of doc/docx format, then it's converted to pdf version, and the original version can't be downloaded.
If the document is of pdf format, it's recommended to use your local file to avoid unnecessary network traffic.
If the document is of md/epub/txt/website format, then it's converted to html version, and the original version can't be downloaded.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://dev.your-api-server.com/documents//download'
Response Response Example
200 - Example 1
null

Request

Path Params
upload_id
string 
Upload Id
required

Responses

🟢200Successful Response
application/json
Body
No schema defined
🟠422Validation Error
Modified at 2024-07-26 06:57:23
Previous
Delete Document
Next
Create Collection
Built with