---
title: "Get agent secrets metadata"
method: GET
path: "/agents/{agentKey}/secrets"
tags: ["Agents Settings"]
---

# Get agent secrets metadata

`GET /agents/{agentKey}/secrets`

Returns metadata for all secrets associated with an agent (does not return secret values)

## Path parameters

- `agentKey` string, required

## Response `200`

- AgentSettingsApiAgentSecretMetadata[]
  - `createdBy` string
  - `id` string
  - `description` string
  - `createdAt` string, date-time
  - `lastUsedAt` string, date-time

---

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