---
title: "Get single agent configuration"
method: GET
path: "/api/apm/settings/agent-configuration/view"
tags: ["APM agent configuration"]
---

# Get single agent configuration

`GET /api/apm/settings/agent-configuration/view`

**Spaces method and path for this operation:**

<div><span class="operation-verb get">get</span>&nbsp;<span class="operation-path">/s/{space_id}/api/apm/settings/agent-configuration/view</span></div>

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Retrieve a single agent configuration matching the given service name and environment. You must have `read` privileges for the APM and User Experience feature in Kibana. If no matching configuration is found, the API returns a 404.

## Query parameters

- `name` string
- `environment` string

## Headers

- `elastic-api-version` '2023-10-31', required

## Response `200`

Successful response

- APMUISingleAgentConfigurationResponse — Agent configuration
  - `id` string, required
  - `@timestamp` number, required — Timestamp
  - `agent_name` string — Agent name
  - `applied_by_agent` boolean — Applied by agent
  - `etag` string, required — `etag` is sent by the APM agent to indicate the `etag` of the last successfully applied configuration. If the `etag` matches an existing configuration its `applied_by_agent` property will be set to `true`. Every time a configuration is edited `applied_by_agent` is reset to `false`.
  - `service` APMUIServiceObject, required — Service
    - `environment` string — The environment of the service.
    - `name` string — The name of the service.
  - `settings` APMUISettingsObject, required — Agent configuration settings

## Other responses

- `400` — Bad Request response
- `401` — Unauthorized response
- `404` — Not found response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
