---
title: "List organization secrets"
method: GET
path: "/orgs/{org}/agents/secrets"
tags: ["agents"]
---

# List organization secrets

`GET /orgs/{org}/agents/secrets`

Lists all secrets available in an organization 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 `admin:org` scope to use this endpoint. If the repository is private, the `repo` scope is also required.

## Path parameters

- `org` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- object
  - `total_count` integer, required
  - `secrets` OrganizationActionsSecret[], required
    - `name` string, required — The name of the secret.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `visibility` 'all' | 'private' | 'selected', required — Visibility of a secret
    - `selected_repositories_url` string, uri

## Changes

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

- **2026-05-06** `85e27cfef60d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/orgs/:org/agents/secrets/get.md)

---

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