apicheats.dev Cheat sheet Raw .md
POST

Try POST /user/gpg_keys — GitHub API

GitHub playground

Create a GPG key for the authenticated user

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Body application/json

2 body fields
  • name · optional · string — A descriptive name for the new key.
  • armored_public_key · required · string — A GPG key in ASCII-armored format.