---
title: "Get configuration group by name or ID"
method: GET
path: "/agent/setting/config-groups/{g}"
tags: ["AGENT PRIVATE ROUTES"]
---

# Get configuration group by name or ID

`GET /agent/setting/config-groups/{g}`

This API retrieves the configuration settings and associated host IDs for a given configuration group name or ID.

## Path parameters

- `g` string, required

## Query parameters

- `agent_type` string

## Response `200`

Configuration settings for the given group

- AgentSaveHostResponse
  - `account_id` integer
  - `agent_type` 'host' | 'k8s' | 'serverless'
  - `config` object
  - `config_null` object
  - `created_at` string
  - `hostIds` string[]
  - `id` integer
  - `meta_data` object
  - `meta_data_null` object
  - `name` string
  - `project_id` integer
  - `updated_at` string

## Other responses

- `401` — Unauthorized or invalid token
- `500` — Internal server error

---

[API](https://skmtc.net/middleware/apis/middleware-api.md) · [All operations](https://skmtc.net/middleware/apis/middleware-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/middleware/middleware-api/revisions/614091456d31/schema)
