---
title: "Get an agent and active-key metadata"
method: GET
path: "/agents/{agentId}"
tags: ["Agents"]
---

# Get an agent and active-key metadata

`GET /agents/{agentId}`

## Request

- Base URL: `https://app.arkova.ai/api/v1`
- URL: `https://app.arkova.ai/api/v1/agents/{agentId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`
  - HTTP bearer

JWT members may read. API keys require agents:manage.

## Response `200`

Tenant-scoped agent

- Agent
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `agent_type` string, required
  - `status` 'active' | 'suspended' | 'revoked', required
  - `allowed_scopes` string[], required
  - `framework` string, nullable
  - `version` string, nullable
  - `callback_url` string, uri, nullable
  - `metadata` object, nullable
  - `last_active_at` string, date-time, nullable: When an API key bound to this agent last authenticated (observed at authentication, throttled to about once a minute). Not a statement about what the request did.
  - `api_keys` AgentKeySummary[]
    - `id` string, uuid, required
    - `name` string, required
    - `key_prefix` string, required
    - `scopes` string[], required
    - `is_active` boolean, required
    - `last_used_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `expires_at` string, date-time, nullable
  - `recent_activity` AgentActivityItem[]: Agent detail only. The most recent anchors created with this agent's keys (newest first, at most 10), for the owning organization. Omitted when it cannot be read.
    - `public_id` string, required
    - `status` string, required
    - `credential_type` string, nullable, required
    - `created_at` string, date-time, required

## Other responses

- `401`: Missing, malformed, invalid, revoked, or expired credential
- `403`: Role, agents:manage, tenant, delegation, or provider scope ceiling denied
- `404`: Agent not found in caller tenant
- `409`: More than one credential was presented

---

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