Skip to main content

Hi!

I am developer and happy user of figma and figma API. I am using in particular

https://api.figma.com/v1/files/JFl6cOTJN9uoy3UXyPGDAo/variables/local

After fetching tokens i see few stuff which cause problems / questions.
1. The endpoint return collections available in figma and their strange duplicated copies which contain empty variables. I checked with designers and we are unsure how to eliminate them. So far i filter them in code.
2.  One collection is getting ‘Mode 1’ and i am not sure how to change / eliminate that. This is basically a variable used for versioning.

3. The collections and also variables inside are always in random order, is there a way to apply sort to endpoint so that the endpoint return always the same result



I would appreciate help on above topics. :)
All the best, 
Tomek

Be the first to reply!