---
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

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
