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

# Get agent configuration for a host

`GET /agent/public/setting/{token}/{hostId}`

This API fetches the current configuration and settings for the specified host. It supports both host-level and Kubernetes ingestion control configurations.

## Path parameters

- `token` string, required
- `hostId` string, required

## Response `200`

Host configuration and ingestion control settings

- 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` — Invalid or expired 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)
