Huddle01 Cloud
Keypairs

List key pairs

List all key pairs for the authenticated user.

GET
/keypairs
x-api-key<token>

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://cloud.huddleapis.com/api/v1/keypairs"
{
  "keypairs": [
    {
      "id": "kp-f3d1a2b",
      "name": "prod-bastion-key",
      "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBexamplekey user@example.com",
      "fingerprint": "3b:16:6a:2e:21:c6:be:3e:54:aa:94:63:34:fc:d1:1a",
      "created_at": "2024-03-18T10:20:00Z",
      "updated_at": "2024-03-18T10:22:00Z"
    }
  ]
}
{
  "message": "Unauthorized",
  "error": {
    "code": "UNAUTHORIZED",
    "message": "x-api-key header missing",
    "type": "auth"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}
{
  "message": "Internal server error",
  "error": {
    "code": "INTERNAL_ERROR",
    "message": "Failed to create instance",
    "type": "server"
  },
  "timestamp": "2024-03-18T10:22:00Z"
}