> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Organization Secrets

Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [GitHub documentation](https://docs.github.com/rest/reference/actions#list-organization-secrets).

## Parameters

| Parameter | Description |
| - | - |
| Org | The organization name. The name is not case sensitive. |
| Page | Page number of the results to fetch. |
| Per Page | The number of results per page (max 100). |
| Return All Pages | Automatically fetch all resources, page by page. |

## Example Output

```json theme={"dark"}
{
	"value": {
		"secrets": [
			{
				"created_at": "2019-08-10T14:59:22Z",
				"name": "GIST_ID",
				"updated_at": "2020-01-10T14:59:22Z",
				"visibility": "private"
			},
			{
				"created_at": "2019-08-10T14:59:22Z",
				"name": "DEPLOY_TOKEN",
				"updated_at": "2020-01-10T14:59:22Z",
				"visibility": "all"
			},
			{
				"created_at": "2019-08-10T14:59:22Z",
				"name": "GH_TOKEN",
				"selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories",
				"updated_at": "2020-01-10T14:59:22Z",
				"visibility": "selected"
			}
		],
		"total_count": 3
	}
}
```

## Workflow Library Example

[List Organization Secrets with Github and Send Results Via Email](https://library.blinkops.com/workflows/list-organization-secrets-with-github-and-send-results-via-email)

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/list-organization-secrets-with-github-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/list-organization-secrets-with-github-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.