Infisical icon

Infisical

Manage secrets and related resources in Infisical

Actions40

Folder → Get Many

AI-generated

Summary

List folders in a specified environment and optional path

Inputs

  • projectId (required) — The project to operate on (ID or selected from list)
  • environment (required) — The environment slug (e.g., dev, staging, prod)
  • path — Path of the parent folder. Defaults to the root path.

Output shape

a list of folder objects

Pagination may be applied; defaults to up to 50 items. Results include folder metadata such as ID, name, and path.

Examples

Example 1: Retrieve all folders under the root of the dev environment

projectId = selected, environment = dev, path = /

Example 2: Fetch folders in a sub-folder within the staging environment

projectId = selected, environment = staging, path = /my-folder

Example 3: List folders with batching enabled (50 items per batch)

projectId = selected, environment = prod, path = /, requestOptions.batchSize = 100

Links

Discussion