HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: SSHKey

Location: n/a

Formats: XML, JSON

Returns a SSH key by id.

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/user/ssh_keys/8.xml

Response:

Content-Type: application/xml; charset=utf-8
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ssh-key>
    <finger-print>f4692acd0962772397f25daeadb27361</finger-print>
    <title>desktop@home</title>
    <read-only type="boolean">false</read-only>
    <id type="integer">8</id>
    <key>ssh-dss AAAAB3Nza...TZSw== op@m06</key>
</ssh-key>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/user/ssh_keys/8.xml

Response:

Content-Type: application/json; charset=utf-8
Status: 200
...

{
"finger_print":"f4692acd0962772397f25daeadb27361",
"title":"desktop@home",
"read_only":false,
"id":8,
"key":"ssh-dss AAAAB3N...nTZSw== op@m06\n"
}