--- title: file log description: GET /nd/api/file/file_logs: File log interface description, including path, method, parameters and return information. slug: api-get-nd-api-file-file-logs lang: en category: File API category_order: 8 order: 122 api_method: GET api_path: /nd/api/file/file_logs api_label: file log keywords: - API - file log - /nd/api/file/file_logs --- # File log | Properties | Values | | --- | --- | | HTTP methods | `GET` | | Interface path | `/nd/api/file/file_logs` | | Category | File API | ## Interface description Interface path: `/nd/api/file/file_logs` HTTP method: `GET` **HTTP method:** `GET` #### GET request body parameters Parameter name Comment (description) file_id target file id array (required) string startIndex gets the starting order of logs. Which log should be returned (optional) int defaults to 0. pageSize The number of items returned per page (optional) int type Log type (optional) int Default 0, view all records, 1 only view access records, 2 only view uploads and downloads, 3 only view anonymous users Users, 4 only view sharing and invitations, 5 only view deletion records userName A username (optional) string, returns the log of a certain user lang language (optional) default cn, string language of returned log cn (Chinese) en (English) #### The return information is as follows {"code":0,"success":true, "logs":[], "total":50} ## Call instructions - Before calling, you need to complete [Get token](api-post-api-token-do.md) or the corresponding login-free authentication, and carry `Authorization: Bearer ` in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail. - Category: File API.