Skip to content

List all SSH keys for a user

GET
/api/v4/users/{user_id}/keys

Lists all SSH keys for a specified user account.

user_id
required
string

The ID or username of the user

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
id
integer format: int64
title
string
created_at
string format: date-time
expires_at
string format: date-time
last_used_at
string format: date-time
key
string
usage_type
string
Example
{
"id": 1,
"title": "Sample key 25",
"created_at": "2015-09-03T07:24:44.627Z",
"expires_at": "2020-09-03T07:24:44.627Z",
"last_used_at": "2020-09-03T07:24:44.627Z",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6Yjz\\\n GGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCdd\\\n NaP0L+hM7zhFNzjFvpaMgJw0=",
"usage_type": "auth"
}

Bad Request

Not Found