Get

  • GET
  • /user
  • /keys
  • /:key_id

Returns the public SSH key of the authorized user.

Request

REQUIRED SCOPES
USER_KEY
URL PARAMETERS
key_idrequired integer
The key ID.

Last modified on Sep 23, 2024

Example:

CURL
curl -X GET "https://api.buddy.works/user/keys/:key_id" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json" \
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/user/keys/1", "html_url": "https://app.buddy.works/my-id", "id": 1, "title": " BuddyKey", "content": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCG0Ug3U8DoJ6+z36D2h2+oc4UoQRihLNGcAO9SHglFXp+dn1aGJrqeoOrmo4bj5AcydjY33Ylm7ixZEe85vD5INCeldMd8JGmZTj57mwzqpKXFrag+/v9F9qmSEPxKZ1cQj7Q/nRi/hJIoJbsxymrxWhdJZnDNeqwdusR78Xkftw== BuddyKey" }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999