Access User's Public SSH & Public GPG Keys

schema-request

#1

The v3 API supports fetching a user’s public SSH and public GPG keys:

https://developer.github.com/v3/users/keys/
https://developer.github.com/v3/users/gpg_keys/

However, I can’t find how to do it via v4 API. From the above docs it sounds like this is an experimental feature for v3. Does that mean something similar won’t be supported in v4? The closest thing I could find in the docs was:

https://developer.github.com/v4/reference/object/gpgsignature/

But that of course is not the same thing. :frowning:


#2

Hi @quantumpacket,

We don’t have that in the GraphQL Schema yet, but I’ve added it to our internal issue tracker to prioritize. In the mean time, you should be able to fetch public SSH keys from a URL like this one as well: https://github.com/bswinnerton.keys.


#3

Hey @quantumpacket

We’ve just added the publicKeys connection on the User object! :slight_smile: