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

# Get a folder

> Fetch a folder by its ID with the Python SDK.

`client.folders.get_folder_by_id()` fetches a [folder](https://infisical.com/docs/documentation/platform/folder.md) by its ID.

## Parameters

**id** `str` *required*

The ID of the folder.

## Returns

**folder** `SingleFolderResponseItem`

The folder, with its `id`, `name`, `description`, `path`, and `projectId`, and its environment's `envId`, `envName`, and `envSlug` in `environment`.

```python Basic theme={"dark"}
folder = client.folders.get_folder_by_id(id="<folder-id>")
```

```json Response theme={"dark"}
{
  "id": "3a1f6c2e-9b4d-4e7a-8c5f-2d1e0b9a8c7f",
  "name": "backend",
  "description": "Secrets for the backend service",
  "path": "/backend",
  "projectId": "5e8d7c6b-4a3f-4e2d-9c1b-0a9f8e7d6c5b",
  "envId": "c4e2a1b9-7d3f-4a6e-9b8c-5f0e1d2c3b4a",
  "environment": {
    "envId": "c4e2a1b9-7d3f-4a6e-9b8c-5f0e1d2c3b4a",
    "envName": "Development",
    "envSlug": "dev"
  },
  "parentId": "8b7a6c5d-4e3f-4a2b-9c1d-0e9f8a7b6c5d",
  "version": 1,
  "createdAt": "2026-11-02T09:10:05.220Z",
  "updatedAt": "2026-11-02T09:10:05.220Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.