Skip to content

List file versions

Get all versions of a file. The response contains a list of the versions for the file. Each version includes the file version metadata and the download URL. The download URL is valid for a limited time. The response is paginated and the number of items returned can be controlled using the limit query parameter.

  • status - To retrieve soft deleted file’s versions, set status attribute as deleted. To retrieve active file’s versions, set status attribute as active. Hard deleted file’s versions cannot be retrieved.

  • complete - To get full file response set complete parameter as true. By default it is false and minimal response will be returned.

  • pageSize - To control the number of items returned in the response, set pageSize attribute. By default, it is set to 100.

  • nextPageToken - To get the next set of items, set nextPageToken attribute with the value from the previous response.

  • A file should be created. To know more about uploading a file refer here
GET {baseUrl}/spaces/{spaceId}/files/{fileId}/versions
  • HEADER:

    • Authorization: Bearer {tid token}

To know more about the List file versions refer here. For List file versions by path refer here.