Keypair

List key pairs

Retrieves a list of your existing SSH key pairs, providing details for each. See SSH keys for additional information.

get/core/keypairs

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/core/keypairs
  • Auth: API key in header api_key

Query parameters

pageinteger

Page number of results to return.

pageSizeinteger

Data Per Page

searchstring

Filter results by case-insensitive substring match against the resource name.

Response

Retrieval of key pairs list successful.

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

pageinteger nullable

1-indexed page number of the current result set.

page_sizeinteger nullable

Number of items per page in the current result set.

countinteger

Number of items returned in the current page.

Example response

{
  "status": true,
  "message": "Getting user keypairs successful",
  "keypairs": [
    {
      "id": 4501,
      "name": "example-keypair",
      "environment": {
        "id": 6190,
        "name": "example-environment",
        "features": {
          "green_status": "GREEN"
        }
      },
      "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOu6TJudyoheKvyDdnr8HYCBNjJVT79bq9EGuDHdR3e3 user@example.com",
      "fingerprint": "ff:00:4b:02:8e:43:b6:75:03:7c:52:52:df:82:9d:58",
      "created_at": "2026-05-07T11:47:30Z"
    }
  ],
  "count": 6
}

Changes

No recorded changes to this operation across all 1 revision of this API.