Amazon Lightsail Keypairs API

The Keypairs API from Amazon Lightsail — 6 operation(s) for keypairs.

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /ls/api/2016-11-28/CreateKeyPair Generate a new SSH key pair · Creates a custom SSH key pair that you can use with an Amazon Lightsail instance #
Ask an LLM
“How do I create a new SSH key pair for my instances?”
“Does Lightsail give me the private key when it creates a key pair?”
Tell an agent
Create SSH key pair {keyPairName}.
Generate a new key pair named {keyPairName} tagged {tags}.
POST /ls/api/2016-11-28/DeleteKeyPair Delete an SSH key pair · Deletes the specified key pair by removing the public key from Amazon Lightsail #
Ask an LLM
“How do I delete an SSH key pair I no longer use?”
“Can I make sure I delete the right key by its fingerprint?”
Tell an agent destructive · confirm first
Delete key pair {keyPairName}.
Delete {keyPairName} only if its fingerprint is {expectedFingerprint}.
POST /ls/api/2016-11-28/DownloadDefaultKeyPair Download the regional default key pair · Downloads the regional Amazon Lightsail default key pair #
Ask an LLM
“Where do I get the default SSH private key for this region?”
“Can I download the default key to SSH from my own terminal?”
Tell an agent
Download the default key pair for this region.
Get the regional default SSH key.
POST /ls/api/2016-11-28/GetKeyPair Get details of one key pair · Returns information about a specific key pair #
Ask an LLM
“What's the fingerprint of a particular key pair?”
“When was a specific key pair created?”
Tell an agent
Get key pair {keyPairName}.
Show the fingerprint of {keyPairName}.
POST /ls/api/2016-11-28/GetKeyPairs List all SSH key pairs · Returns information about all key pairs in the user's account #
Ask an LLM
“Which SSH key pairs exist in my account?”
“Can the key pair list include the default key pair?”
Tell an agent
List all my key pairs.
List key pairs including the default one ({includeDefaultKeyPair}).
POST /ls/api/2016-11-28/ImportKeyPair Import an existing public SSH key · Imports a public SSH key from a specific key pair #
Ask an LLM
“How do I use my own existing SSH key with Lightsail?”
“Can I upload a public key instead of generating one?”
Tell an agent
Import public key {publicKeyBase64} as {keyPairName}.
Upload my public SSH key {publicKeyBase64} under the name {keyPairName}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-lightsail:amazon-lightsail-keypairs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-lightsail-keypairs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon Lightsail Key Pairs API
  description: Amazon Lightsail is the easiest way to get started with Amazon Web Services (AWS) for developers who need to build websites or web applications.
  version: '2016-11-28'
  contact:
    name: AWS Support
    url: https://aws.amazon.com/premiumsupport/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  x-logo:
    url: https://a0.awsstatic.com/libra-css/images/logos/aws_logo_smile_1200x630.png
  x-generated-from: AWS Smithy 2.0 service model (https://github.com/aws/api-models-aws) — mechanical transform, no hand-authored operations
servers:
- url: https://lightsail.us-east-1.amazonaws.com
  description: Amazon Lightsail regional endpoint (us-east-1). Lightsail is regional — one endpoint per AWS Region, lightsail.{region}.amazonaws.com (IPv4) or lightsail.{region}.api.aws (dual-stack). See https://docs.aws.amazon.com/general/latest/gr/lightsail.html
security:
- sigv4: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/amazon-lightsail/refs/heads/main/openapi/amazon-lightsail-keypairs-api-openapi.yml