List Project Files

figma.list_project_files
ActionBusiness appsconnection required

Calls the Figma API with the connection's credentials.

List the files inside one Figma project, newest modification first.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Figma
Secret shape
{"client_id": "…", "client_secret": "…", "refresh_token": "…"}, or {"personal_access_token": "figd_…"}
Config it needs
base_url, plan_api_id
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
The project id, as returned by figma.list_team_projects.
stringYes———
branch_data
Include branch metadata for each file that has branches.
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "branch_data": false
}

Output

One shape.

result

FieldTypeExample
name
The project's name.
string—
files
The files in the project.
array—
count
How many files were returned.
number—
{
  "count": 0,
  "files": [],
  "name": ""
}

Notes

  • Figma marks this endpoint deprecated in favour of the v2 folders API, but still serves it, and it remains the only way to list a project's files from a project id. Expect to migrate if Figma withdraws it.

See List Project Files run in a workflow.

In a technical demo we add the Figma connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.