Get label values
GET
/api/v1/groups/labels/{key}/values
const url = 'http://localhost:3000/api/v1/groups/labels/environment/values';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/groups/labels/environment/values \ --header 'X-API-Key: <X-API-Key>'Retrieves all unique values for a specific label key.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” key
required
string
Example
environmentLabel key
Responses
Section titled “ Responses ”Label values retrieved successfully
Media type application/json
object
key
required
The label key
string
values
required
List of unique values for this label key
Array<string>
Example
{ "key": "environment", "values": [ "production", "staging", "development" ]}Unauthorized
Forbidden — caller lacks required permission