# GitHub Actions Secrets API

**Canonical:** https://apis.io/apis/github-actions/github-actions-secrets-api/  
**Provider:** GitHub Actions — https://apis.io/providers/github-actions/  
**Base URL:** https://api.github.com  
**Documentation:** https://docs.github.com/en/actions

GitHub Actions Secrets API is one of 11 APIs that [GitHub Actions](https://apis.io/providers/github-actions/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 9 JSON Schema definitions. Tagged areas include Secrets. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, a getting-started guide, an API reference, a changelog, and 9 JSON Schemas.

Manage encrypted secrets for Actions

## Operations (13)

| Method | Path | Summary |
|---|---|---|
| GET | `/repos/{owner}/{repo}/actions/secrets` | Github Actions List Repository Secrets |
| GET | `/repos/{owner}/{repo}/actions/secrets/public-key` | Github Actions Get a Repository Public Key |
| GET | `/repos/{owner}/{repo}/actions/secrets/{secret_name}` | Github Actions Get a Repository Secret |
| PUT | `/repos/{owner}/{repo}/actions/secrets/{secret_name}` | Github Actions Create or Update a Repository Secret |
| DELETE | `/repos/{owner}/{repo}/actions/secrets/{secret_name}` | Github Actions Delete a Repository Secret |
| GET | `/repos/{owner}/{repo}/actions/organization-secrets` | Github Actions List Repository Organization Secrets |
| GET | `/orgs/{org}/actions/secrets` | Github Actions List Organization Secrets |
| GET | `/orgs/{org}/actions/secrets/public-key` | Github Actions Get an Organization Public Key |
| GET | `/orgs/{org}/actions/secrets/{secret_name}` | Github Actions Get an Organization Secret |
| PUT | `/orgs/{org}/actions/secrets/{secret_name}` | Github Actions Create or Update an Organization Secret |
| DELETE | `/orgs/{org}/actions/secrets/{secret_name}` | Github Actions Delete an Organization Secret |
| GET | `/orgs/{org}/actions/secrets/{secret_name}/repositories` | Github Actions List Selected Repositories for an Organization Secret |
| PUT | `/orgs/{org}/actions/secrets/{secret_name}/repositories` | Github Actions Set Selected Repositories for an Organization Secret |

## Machine-readable artifacts (22)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/openapi/github-actions-secrets-api-openapi.yml
- **Documentation** — https://docs.github.com/en/rest/actions
- **Authentication** — https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api
- **GettingStarted** — https://docs.github.com/en/actions/get-started/quickstart
- **APIReference** — https://docs.github.com/en/rest/actions
- **ChangeLog** — https://github.blog/changelog/label/actions/
- **SDKs** — https://github.com/octokit/octokit.js
- **SDKs** — https://github.com/octokit/octokit.rb
- **SDKs** — https://github.com/octokit/octokit.net
- **SDKs** — https://github.com/google/go-github
- **CLI** — https://cli.github.com/manual/gh_workflow_run
- **RateLimits** — https://docs.github.com/en/rest/overview/rate-limits-for-the-rest-api
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-workflow-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-run-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-job-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-artifact-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-secret-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-runner-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-variable-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-cache-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-schema/github-actions-simple-user-schema.json
- **JSONLD** — https://raw.githubusercontent.com/api-evangelist/github-actions/refs/heads/main/json-ld/github-actions-context.jsonld

## Other GitHub Actions APIs (10)

- [GitHub Actions Artifacts API](https://apis.io/apis/github-actions/github-actions-artifacts-api/)
- [GitHub Actions Cache API](https://apis.io/apis/github-actions/github-actions-cache-api/)
- [GitHub Actions Jobs API](https://apis.io/apis/github-actions/github-actions-jobs-api/)
- [GitHub Actions OIDC API](https://apis.io/apis/github-actions/github-actions-oidc-api/)
- [GitHub Actions Permissions API](https://apis.io/apis/github-actions/github-actions-permissions-api/)
- [GitHub Actions Self-Hosted Runner Groups API](https://apis.io/apis/github-actions/github-actions-self-hosted-runner-groups-api/)
- [GitHub Actions Self-Hosted Runners API](https://apis.io/apis/github-actions/github-actions-self-hosted-runners-api/)
- [GitHub Actions Variables API](https://apis.io/apis/github-actions/github-actions-variables-api/)
- [GitHub Actions Workflow Runs API](https://apis.io/apis/github-actions/github-actions-workflow-runs-api/)
- [GitHub Actions Workflows API](https://apis.io/apis/github-actions/github-actions-workflows-api/)

## Tags

Secrets

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/github-actions/github-actions-secrets-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/github-actions/.
