Skip to main content
Tony_Sebastian
December 1, 2024
Question

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

  • December 1, 2024
  • 2 replies
  • 326 views

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.

This topic has been closed for replies.

2 replies

tank666
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

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Tony_Sebastian
December 1, 2024

Thank you. This helped! 😀