---
title: "Retrieve details on an agent"
method: GET
path: "/api/v4/projects/{id}/cluster_agents/{agent_id}"
tags: ["cluster_agents"]
---

# Retrieve details on an agent

`GET /api/v4/projects/{id}/cluster_agents/{agent_id}`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/cluster_agents/{agent_id}`
- Auth: none declared

Retrieves details on a specified agent. You must have the Developer, Maintainer, or Owner role to use this endpoint.

## Path parameters

- `id` string, required
- `agent_id` integer, required

## Response `200`

Retrieve details on an agent

- APIEntitiesClustersAgent: API_Entities_Clusters_Agent model
  - `id` integer, required
  - `name` string, required
  - `config_project` APIEntitiesProjectIdentity, required
    - `id` integer, required
    - `description` string, required
    - `name` string, required
    - `name_with_namespace` string, required
    - `path` string, required
    - `path_with_namespace` string, required
    - `created_at` string, date-time, required
  - `created_at` string, date-time, required
  - `created_by_user_id` integer, required
  - `is_receptive` boolean, required

---

[API](https://skmtc.dev/gitlab/apis/gitlab-api.md) - [All operations](https://skmtc.dev/gitlab/apis/gitlab-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitlab/apis/gitlab-api/revisions/b234947ef3f2?raw)
