I am working on a project that will link Figma assets to assets in our app.
I am doing a lot of work in a plugin developed by us. We store the required metadata as private plugin data keys (not shared)
We didn’t publish the plugin yet, so we are running with a generic string of characters and dashes as the plugin id in the manifest. the plugin id in dev is:
All operations in the plugin are working ok, but now we need to read the node tree and this plugin data trough the Figma REST API to perform some checks and syncs.
If I call the api without pluginID it works ok, but if I call it with this plugin ID added i get the following error:
"err": "ID ai-plugin-template-01 is not a valid plugin ID"
the request I used is:
curl -H 'X-FIGMA-TOKEN: <accessToken>' 'https://api.figma.com/v1/files/HdoDdyV9BtqsloqgR1qFpr/nodes?ids=317-4860&depth=1&plugin_data=ai-plugin-template-01'
I assume it is because of a check in the API layer? Is this maybe a regex check? (i am hopefull… )
Is there a way around this?