For the complete documentation index, see llms.txt. This page is also available as Markdown.

List SSH and GPG authentication keys of a user

get
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired

Name of the user.

Responses
200

All authentication keys of the user.

application/json
object[]Optional
get/api/v1/user/{username}/auth_key
GET /api/v1/user/{username}/auth_key HTTP/1.1
Accept: */*
[
  {
    "id": 1,
    "key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI...",
    "key_type": "ssh",
    "name": "laptop",
    "user_id": 1,
    "yubikey_id": null,
    "yubikey_name": null,
    "yubikey_serial": null
  }
]

Last updated

Was this helpful?