3.2.4-Download Uploaded File in Chatflow

1. Overview

  • Interface Name: Download file

  • Version number: v1.0.0

2. Information

  • Request method: POST

  • Request URL: https://DOMAIN/openapi/v1/chatflow/download_file/

  • Domain: Refer to "Service address description"

3. Request parameters

Request header http header field:

Parameter name
Type
Required
Description

Content-Type

string

Yes

Fixedapplication/json

cybertron-robot-key

string

Yes

Robot key

cybertron-robot-token

string

Yes

Robot token

Request body field:

Parameter name
Type
Required
Description

username

string

Yes

User account

file_id

int

Yes

File ID

4. Response field description

HTTP status code: 200 OK

Response field description:

Field Name
Type
Description

code

string

"000000" is normal, other exceptions

message

string

Status description

5. Example

Request Example:

curl --location --request POST 'https://_DOMAIN_/openapi/v1/chatflow/download_file/?file_id=391' \
--header 'Content-Type: application/json' \
--header 'username: xxxxx' \
--header 'cybertron-robot-key: xxxxx' \
--header 'cybertron-robot-token: xxxxx'

Response example:

{
    "code": "000000",
    "message": "success"
}