Exporting svg elements using Figma API issue-

When I download the SVG by hands Figma gives me SVG file with path data = d1. However, when I use Figma API, the path data = d2 where d1 !== d2. How I can get the same data path as in svg export from figma directly (d1).

Hi @Emir1 ,

Is there a figma file you can share with us that demonstrate this issue? Feel free to submit your file via https://help.figma.com/hc/en-us/requests/new

I think what OP was trying to say that when you retrieve the VECTOR from the API (for us it was the getFiles endpoint. But that endpoint retrieves the vector path of the vector path if that makes sense.

But when you export the SVG from Figma directly, instead of retrieving the node from the api, you instead get the correct vector path and which closes itself.

This means if we use the vector path from the API we have to convert the path to a filled path.