Examples

GET /api/users/988725677/ssh_keys
200
{
  "total": 1,
  "subtotal": 1,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-02-20 13:29:33 UTC",
      "updated_at": "2019-02-20 13:29:33 UTC",
      "id": 1,
      "name": "user6@example.com",
      "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCbHuscnTjO4FQjUWKmNqylgPSY/sq49Ra5mzN4MvfGXPVF1JByB9V04jrB/Gnvq2l8M8gntgmzF78D/l3+PKQLVOn108W4M/ZcoPOiN7GPGfkboW0Cee1yXQHLEvBF6JjADf5Flt+G/jQY93CtFTJwKt9Fa0jebEfpw0fMtIc9YozJZNbKlAUCWI7JH8IVauLnf7u8tHdrwLSTPqJz1CtnxN5wnFMe9qE+Ljpke4W6D8arg8pIFzFIT4RG0uhmKUOMF2Jd4Tego0kkybNEUtWSg9bugtObvc8000JXrPooGl26fqB6kDStflYw82ERkatnWDVqbNxY6Lk02fX3Jant foreman5@example.com",
      "length": 2048,
      "fingerprint": "b4:71:bc:e3:c2:db:63:9c:2d:04:18:b0:d2:25:52:fa"
    }
  ]
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

user_id
required

ID of the user

Validations:

  • Must be a String

search
optional

filter results

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

number of entries per request

Validations:

  • Must be a String

Search fields

Field name Type Possible values
name string
user_id integer