Import JSON Figma file from the /v1/files/:id API

Currently the API returns a JSON response presumably containing the Figma file.

Is there any way to either:

  1. Import the response in Figma UI
  2. Convert the response to a compatible import file for Figma UI
  3. Create a new file from the API with the response

I’m attempting on creating some kind of backup system, as a side project.

  1. Possible with the Figma plugins API (but there is no built in conversion function for that, you’ll need to find or write one on your own).

  2. Not possible natively, but if you reverse-engineer a Figma file contents, you might be able to generate one yourself.

  3. Not possible.

Thank you for the response :slight_smile:

I can understand why it is not something possible, but I will look more into the Figma plugins API! I wasn’t aware that there is another set of APIs