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

Add an SSH or GPG authentication key to a user

post
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired

Name of the user.

Body
keystringRequired
key_typestring · enumRequiredPossible values:
namestringRequired
Responses
201

Authentication key added.

No content

post/api/v1/user/{username}/auth_key
POST /api/v1/user/{username}/auth_key HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "key": "text",
  "key_type": "ssh",
  "name": "text"
}

No content

Last updated

Was this helpful?