provider Components GET /v1/files/{file_key}/components
@utdk/figma /v1/files/{file_key}/components
Get file components
Get a list of published components within a file library.
file_key path required
File to list components from. This must be a main file key, not a branch key, as it is not possible to publish from branches.
string

Try it

Authentication
Configure credentials for Figma API
getfilecomponents
GET/v1/files/{file_key}/components
Get a list of published components within a file library.

Parameters

required

File to list components from. This must be a main file key, not a branch key, as it is not possible to publish from branches.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import figma from '@utdk/figma';

await figma.getfilecomponents()