How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Keys API

The Keys API from GitHub — 18 operation(s) for keys.

GitHub Keys API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Keys. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 13 operations across 9 paths, and defines 7 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

13 operations 9 paths 7 schemas 3 DELETE8 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Keys API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 13

Across 9 paths, the API surfaces 13 operations — 3 DELETE, 8 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Keys 13
GET
/setup/api/settings/authorized-keys
GitHub Get All Authorized Ssh Keys
getAllAuthorizedSshKeys → 200401
POST
/setup/api/settings/authorized-keys
GitHub Add an Authorized Ssh Key
addAnAuthorizedSshKey body → 201401
DELETE
/setup/api/settings/authorized-keys
GitHub Remove an Authorized Ssh Key
removeAnAuthorizedSshKey body → 200401
GET
/orgs/{org}/actions/secrets/public-key
GitHub Get an Organization Public Key
getAnOrganizationPublicKey 1 param → 200
GET
/orgs/{org}/dependabot/secrets/public-key
GitHub Get an Organization Public Key
getAnOrganizationPublicKey 1 param → 200
DELETE
/repos/{owner}/{repo}/actions/caches
GitHub Delete Github Actions Caches for Repository (using Cache Key)
deleteGithubActionsCachesForRepositoryUsingCacheKey 7 params → 200
GET
/repos/{owner}/{repo}/actions/secrets/public-key
GitHub Get Repository Public Key
getRepositoryPublicKey 5 params → 200
GET
/repos/{owner}/{repo}/dependabot/secrets/public-key
GitHub Get Repository Public Key
getRepositoryDependabotSecretsPublicKey 5 params → 200
GET
/repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key
GitHub Get an Environment Public Key
getAnEnvironmentPublicKey 6 params → 200
GET
/repos/{owner}/{repo}/keys
GitHub List Deploy Keys
listDeployKeys 7 params → 200
POST
/repos/{owner}/{repo}/keys
GitHub Create Deploy Key
createDeployKey 5 params body → 201422
GET
/repos/{owner}/{repo}/keys/{key_id}
GitHub Get Deploy Key
getDeployKey 6 params → 200404
DELETE
/repos/{owner}/{repo}/keys/{key_id}
GitHub Delete Deploy Key
deleteDeployKey 6 params → 204

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are deploy-key (9 properties), actions-public-key (6 properties), basic-error (4 properties), validation-error (3 properties). Each schema is shown below with its type and property counts.

ssh-key
object
2 properties
actions-public-key
object
The public key used for setting Actions Secrets.
6 properties 2 required
dependabot-public-key
object
The public key used for setting Dependabot Secrets.
2 properties 2 required
actions-cache-list
object
Repository actions caches
2 properties 2 required
basic-error
object
Basic Error
4 properties
validation-error
object
Validation Error
3 properties 2 required
deploy-key
object
An SSH key granting access to a single repository.
9 properties 7 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-keys-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Keys API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.