---
title: "Get collection environment variables"
method: GET
path: "/targets/{id}/collection-env-vars/"
tags: ["API Collections"]
---

# Get collection environment variables

`GET /targets/{id}/collection-env-vars/`

## Request

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

`GET /targets/<pk>/collection-env-vars/?file=<path>`

Returns resolved environment variables from a specific env file
in the collection for import into custom_api_parameters.
Generic — dispatches by api_schema_type.

## 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-env-vars/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)
