Skip to main content
Question

REST API for get file_id

  • December 22, 2022
  • 4 replies
  • 3434 views

Sathia_Moorthy

The below api need file_id to access the api. Before that, I need to get file_id
https://www.figma.com/developers/api#get-files-endpoint

How to get all the file_ids using REST API?

4 replies

tank666
  • 4863 replies
  • December 22, 2022

You can get the file keys using the “GET project files” endpoint.
https://www.figma.com/developers/api#get-project-files-endpoint


Sathia_Moorthy

Nice. How to get the project_id and team_id? Is any option for get automatically using REST API?


tank666
  • 4863 replies
  • December 22, 2022

You can get the project IDs using the “GET team projects” endpoint.
https://www.figma.com/developers/api#get-team-projects-endpoint

And there is no endpoint for teams.


Gleb
  • Power Member
  • 4706 replies
  • December 23, 2022

This is a security measure currently given that there are no fine-grained permissions in the REST API. You have to ask the user to give you the necessary links manually, and thus the user understands that you get the permission to the scope of the link you are asking from them. Otherwise every service provider using the REST API would have access to every single file of every single user they have, and that is not ideal, especially when you don’t need such broad scope of access (most often you just need a single file or two).


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