Public SSH keys API

Why

I created this API because I wanted to update the access keys of my server with my Github keys. Once there was an API endpoint to get the keys of a user in text form but that disappeared. So I created this API to get those keys. While doing that I also export the keys in other formats.

Reference

All api urls can return different formats:

Select what format you want:

Using the format query parameter:

GET /api/services?format=text HTTP/1.1

GET /api/services?format=json HTTP/1.1

GET /api/services?format=xml HTTP/1.1

Using Accept header:

GET /api/services HTTP/1.1
Accept: text/text

GET /api/services HTTP/1.1
Accept: application/json

GET /api/services HTTP/1.1
Accept: text/xml

GET /api/services HTTP/1.1
Accept: application/xml

Get all available services

GET /api/services HTTP/1.1

Get keys for a user from a specific service

GET /api/keys/github/thekingdave HTTP/1.1

Get keys for a user from default service

GET /api/keys/thekingdave HTTP/1.1

Services

Disclaimer

This API is not a high availability API. There can be down times. Of course I will try to make them short and few. This project was developed in my free time. There could be bugs. If you find one please report it to me.

David Langheiter<david@langheiter.com> https://davidlangheiter.com

© David Langheiter 2020