Help Center/ KooDrive/ API Reference(Carrier)/ API/ File Management/ Obtaining File Operation Records
Updated on 2026-04-16 GMT+08:00

Obtaining File Operation Records

Function

Obtain the operation record list of a file.

URI

GET /koodrive/ose/v1/files/{fileId}/operations

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

fileId

Yes

String

File ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

pageCursor

No

String

Definition:

Current page cursor.

Constraints:

The value is obtained from nextCursor of the previous page. No cursor needs to be transferred for the first page.

Range:

N/A

Default Value:

N/A

pageSize

No

Integer

Definition:

Number of records returned on a page.

Constraints:

Before the final list is reached, partial or zero records may be returned.

Range:

1-100

Default Value:

100

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

Authorization

Yes

String

Definition:

Access token. Token authentication is used to call KooDrive APIs. A token indicates the permission. When an API is called, the token is added to the request header to obtain the operation permission. For details about how to obtain an access token, see the corresponding developer guide. The format is Bearer+{access_token}.

Constraints:

N/A

Range:

N/A

Default Value:

N/A

X-User-Id

Yes

String

Definition:

User ID on KooDrive, which is used for app authentication.

Constraints:

N/A

Range:

N/A

Default Value:

N/A

X-Date

Yes

String

Definition:

Date, which is used for app authentication. The format is yyyyMMdd'T'HHmmss'Z'.

Constraints:

The time must be within 15 minutes from the current time and cannot be later than the current time.

Range:

N/A

Default Value:

N/A

X-Traceid

No

String

Definition:

Service trace ID, which contains 58 bits.

Constraints:

N/A

Range:

The value contains 58 bits.

Default Value:

N/A

language

No

String

Definition:

Language code.

Constraints:

The value must comply with the internationalization specifications. For example, en_us indicates English (United States).

Range:

The value must comply with the internationalization specifications.

Default Value:

en-US

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

code

Integer

Response code

msg

String

Response

operations

Array of FileOperationLog objects

File operation list.

nextCursor

String

Next page cursor.

Table 5 FileOperationLog

Parameter

Type

Description

id

String

Operation ID.

operator

String

Operator ID.

operateType

String

Operation type.

  • 1: view.

  • 3: share.

  • 4: copy and dump.

  • 5: create (whitelist).

  • 6: dump the shared files that are received (whitelist).

  • 7: rename (whitelist).

  • 8: move (whitelist).

  • 9: logical deletion (whitelist).

  • 10: restore (whitelist).

operateTime

String

Time when the operation was performed.

Example Requests

Obtain the operation record list of the FqNZrzGgSKHkfGmwjf7dLgLlGkwrLEU35 file.

POST /koodrive/ose/v1/files/FqNZrzGgSKHkfGmwjf7dLgLlGkwrLEU35/operations?pageCursor=MTg5MzQzMjI2NDE2ODI4NDgwMDsyMDI2LTAyLTAxVDAwOjAwOjAwWg

Authorization:Bearer+10f88*********4791e9ff

Example Responses

Status code: 200

File operation records.

{
  "code" : 0,
  "msg" : "SUCCESS",
  "operations" : [ {
    "id" : "1893432264168284800",
    "operator" : "userId",
    "operateType" : 1,
    "operateTime" : "2026-02-27 17:55:43"
  } ],
  "nextCursor" : "nextCursor_9a9d3dc614e1"
}

Status Codes

Status Code

Description

200

File operation records.