gpg_key_id parameter
Delete a GPG key for the authenticated user
Removes a GPG key from the authenticated user’s GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:gpg_key
scope.
Path Parameters
Response
Response
Response
Path Parameters
List public SSH keys for the authenticated user
Lists the public SSH keys for the authenticated user’s GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least read:public_key
scope.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
application/json
Response
Response
Key
Query Parameters
Create a public SSH key for the authenticated user
Adds a public SSH key to the authenticated user’s GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least write:public_key
scope.
Body
application/json
Body
A descriptive name for the new key.
Example:Personal MacBook Air
The public SSH key to add to your GitHub account.
Match pattern:^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521)
Response
application/json
Response
Response
Key
Key
Body
Get a public SSH key for the authenticated user
View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least read:public_key
scope.
Path Parameters
key_id parameter
Response
application/json
Response
Response
Key
Key
Path Parameters
Delete a public SSH key for the authenticated user
Removes a public SSH key from the authenticated user’s GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key
scope.
Path Parameters
key_id parameter
Response
Response
Response