Updated on 2025-08-13 GMT+08:00

Download File

Function

This API is used to download a file with a specified ID.

URI

GET /v1/koosearch/repos/files/{file_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

file_id

Yes

String

File ID. The value contains 1 to 64 characters, including only digits, letters, hyphens (-), and underscores (_).

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Parameter description:

Token used for API authentication. For how to obtain the token, see section 3.2 "Authentication."

Constraints:

N/A.

Response Parameters

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Status code: 500

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error Code

error_msg

String

Error description

Example Requests

GET https://{endpoint}/v1/koosearch/repos/files/69692c309a37a00ae746a926a81e5d41

Example Responses

None

Status Codes

Status Code

Description

200

Download succeeded.

400

Incorrect request body parameter

500

Internal error

Error Codes

See Error Codes.