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

# Get Agent by ID

`GET /agents/{agent_id}`

Retrieve detailed information about a specific agent.

## Path parameters

- `agent_id` string, required

## Response `200`

Agent details retrieved successfully

- Agent
  - `agent_id` string
  - `name` string
  - `description` string
  - `public_key` string, base64
  - `status` 'active' | 'inactive' | 'revoked'
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `last_seen_at` string, date-time, nullable

## Other responses

- `401` — Unauthorized - Invalid or missing authentication
- `404` — Not Found - Requested resource does not exist
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture.md) · [All operations](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrail/deepsecure-api-dual-service-architecture/versions/78627360c082/schema)
