---
title: "Get Agent by ID"
method: GET
path: "/v1/agents/{id}"
tags: ["agents"]
---

# Get Agent by ID

`GET /v1/agents/{id}`

## Headers

- `x-api-key` string

## Response `200`

OK

- object
  - `agent` AgentItem
    - `name` string, required
    - `os` string, required
    - `arch` string, required
    - `tunnel_ip` string, required
    - `tunnel_port` string, required
    - `client_ip` string, required
    - `username` string, required
    - `token` string, required
    - `id` string, required
    - `last_update` string
    - `status` string, required
    - `tags` string[]
    - `networks` string[]
    - `network_subnets` string[]
    - `type` string, required

## Other responses

- `404` — Not Found

## Changes

- **2025-11-18** `41ee26b930f3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/agents/:id/get.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/b69f036fb8ff/schema)
