provider Styles GET /v1/files/{file_key}/styles
@utdk/figma /v1/files/{file_key}/styles
Get file styles
Get a list of published styles within a file library.
file_key path required
File to list styles 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
getfilestyles
GET/v1/files/{file_key}/styles
Get a list of published styles within a file library.

Parameters

required

File to list styles 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.getfilestyles()