Figma Support Forum

Images API: Authentication

Is it possible to add a query parameter to load an image inline?

Pseudo-code, so bear with me:

<img src={`https://figma.com/api/v1/images/${KEY}?token=${FIGMA_TOKEN}` />

Or is it recommended to fetch img src asynchronously using the API?

Thanks!

It is not possible and I wouldn’t recommend sharing your personal token on the web publicly.