---
title: "List repository secrets"
method: GET
path: "/repos/{owner}/{repo}/agents/secrets"
tags: ["agents"]
---

# List repository secrets

`GET /repos/{owner}/{repo}/agents/secrets`

Lists all secrets available in a repository without revealing their encrypted
values.

Authenticated users must have collaborator access to a repository to create, update, or read secrets.

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- object
  - `total_count` integer, required
  - `secrets` ActionsSecret[], required
    - `name` string, required — The name of the secret.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Changes

> 62 revisions in range; 1 not diffed, 2 could not be searched.

- **2026-05-06** (2022-11-28) `283303416f96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/rest/changes/repos/:owner/:repo/agents/secrets/get.md)

---

[API](https://skmtc.dev/github/apis/rest.md) · [All operations](https://skmtc.dev/github/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/rest/revisions/5bded2c77b93/schema)
