---
title: "List all the keys registered under an Agent in an Organization."
method: GET
path: "/orgs/{orgId}/agents/{agentId}/keys"
tags: ["Agents", "public"]
---

# List all the keys registered under an Agent in an Organization.

`GET /orgs/{orgId}/agents/{agentId}/keys`

## Path parameters

- `orgId` string, required
- `agentId` string, required

## Response `200`

Successful list response.

- Key[]
  - `fingerprint` string, required — The Key fingerprint (sha256 hash of the DER representation of the key).
  - `public_key` string, required — A pcks8 RSA ublic key PEM encoded.
  - `created_at` string, date-time, required — Time of the Key being registered.
  - `created_by` string, required — User ID of user that added the Key.
  - `expired_at` string, date-time, required — Time when the Key should be replaced (2 years after its creation).
  - `is_authorized` boolean, required — If this key has been authorized to be used to validate requests coming from an Agent.

## Other responses

- `404` — Either the resource or a related resource could not be found. More detail can be found in the error body.

---

[API](https://skmtc.net/humanitec/apis/humanitec-api.md) · [All operations](https://skmtc.net/humanitec/apis/humanitec-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanitec/humanitec-api/revisions/e21ad140ec3c/schema)
