Get label keys
GET
/api/v1/groups/labels
const url = 'http://localhost:3000/api/v1/groups/labels';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 \ --header 'X-API-Key: <X-API-Key>'Retrieves all unique label keys used in the organization.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Label keys retrieved successfully
Media type application/json
object
keys
required
List of unique label keys used in the organization
Array<string>
Example
{ "keys": [ "environment", "region", "tier", "version" ]}Unauthorized
Forbidden — caller lacks required permission