provider Component Sets GET /v1/files/{file_key}/component_sets
@utdk/figma /v1/files/{file_key}/component_sets
Get file component sets
Get a list of published component sets within a file library.
file_key path required
File to list component sets 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
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getfilecomponentsets
GET/v1/files/{file_key}/component_sets
Get a list of published component sets within a file library.

Parameters

required

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

Enter a gateway URL above to enable sending.

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

TypeScript

import figma from '@utdk/figma';

await figma.getfilecomponentsets()