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

# Get Agent

`GET /v1/agents/{agent_id}`

## Request

- Base URL: `https://api.usekeel.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usekeel.io/v1/agents/{agent_id}`
- Auth: none declared

Get agent details + credential status.

## Path parameters

- `agent_id` string, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Response `200`

Successful Response

- AgentResponse
  - `id` string, required
  - `name` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `credential` CredentialStatus
    - `credential_id` string, required
    - `name` string, nullable
    - `active` boolean, required
    - `last_used_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `revoked_at` string, date-time, nullable
    - `requests_7d` integer, nullable
    - `errors_7d` integer, nullable
    - `last_status` integer, nullable
  - `service_name` string, nullable
  - `scopes` string[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usekeel/apis/keel-api.md) · [All operations](https://skmtc.dev/usekeel/apis/keel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usekeel/apis/keel-api/revisions/3191ca10b0ab?raw)
