---
title: "Get collection folders and env file import"
method: GET
path: "/targets/{id}/collection-folders/"
tags: ["API Collections"]
---

# Get collection folders and env file import

`GET /targets/{id}/collection-folders/`

## Request

- Base URL: `https://api.probely.com`
- URL: `https://api.probely.com/targets/{id}/collection-folders/`
- Auth: API key in header `Authorization`

Retrieve parsed collection folders with env file import support.
Generic — dispatches by api_schema_type (bruno, postman in future).

`GET /targets/<pk>/collection-folders/`
- Returns cached parse results
- Resolves env vars from the env file stored in api_scan_settings.selected_env_file
- Handles pending/error/ready states
- Auto-expires stale pending status

## Path parameters

- `id` string, required

## Response `200`

No response body

## Changes

- **2026-11-03** `0b2f6cbe644d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/probely/apis/snyk-api-web-s-api-reference-documentation/changes/targets/:id/collection-folders/get.md)

---

[API](https://skmtc.dev/probely/apis/snyk-api-web-s-api-reference-documentation.md) - [All operations](https://skmtc.dev/probely/apis/snyk-api-web-s-api-reference-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/probely/apis/snyk-api-web-s-api-reference-documentation/revisions/0b2f6cbe644d?raw)
