Skip to main content
Question

How do I get a link to a file with a plugin?

  • May 25, 2023
  • 1 reply
  • 1220 views

Evan_Cheng

I’ve been tasked with developing a publicwidget that can retrieve the share link that one gets when they share a Figma file.

From the research I’ve done, it seems like this is impossible because the file_key is only available with the private plugin API, but I wanted to make a forum post in case there’s any little-known work-arounds I hadn’t considered.

The best work-around I could come up with is to use the RESTful API to GET FILES and match the file names against the file name from the plugin API for the file_key, but this would require loads of HTTP Requests (1 for each project) and require the user paste in their team link :c

Here are some of the sources I viewed in researching this problem:

This topic has been closed for replies.

1 reply

tank666
  • 4873 replies
  • May 25, 2023

Everything you listed is the only available way to achieve what you want with REST and Plugin API. To date, nothing has changed.


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