Skip to main content
Tony_Sebastian
Dec 1, 2024 1:45 AM UTC
Question

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

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
Dec 1, 2024 9:23 AM UTC

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
Dec 1, 2024 11:56 PM UTC

Thank you. This helped! 😀