---
title: "List Collection Variable References"
method: GET
path: "/targets/{id}/get_collection_variables/"
tags: ["Targets"]
---

# List Collection Variable References

`GET /targets/{id}/get_collection_variables/`

## Request

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

Return the sorted, de-duplicated list of variable names the target's Postman or Bruno collection *reads* — from ``{{placeholder}}`` references in URLs, headers, bodies and auth blocks, and from ``pm.environment.get('name')`` / ``bru.getVar('name')`` / ``bru.getEnvVar('name')`` calls in pre-request and test scripts. Setter calls are intentionally excluded; globals-scope getters (``pm.globals.get`` / ``bru.getGlobalEnvVar``) are also excluded because the engine only seeds env-scope, so surfacing them would produce silent misses at scan time.

Only Postman/Bruno targets are supported; other schema types return 400. Malformed per-entry Bruno YAML is skipped so a collection accepted at upload time still yields a usable dropdown.

## Path parameters

- `id` string, required: A unique Base58 value identifying this object.

## Response `200`

- CollectionVariableReads
  - `results` string[], required

## Other responses

- `400`
- `401`
- `404`
- `500`

## 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/get_collection_variables/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)
