# GET /users/{name}/ssh-keys

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the users group.

List a customer's SSH public keys

- Who may call it: administrator, reseller, customer
- Token scope, any of: users, read, all
- Answers: 200 OK

Administrators, the customer's reseller and the customer can list the SSH keys UrbeStack manages for the account. The response returns them in keys in ascending id order. Each entry includes id, user, label, type, key, fingerprint and created_at.

## Parameters

- `name` (path, Username, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/users/alice/ssh-keys" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "keys": [
    {
      "created_at": "2026-09-09T10:15:00Z",
      "fingerprint": "text",
      "id": 1,
      "key": "panel.port",
      "label": "my laptop",
      "type": "rebuild",
      "user": "alice"
    }
  ]
}
```

## Errors

- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
