Figma Folders API

Get information about folders, subfolders, and files in teams.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/teams/{team_id}/folders Create a folder in a team · Create a folder #
Ask an LLM
“How do I create a top-level folder in a team?”
“Can I choose who can access a folder I create?”
Tell an agent
Create a folder named {name} in team {team_id} with sharing audience {sharing_audience_control}.
Create folder {name} on team {team_id} for {sharing_audience_control} only.
GET /v2/teams/{team_id}/folders List a team's top-level folders · Get top-level folders in a team #
Ask an LLM
“What top-level folders exist in a team?”
“Can I list a team's projects without fetching their files?”
Tell an agent
List the top-level folders in team {team_id}.
Show team {team_id}'s projects.
GET /v2/folders/{folder_id}/folders List a folder's subfolders · Get subfolders in a folder #
Ask an LLM
“Which folders sit inside a folder?”
“Can I see a folder's children without listing its files?”
Tell an agent
List the subfolders of folder {folder_id}.
Show what's inside folder {folder_id}.
GET /v2/folders/{folder_id}/files List files in a folder · Get files in a folder #
Ask an LLM
“Which files are directly in a folder?”
“Can I include branch data when listing a folder's files?”
Tell an agent
List the files in folder {folder_id}.
List files in folder {folder_id} with branch data {branch_data}.
GET /v2/folders/{folder_id}/meta Get a folder's metadata · Get folder metadata #
Ask an LLM
“What is the name, thumbnail and file count of a folder?”
“Can I get folder metadata without listing its files?”
Tell an agent
Get metadata for folder {folder_id}.
Show the thumbnail and file count of folder {folder_id}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/figma:figma-folders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

figma-folders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Figma Folders API
  version: 0.47.0
  description: 'This is the OpenAPI specification for the Figma REST API.


    Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please file an issue.'
  termsOfService: https://www.figma.com/developer-terms/
  contact:
    email: support@figma.com
servers:
- url: https://api.figma.com
tags:
- name: Folders
  description: Get information about folders, subfolders, and files in teams.
  externalDocs:
    description: Folder endpoints documentation
    url: https://developers.figma.com/docs/rest-api/folders-endpoints/
paths:
  /v1/teams/{team_id}/folders:
    post:
      tags:
      - Folders
      summary: Create a folder
      security:
      - OAuth2:
        - folders:write
      description: Creates a top-level folder in a team. The team must belong to the Enterprise plan associated with the private OAuth app, and the authenticated user must be allowed to create a folder in the team.
      operationId: postTeamFolder
      parameters:
      - name: team_id
        in: path
        description: The ID of the team in which to create the folder.
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFolderRequest'
      responses:
        '200':
          $ref: '#/components/responses/CreateFolderResponse'
        '400':
          $ref: '#/components/responses/BadRequestErrorResponseWithErrMessage'
          description: The request parameters are invalid.
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponseWithErrMessage'
          description: The access token is missing or incorrect.
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponseWithErrMessage'
          description: The caller does not have permission to create the folder.
        '404':
          $ref: '#/components/responses/NotFoundErrorResponseWithErrMessage'
          description: The requested resource was not found.
        '429':
          $ref: '#/components/responses/TooManyRequestsErrorResponseWithErrMessage'
          description: The request was rate-limited.
        '500':
          $ref: '#/components/responses/InternalServerErrorResponseWithErrMessage'
          description: An internal server error occurred.
  /v2/teams/{team_id}/folders:
    get:
      tags:
      - Folders
      summary: Get top-level folders in a team
      security:
      - PersonalAccessToken: []
      - PlanAccessToken: []
      - OAuth2:
        - folders:read
      description: Get a list of the top-level folders (previously called "projects") within the specified team. Subfolders can be traversed with the GET /v2/folders/{folder_id}/folders endpoint. It is not possible to programmatically obtain team IDs. To obtain a team ID, navigate to the team page in the Figma file browser. The team ID is present in the URL after the word team. For example, in `https://www.figma.com/files/181033233908053158/team/1535685101263221741`, the team ID is `1535685101263221741`.
      operationId: getTeamFolders
      parameters:
      - name: team_id
        in: path
        description: ID of the team to list folders from
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/GetTeamFoldersResponse'
        '400':
          $ref: '#/components/responses/BadRequestErrorResponseWithErrorBoolean'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponseWithErrMessage'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponseWithErrMessage'
        '429':
          $ref: '#/components/responses/TooManyRequestsErrorResponseWithErrMessage'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponseWithErrMessage'
  /v2/folders/{folder_id}/folders:
    get:
      tags:
      - Folders
      summary: Get subfolders in a folder
      security:
      - PersonalAccessToken: []
      - PlanAccessToken: []
      - OAuth2:
        - folders:read
      description: Get a list of the direct subfolders within the specified folder.
      operationId: getFolderFolders
      parameters:
      - name: folder_id
        in: path
        description: ID of the parent folder to list subfolders from
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/GetFolderFoldersResponse'
        '400':
          $ref: '#/components/responses/BadRequestErrorResponseWithErrorBoolean'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponseWithErrMessage'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponseWithErrMessage'
        '429':
          $ref: '#/components/responses/TooManyRequestsErrorResponseWithErrMessage'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponseWithErrMessage'
  /v2/folders/{folder_id}/files:
    get:
      tags:
      - Folders
      summary: Get files in a folder
      security:
      - PersonalAccessToken: []
      - PlanAccessToken: []
      - OAuth2:
        - folders:read
      description: Get a list of the files directly within the specified folder.
      operationId: getFolderFiles
      parameters:
      - name: folder_id
        in: path
        description: ID of the folder to list files from
        required: true
        schema:
          type: string
      - name: branch_data
        in: query
        description: Returns branch metadata in the response for each main file with a branch inside the folder.
        schema:
          type: boolean
          default: false
      responses:
        '200':
          $ref: '#/components/responses/GetFolderFilesResponse'
        '400':
          $ref: '#/components/responses/BadRequestErrorResponseWithErrorBoolean'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponseWithErrMessage'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponseWithErrMessage'
        '429':
          $ref: '#/components/responses/TooManyRequestsErrorResponseWithErrMessage'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponseWithErrMessage'
  /v2/folders/{folder_id}/meta:
    get:
      tags:
      - Folders
      summary: Get folder metadata
      security:
      - PlanAccessToken: []
      - OAuth2:
        - folder_metadata:read
      description: Get metadata for a folder (name, thumbnail, file count, timestamps) without enumerating its files.
      operationId: getFolderMeta
      parameters:
      - name: folder_id
        in: path
        description: ID of the folder to get metadata for
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/GetFolderMetaResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponseWithErrMessage'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponseWithErrMessage'
        '429':
          $ref: '#/components/responses/TooManyRequestsErrorResponseWithErrMessage'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponseWithErrMessage'
components:
  schemas:
    ErrorResponsePayloadWithErrMessage:
      type: object
      description: A response indicating an error occurred.
      properties:
        status:
          type: number
          description: Status code
        err:
          type: string
          description: A string describing the error
      required:
      - status
      - err
    ErrorResponsePayloadWithErrorBoolean:
      type: object
      description: A response indicating an error occurred.
      properties:
        error:
          type: boolean
          description: For erroneous requests, this value is always `true`.
          enum:
          - true
        status:
          type: number
          description: Status code
        message:
          type: string
          description: A string describing the error
      required:
      - error
      - status
      - message
    CreateFolderRequest:
      type: object
      description: Properties for the folder to create.
      properties:
        name:
          type: string
          description: The name of the folder.
        sharing_audience_control:
          type: string
          description: The audience that can access the folder. Workspace audiences require the specified team to belong to a workspace.
          enum:
          - plan_view
          - plan_edit
          - invite_only
          - workspace_view
          - workspace_edit
      required:
      - name
      - sharing_audience_control
      additionalProperties: false
    Folder:
      type: object
      description: A Folder (previously called a "Project") is a collection of files and subfolders. Folders can be nested; a folder's parent is identified by `parent_folder_id`.
      properties:
        id:
          type: string
          description: The ID of the folder.
        name:
          type: string
          description: The name of the folder.
        parent_folder_id:
          type:
          - string
          - 'null'
          description: The ID of the folder's parent folder, or null if the folder is a top-level folder in the team.
        sharing_audience_control:
          type: string
          description: The audience that can access the folder.
          enum:
          - plan_view
          - plan_edit
          - invite_only
          - workspace_view
          - workspace_edit
        created_at:
          type: string
          format: date-time
          description: The time at which the folder was created.
      required:
      - id
      - name
      - parent_folder_id
  responses:
    CreateFolderResponse:
      description: Response containing the created Folder resource.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/Folder'
            - type: object
              properties:
                sharing_audience_control:
                  type: string
                  description: The audience that can access the folder.
                  enum:
                  - plan_view
                  - plan_edit
                  - invite_only
                  - workspace_view
                  - workspace_edit
                created_at:
                  type: string
                  format: date-time
                  description: The time at which the folder was created.
              required:
              - sharing_audience_control
              - created_at
    ForbiddenErrorResponseWithErrMessage:
      description: The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 403
              required:
              - status
    NotFoundErrorResponseWithErrMessage:
      description: The requested file or resource was not found.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 404
              required:
              - status
    GetFolderFoldersResponse:
      description: Response from the GET /v2/folders/{folder_id}/folders endpoint.
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                type: string
                description: The parent folder's name.
              folders:
                type: array
                description: An array of the folder's direct subfolders. Each subfolder's `parent_folder_id` equals the requested folder's ID.
                items:
                  $ref: '#/components/schemas/Folder'
            required:
            - name
            - folders
    BadRequestErrorResponseWithErrMessage:
      description: Bad request. Parameters are invalid or malformed. Please check the input formats. This error can also happen if the requested resources are too large to complete the request, which results in a timeout. Please reduce the number and size of objects requested.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 400
              required:
              - status
    TooManyRequestsErrorResponseWithErrMessage:
      description: In some cases API requests may be throttled or rate limited. Please wait a while before attempting the request again (typically a minute).
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 429
              required:
              - status
    GetFolderFilesResponse:
      description: Response from the GET /v2/folders/{folder_id}/files endpoint.
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                type: string
                description: The folder's name.
              files:
                type: array
                description: An array of the files directly in the folder.
                items:
                  type: object
                  properties:
                    key:
                      type: string
                      description: The file's key.
                    name:
                      type: string
                      description: The file's name.
                    thumbnail_url:
                      type: string
                      description: The file's thumbnail URL.
                    last_modified:
                      type: string
                      format: date-time
                      description: The UTC ISO 8601 time at which the file was last modified.
                    branches:
                      type: array
                      description: Present only when `branch_data` is true and the file has branches. An array of the file's branches.
                      items:
                        type: object
                        properties:
                          key:
                            type: string
                            description: The branch's file key.
                          name:
                            type: string
                            description: The branch's name.
                          thumbnail_url:
                            type: string
                            description: The branch's thumbnail URL.
                          last_modified:
                            type: string
                            format: date-time
                            description: The UTC ISO 8601 time at which the branch was last modified.
                        required:
                        - key
                        - name
                        - last_modified
                  required:
                  - key
                  - name
                  - last_modified
            required:
            - name
            - files
    UnauthorizedErrorResponseWithErrMessage:
      description: Token is missing or incorrect.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 401
              required:
              - status
    GetFolderMetaResponse:
      description: Response from the GET /v2/folders/{folder_id}/meta endpoint.
      content:
        application/json:
          schema:
            type: object
            properties:
              id:
                type: string
                description: The ID of the folder.
              name:
                type: string
                description: The name of the folder.
              thumbnail_url:
                type:
                - string
                - 'null'
                description: A URL to a thumbnail image of the folder. Null if the folder has no files.
              file_count:
                type: integer
                description: The number of files in the folder.
              updated_at:
                type: string
                format: date-time
                description: The UTC ISO 8601 time at which the folder was last updated.
              created_at:
                type: string
                format: date-time
                description: The UTC ISO 8601 time at which the folder was created.
            required:
            - id
            - name
            - thumbnail_url
            - file_count
            - updated_at
            - created_at
    InternalServerErrorResponseWithErrMessage:
      description: An internal server error occurred.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrMessage'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 500
              required:
              - status
    BadRequestErrorResponseWithErrorBoolean:
      description: Bad request. Parameters are invalid or malformed. Please check the input formats. This error can also happen if the requested resources are too large to complete the request, which results in a timeout. Please reduce the number and size of objects requested.
      content:
        application/json:
          schema:
            allOf:
            - $ref: '#/components/schemas/ErrorResponsePayloadWithErrorBoolean'
            - type: object
              properties:
                status:
                  type: number
                  description: Status code
                  enum:
                  - 400
              required:
              - status
    GetTeamFoldersResponse:
      description: Response from the GET /v2/teams/{team_id}/folders endpoint.
      content:
        application/json:
          schema:
            type: object
            properties:
              name:
                type: string
                description: The team's name.
              folders:
                type: array
                description: An array of the team's top-level folders. Each folder's `parent_folder_id` is null.
                items:
                  $ref: '#/components/schemas/Folder'
            required:
            - name
            - folders
  securitySchemes:
    PersonalAccessToken:
      type: apiKey
      name: X-Figma-Token
      in: header
    PlanAccessToken:
      type: apiKey
      name: X-Figma-Token
      in: header
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://www.figma.com/oauth
          tokenUrl: https://api.figma.com/v1/oauth/token
          refreshUrl: https://api.figma.com/v1/oauth/refresh
          scopes:
            current_user:read: Read your name, email, and profile image.
            file_comments:read: Read the comments for files.
            file_comments:write: Post and delete comments and comment reactions in files.
            file_content:read: Read the contents of files, such as nodes and the editor type.
            file_duplicate:write: Duplicate files into folders. Available only to private OAuth apps in an Enterprise plan.
            file_dev_resources:read: Read dev resources in files.
            file_dev_resources:write: Write to dev resources in files.
            file_metadata:read: Read metadata of files.
            file_variables:read: 'Read variables in Figma file. Note: this is only available to members in Enterprise organizations.'
            file_variables:write: 'Write to variables in Figma file. Note: this is only available to members in Enterprise organizations.'
            file_versions:read: Read the version history for files you can access.
            files:read: Deprecated. Read files, projects, users, versions, comments, components & styles, and webhooks.
            library_analytics:read: Read library analytics data.
            library_assets:read: Read data of individual published components and styles.
            library_content:read: Read published components and styles of files.
            project_metadata:read: Read metadata of projects.
            projects:read: List projects and files in projects.
            folder_metadata:read: Read metadata of folders.
            folders:read: List folders and files in folders.
            folders:write: Create folders. Available only to private OAuth apps in an Enterprise plan.
            team_library_content:read: Read published components and styles of teams.
            team_members:write: Invite members to teams. Available only to private OAuth apps in an Enterprise plan.
            teams:read: Read team metadata. Available to private OAuth apps in Professional, Organization, and Enterprise plans, and to plan access tokens in Organization and Enterprise plans.
            teams:write: Create teams. Available only to private OAuth apps in an Enterprise plan.
            webhooks:read: Read metadata of webhooks.
            webhooks:write: Create and manage webhooks.
    OrgOAuth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://www.figma.com/oauth
          tokenUrl: https://api.figma.com/v1/oauth/token
          refreshUrl: https://api.figma.com/v1/oauth/refresh
          scopes:
            org:activity_log_read: Read activity logs in the organization.
externalDocs:
  description: Figma REST API Documentation
  url: https://developers.figma.com/docs/rest-api/
x-provenance:
  method: harvested
  publisher: Figma
  source: https://raw.githubusercontent.com/figma/rest-api-spec/main/openapi/openapi.yaml
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)