Amazon KMS Kms Operations API

The Kms Operations API from Amazon KMS — 21 operation(s) for kms operations.

GitHub OpenAPI
Business capability
Cybersecurity Management BC-620

Operations 30

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 /#Decapsulate Recover an ML-KEM shared secret from its ciphertext · Decapsulate #
Ask an LLM
“How do I recover the shared secret from an ML-KEM ciphertext?”
“Can I decrypt an ML-KEM encapsulated key in a China Region?”
Tell an agent
Decapsulate ML-KEM ciphertext {ciphertext} using key {key}.
Recover the shared secret from {ciphertext} with encapsulation algorithm {algorithm}.
POST /#Decrypt Decrypt ciphertext encrypted by KMS · Decrypt #
Ask an LLM
“How do I decrypt ciphertext that KMS encrypted?”
“Can I decrypt asymmetric ciphertext under a different KMS key?”
Tell an agent
Decrypt ciphertext {ciphertext} with KMS key {key}.
Decrypt {ciphertext} using encryption algorithm {algorithm}.
POST /#DeriveSharedSecret Derive a shared secret from a peer's public key · Derive Shared Secret #
Ask an LLM
“How do I derive a shared secret from an ECC public key?”
“Can I use ECDH key agreement with a peer's public key?”
Tell an agent
Derive a shared secret from public key {public_key} using key {key}.
Use key agreement algorithm {algorithm} to derive a shared secret with {public_key}.
POST /#Encapsulate Encapsulate a shared secret into ciphertext · Encapsulate #
Ask an LLM
“How do I generate an ML-KEM ciphertext of a shared secret?”
“Can I encapsulate a shared secret for a peer to decapsulate?”
Tell an agent
Encapsulate a shared secret with key {key}.
Encapsulate a shared secret using encapsulation algorithm {algorithm}.
POST /#Encrypt Encrypt plaintext with a KMS key · Encrypt #
Ask an LLM
“How do I encrypt a small secret with a KMS key?”
“Can I encrypt plaintext under an asymmetric KMS key?”
Tell an agent
Encrypt {plaintext} with KMS key {key}.
Encrypt {plaintext} under asymmetric key {key} with algorithm {algorithm}.
POST /#ReEncrypt Decrypt and re-encrypt ciphertext under another KMS key · Re Encrypt #
Ask an LLM
“How do I rotate the KMS key protecting ciphertext?”
“Can I change the encryption context of ciphertext?”
Tell an agent
Re-encrypt ciphertext {ciphertext} under key {key}.
Re-encrypt {ciphertext} from key {source} to key {destination}.
POST /#Sign Create a digital signature for a message · Sign #
Ask an LLM
“How do I sign a message with an asymmetric KMS key?”
“Can I sign a message digest instead of the raw message?”
Tell an agent
Sign {message} with key {key} using signing algorithm {algorithm}.
Sign message digest {message} with key {key} and algorithm {algorithm}.
POST /#Verify Verify a digital signature · Verify #
Ask an LLM
“How do I verify a signature generated by KMS?”
“Does the signature verification confirm the message hasn't changed?”
Tell an agent
Verify signature {signature} of {message} with key {key} and algorithm {algorithm}.
Check that signature {signature} on {message} was made with key {key} using {algorithm}.
POST /#VerifyMac Verify a hash-based message authentication code · Verify Mac #
Ask an LLM
“How do I verify an HMAC on a message?”
“Can I confirm a message was signed with a specific HMAC KMS key?”
Tell an agent
Verify HMAC {mac} on {message} with key {key} using MAC algorithm {algorithm}.
Check that HMAC {mac} matches the message {message} under key {key} and {algorithm}.
POST /#CancelKeyDeletion Cancel the scheduled deletion of a KMS key · Cancel Key Deletion #
Ask an LLM
“How do I stop a KMS key from being deleted?”
“Can I bring a key back after scheduling its deletion?”
Tell an agent destructive · confirm first
Cancel the deletion of KMS key {key}.
Stop the scheduled deletion of key {key}.
POST /#ScheduleKeyDeletion Schedule a KMS key for deletion · Schedule Key Deletion #
Ask an LLM
“How do I delete a KMS key after a waiting period?”
“Can I choose a 7- to 30-day waiting period before deleting a key?”
Tell an agent destructive · confirm first
Schedule KMS key {key} for deletion.
Delete key {key} after {days} days.
POST /#DeleteImportedKeyMaterial Delete imported key material from a KMS key · Delete Imported Key Material #
Ask an LLM
“How do I make imported key material unusable?”
“Can I remove a specific imported key material version?”
Tell an agent destructive · confirm first
Delete imported key material from KMS key {key}.
Remove imported key material {material} from key {key}.
POST /#GenerateDataKey Generate a symmetric data key for use outside KMS · Generate Data Key #
Ask an LLM
“How do I get a plaintext data key and an encrypted copy for my app?”
“Can I choose the length of the data key?”
Tell an agent
Generate a data key for KMS key {key}.
Generate a {bytes}-byte data key for key {key}.
POST /#GenerateDataKeyWithoutPlaintext Generate an encrypted-only symmetric data key · Generate Data Key Without Plaintext #
Ask an LLM
“Can I get an encrypted symmetric data key with no plaintext copy, to use for encryption later?”
“How do I create a data key that I only decrypt when I'm ready to encrypt data?”
Tell an agent
Generate an encrypted-only {key_spec} data key under KMS key {key_id}, with no plaintext copy returned.
Create an encrypted-only data key of {num_bytes} bytes under {key_id} that I will decrypt later.
POST /#GenerateDataKeyPair Generate a signed data key pair with plaintext · Generate Data Key Pair #
Ask an LLM
“How do I get a public and private key pair for signing outside KMS?”
“Which key types can I generate for a data key pair?”
Tell an agent
Generate a {key_pair_spec} data key pair under key {key_id}.
Generate a {key_pair_spec} key pair for recipient {recipient}, encrypted with {key_id}.
POST /#GenerateDataKeyPairWithoutPlaintext Generate a signed data key pair without plaintext · Generate Data Key Pair Without Plaintext #
Ask an LLM
“Is there a way to get the public key and encrypted private key but not the plaintext private key?”
“Can I generate a key pair for signing that keeps the private key secret?”
Tell an agent
Generate a {key_pair_spec} data key pair for key {key_id} without plaintext.
Create an encrypted private key for key pair {key_pair_spec} on {key_id}, keeping the private key secret.
POST /#GenerateMac Generate an HMAC for a message · Generate Mac #
Ask an LLM
“How do I create a message authentication code for a message with an HMAC KMS key?”
“Can I verify a message hasn't changed using an HMAC and the VerifyMac operation?”
Tell an agent
Generate an HMAC for message {Message} using HMAC key {KeyId} and algorithm {MacAlgorithm}.
Create a MAC for {Message} with key {KeyId} and MAC algorithm {MacAlgorithm}.
POST /#GenerateRandom Generate a cryptographically random byte string · Generate Random #
Ask an LLM
“How do I get a random byte string that KMS generates for me?”
“Can I generate random bytes in a CloudHSM cluster or Nitro Enclave instead?”
Tell an agent
Generate {NumberOfBytes} random bytes.
Generate a random byte string in CloudHSM cluster {CustomKeyStoreId}.
POST /#GetKeyLastUsage Get the last cryptographic usage of a key · Get Key Last Usage #
Ask an LLM
“When was a KMS key last used for a successful cryptographic operation?”
“What operation type and CloudTrail event ID came with the key's most recent use?”
Tell an agent
Show the last usage of key {KeyId}.
Get the operation type, timestamp and CloudTrail event ID for the most recent use of {KeyId}.
POST /#GetKeyRotationStatus Check whether automatic key rotation is enabled · Get Key Rotation Status #
Ask an LLM
“Is automatic rotation of a KMS key's material turned on?”
“When is the next scheduled rotation of a key?”
Tell an agent
Get the rotation status of key {KeyId}.
Show whether automatic rotation is enabled for {KeyId} and when the next rotation is due.
POST /#GetParametersForImport Get the public key and import token for key material · Get Parameters For Import #
Ask an LLM
“How do I import my own key material into a KMS key?”
“What wrapping algorithm and key spec do I need to protect key material during import?”
Tell an agent
Get the import parameters for key {KeyId} using wrapping algorithm {WrappingAlgorithm} and key spec {WrappingKeySpec}.
Prepare to import key material into {KeyId} with wrapping algorithm {WrappingAlgorithm} and wrapping key spec {WrappingKeySpec}.
POST /#GetPublicKey Get the public key of an asymmetric KMS key · Get Public Key #
Ask an LLM
“How do I download the public key of an asymmetric KMS key?”
“Can I share a KMS key's public key so others can encrypt or verify signatures?”
Tell an agent
Get the public key of asymmetric key {KeyId}.
Download the public key for {KeyId} so others can encrypt messages with it.
POST /#ImportKeyMaterial Import key material into a key with no material · Import Key Material #
Ask an LLM
“How do I import my own key material into a KMS key that was created without key material?”
“Can I set an expiration date on imported key material?”
Tell an agent
Import key material {EncryptedKeyMaterial} into key {KeyId} using import token {ImportToken}.
Import key material {EncryptedKeyMaterial} into {KeyId} with token {ImportToken} and expiration {ValidTo}.
POST /#ListAliases List KMS key aliases · List Aliases #
Ask an LLM
“Which aliases are associated with a particular KMS key?”
“Can I list only the aliases in my account and region?”
Tell an agent
List aliases for key {KeyId}.
Show all aliases in my account and region.
POST /#ListResourceTags List tags on a KMS key · List Resource Tags #
Ask an LLM
“What tags are on a customer managed KMS key?”
“Can I see the tag keys and values for a key?”
Tell an agent
List tags on key {KeyId}.
Show the tag keys and values for customer managed key {KeyId}.
POST /#ListRetirableGrants List grants that a principal can retire · List Retirable Grants #
Ask an LLM
“Which grants can a given principal retire?”
“Can I find grants that a service principal is retiring?”
Tell an agent
List grants that retiring principal {RetiringPrincipal} can retire.
Find grants retiring service principal {RetiringServicePrincipal}.
POST /#TagResource Tag a customer managed KMS key · Tag Resource #
Ask an LLM
“How do I add tags to a customer managed KMS key?”
“Can I edit an existing tag on a KMS key?”
Tell an agent
Tag key {KeyId} with {Tags}.
Add or edit tags {Tags} on customer managed key {KeyId}.
POST /#UntagResource Remove tags from a customer managed KMS key · Untag Resource #
Ask an LLM
“How do I remove tags from a customer managed KMS key?”
“What happens if I delete a tag key that isn't on the key?”
Tell an agent destructive · confirm first
Untag key {KeyId} by removing tag keys {TagKeys}.
Delete tag keys {TagKeys} from customer managed key {KeyId}.
POST /#UpdateKeyDescription Update a KMS key's description · Update Key Description #
Ask an LLM
“How do I change the description of a KMS key?”
“Can I add a description to a customer managed key?”
Tell an agent
Update the description of key {KeyId} to {Description}.
Set the description of customer managed key {KeyId} to {Description}.
POST /#UpdatePrimaryRegion Change the primary key of a multi-Region key · Update Primary Region #
Ask an LLM
“How do I make a replica key the primary key in a different region?”
“Can I switch which region hosts the primary key of a multi-Region key?”
Tell an agent
Make key {KeyId} the primary key in region {PrimaryRegion}.
Change the primary key of multi-Region key {KeyId} to {PrimaryRegion}.

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-kms:amazon-kms-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-kms-operations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Key Management Service Operations API
  version: '2014-11-01'
  description: Generated from AWS's published Smithy model for AWS Key Management Service. 30 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://kms.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


# --- truncated at 32 KB (204 KB total) ---
# Full source: https://artifacts.apis.io/amazon-kms/openapi/amazon-kms-operations-api-openapi.yml