---
title: "Get agent name for service"
method: GET
path: "/api/apm/settings/agent-configuration/agent_name"
tags: ["APM agent configuration"]
---

# Get agent name for service

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

**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/agent_name</span></div>

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

Retrieve `agentName` for a service.

## Query parameters

- `serviceName` string, required

## Headers

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

## Response `200`

Successful response

- APMUIServiceAgentNameResponse
  - `agentName` string — Agent name

## 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)
