Skip to main content
Question

How to fetch all the versions of a file using the Rest API

  • December 1, 2024
  • 2 replies
  • 54 views

Tony_Sebastian

I am trying to fetch all the versions of a file using the Rest API endpoint - GET/v1/files/:key/versions

But I am getting only the latest 25 versions. How can I fetch all the versions of a file?
Thanks in advance.

2 replies

tank666
  • 4863 replies
  • December 1, 2024

The GET file versions endpoint returns an object with versions and pagination. Use the URL from pagination.next_page to get previous versions.

Also note:

Members of Starter teams can only view 30 days of a file’s version history. Members of Professional and Education teams or organizations can access a file’s entire version history.

Source: Help Center


Tony_Sebastian

Thank you. This helped! 😀


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings