#swagger.summary='Retrieve folders based on specific conditions'
#swagger.description='Fetches folders from the specified workspace and environment, optionally providing either a parentFolderId or a parentFolderPath to narrow down results'
#swagger.summary='Get folders'
#swagger.description='Get folders'
#swagger.security=[{
"apiKeyAuth":[]
"apiKeyAuth":[],
"bearerAuth":[]
}]
#swagger.parameters['workspaceId']={
"description":"ID of the workspace from which the folders are to be fetched",
"description":"ID of the workspace where to get folders from",
"required":true,
"type":"string",
"in":"query"
}
#swagger.parameters['environment']={
"description":"Environment where the folder is located",
"description":"Slug of environment where to get folders from",
"required":true,
"type":"string",
"in":"query"
}
#swagger.parameters['parentFolderId']={
"description":"ID of the parent folder",
"required":false,
"type":"string",
"in":"query"
}
#swagger.parameters['parentFolderPath']={
"description":"Path of the parent folder, like /folder1/folder2",
#swagger.parameters['directory']={
"description":"Path where to get fodlers from like / or /foo/bar. Default is /",
description:"This security definition uses the HTTP 'bearer' scheme, which allows the client to authenticate using a JSON Web Token (JWT) that is passed in the Authorization header of the request.",
description:"A service token in Infisical",
},
apiKeyAuth:{
type:"apiKey",
in:"header",
name:"X-API-Key",
description:'This security definition uses an API key, which is passed in the header of the request as the value of the "X-API-Key" header. The client must provide a valid key in order to access the API.',
Using this route requires understanding Infisical's system and cryptography.
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this [note](https://infisical.com/docs/api-reference/overview/examples/note).
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this [note](https://infisical.com/docs/api-reference/overview/examples/note).
Using this route requires understanding Infisical's system and cryptography.
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this [note](https://infisical.com/docs/api-reference/overview/examples/note).
Using this route requires understanding Infisical's system and cryptography.
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this [note](https://infisical.com/docs/api-reference/overview/examples/note).
Using this route requires understanding Infisical's system and cryptography.
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this [note](https://infisical.com/docs/api-reference/overview/examples/note).