Skip to main content
Solved

Share prototype URL from a plugin

  • March 8, 2024
  • 1 reply
  • 253 views

Luis_Parente

I’m working on a public plugin that will send an email to an user with the prototype URL of the selected page without the need for the user to copy the url from the share button.
After searching this forum I’m left with the impression that only private plugins have access to the fileKey that is needed to create the URL.
Is this true? Or can I generate the prototype URL with another approach?

Best answer by tank666

Nothing has changed since then.

Please refer to the documentation:

fileKey: string | undefined [readonly]
The file key of the current file this plugin is running on. Only private plugins and Figma-owned resources (such as the Jira and Asana widgets) have access to this. To enable this behavior, you need to specify enablePrivatePluginApi in your manifest.json.

figma | Plugin API

View original

1 reply

tank666
  • 4856 replies
  • Answer
  • March 8, 2024

Nothing has changed since then.

Please refer to the documentation:

fileKey: string | undefined [readonly]
The file key of the current file this plugin is running on. Only private plugins and Figma-owned resources (such as the Jira and Asana widgets) have access to this. To enable this behavior, you need to specify enablePrivatePluginApi in your manifest.json.

figma | Plugin API


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