---
title: "Get agent configuration for a specific host"
method: GET
path: "/agent/setting/{hostId}"
tags: ["AGENT PRIVATE ROUTES"]
---

# Get agent configuration for a specific host

`GET /agent/setting/{hostId}`

This API fetches the current configuration and settings for a specified host. It also applies ingestion control schema transformations for Kubernetes agents.

## Path parameters

- `hostId` string, required

## Response `200`

Agent configuration settings for the given host

- AgentAgentSettingModels
  - `account_id` integer
  - `config` object
  - `config_null` object
  - `created_at` string
  - `group_id` SqlNullInt64
    - `int64` integer
    - `valid` boolean — Valid is true if Int64 is not NULL
  - `host_id` string
  - `id` integer
  - `meta_data` object
  - `meta_data_null` object
  - `project_id` integer
  - `token` string
  - `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)
