[FR] Not possible to get certain information regarding Deploy Keys via API

I would like to get the following information regarding Deploy Keys through the API:

  • who added Deploy Key

  • when was the last time a Deploy Key was used

Here is an example of current response from List deploy keys API Endpoint

[
  {
    "id": 1,
    "key": "ssh-rsa AAA...",
    "url": "https://api.github.com/repos/octocat/Hello-World/keys/1",
    "title": "octocat@octomac",
    "verified": true,
    "created_at": "2014-12-10T15:53:42Z",
    "read_only": true
  }
]

These information are available through UI.

Is there any chance that you could add these information to response of the List deploy keys API Endpoint?

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Please let me know if you have any other questions.

1 Like