Huddle01 Cloud
Keypairs

Create key pair

Import an SSH public key as a named key pair. The key pair is shared across all regions within the workspace and can be referenced by name when creating instances.

POST
/keypairs

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication. Generate from the Huddle01 Cloud dashboard.

In: header

Header Parameters

Idempotency-Key?string

Unique key to ensure idempotent request handling

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://cloud.huddleapis.com/api/v1/keypairs" \  -H "Content-Type: application/json" \  -d '{    "name": "my-ssh-key",    "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI..."  }'
{
  "id": "string",
  "name": "string",
  "public_key": "string",
  "fingerprint": "string",
  "created_at": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}
{
  "success": false,
  "error": "Invalid request"
}