Skip to main content

Get Tags from an Environment Variable

Endpoint: GET /api/environment/{name}/tags

Retrieves the tags associated with an environment variable.

Path parameters

ParameterDescriptionTypeRequired/ Optional
keyThe name of the environment variable from which the tags are to be retrieved.stringRequired.

Response

Returns an array of tag objects, each containing a key-value pair.

Examples

Get tags from an environment variable

Request

curl -X 'GET' \
'https://<YOUR-SERVER-URL>/api/environment/sampleKey/tags' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>'

Response

[
{
"key": "backend",
"value": "PR"
},
{
"key": "dev",
"value": "automation"
}
]