> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useparagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get File By ID



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#FIGMA_GET_FILE_BY_ID
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#FIGMA_GET_FILE_BY_ID:
    post:
      summary: Get File By ID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: FIGMA_GET_FILE_BY_ID
                parameters:
                  type: object
                  properties:
                    fileId:
                      type: string
                      description: >-
                        File ID : Specify a File ID. The File ID can be parsed
                        from file url: https://www.figma.com/file/:id/:title
                        (example: "CRcEzuiEc3ybXCg6B")
                    depth:
                      type: string
                      description: >-
                        Depth : Specify the depth of the nodes to retrieve. For
                        example, setting this to 1 returns only Pages, setting
                        it to 2 returns Pages and all top level objects on each
                        page. Not setting this parameter returns all nodes.
                        (example: "1")
                  required:
                    - fileId
                  x-integration: figma
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````