---
title: Get all version information of a file
description: GET /nd/api/file/versions: Get all version information of the file. Interface description, including path, method, parameters and return information.
slug: api-get-nd-api-file-versions
lang: en
category: File API
category_order: 8
order: 117
api_method: GET
api_path: /nd/api/file/versions
api_label: Get all version information of a file
keywords:
  - API
  - Get all version information of a file
  - /nd/api/file/versions
---

# Get all version information of the file

| Properties | Values |
| --- | --- |
| HTTP methods | `GET` |
| Interface path | `/nd/api/file/versions` |
| Category | File API |

## Interface description

Interface path: `/nd/api/file/versions`

HTTP method: `GET`


**HTTP method:** `GET`

#### URL parameters

Parameter name Comment (description)
file_id target file id (required) string
#### The return information is as follows

{"code":0,"versions":[],"success":true}

## 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 <access_token>` 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.
