Amazon KMS Cryptographic Operations API

Encryption, decryption, and signing operations

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Cybersecurity Management BC-620

Operations 10

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 the shared secret from an ML-KEM encapsulation · Decapsulate #
Ask an LLM
“How do I recover the shared secret from the ciphertext ML-KEM encapsulation?”
“Can I decrypt an ML-KEM encapsulated shared secret in KMS?”
Tell an agent
Decapsulate the shared secret from {ciphertext} using ML-KEM key {key}.
Recover the ML-KEM shared secret {ciphertext} for key {key}.
POST /#Decrypt Decrypt ciphertext encrypted by a KMS key · Decrypt #
Ask an LLM
“How do I decrypt ciphertext that was encrypted by a KMS key?”
“Can I decrypt ciphertext under an asymmetric key, and what algorithm do I need?”
Tell an agent
Decrypt {ciphertext} with KMS key {key}.
Decrypt {ciphertext} using algorithm {algorithm} under key {key}.
POST /#DeriveSharedSecret Derive a shared secret from an ECC key agreement · Derive Shared Secret #
Ask an LLM
“How do I derive a shared secret from my peer's public key using ECDH?”
“Can I establish a key agreement with an ECC KMS key pair?”
Tell an agent
Derive a shared secret from public key {public_key} using key {key} with algorithm {algorithm}.
Establish an ECDH key agreement with {public_key} on key {key}.
POST /#Encapsulate Encapsulate a shared secret with an ML-KEM key · Encapsulate #
Ask an LLM
“How do I generate an ML-KEM encapsulated shared secret?”
“Can I encapsulate a shared secret using an ML-KEM key pair?”
Tell an agent
Encapsulate a shared secret with ML-KEM key {key} using algorithm {algorithm}.
Generate an ML-KEM encapsulation of a shared secret for key {key}.
POST /#Encrypt Encrypt plaintext with a KMS key · Encrypt #
Ask an LLM
“How do I encrypt a small amount of plaintext with a KMS key?”
“Can I encrypt a personal identifier or database password in KMS?”
Tell an agent
Encrypt {plaintext} with KMS key {key}.
Encrypt {plaintext} under key {key} using algorithm {algorithm}.
POST /#ReEncrypt Re-encrypt ciphertext under a different KMS key · Re Encrypt #
Ask an LLM
“How do I re-encrypt ciphertext under a different KMS key?”
“Can I change the encryption context of ciphertext in KMS?”
Tell an agent
Re-encrypt {ciphertext} under key {destination_key} from source key {source_key}.
Re-encrypt {ciphertext} under key {destination_key} with context {destination_context}.
POST /#Sign Create a digital signature for a message · Sign #
Ask an LLM
“How do I sign a message with an asymmetric signing KMS key?”
“Can I generate a signature for a message digest instead of the raw message?”
Tell an agent
Sign {message} with key {key} using signing algorithm {algorithm}.
Create a signature for message digest {message} on key {key} with {algorithm}.
POST /#Verify Verify a digital signature · Verify #
Ask an LLM
“How do I verify a signature that was generated by Sign?”
“Can I confirm a signature was made with a particular signing algorithm?”
Tell an agent
Verify signature {signature} on {message} with key {key} using {algorithm}.
Confirm signature {signature} on {message} was made with key {key} and algorithm {algorithm}.
POST /#VerifyMac Verify a hash-based message authentication code · Verify Mac #
Ask an LLM
“How do I verify an HMAC against a message and key?”
“Can I confirm an HMAC was generated with a specific MAC algorithm?”
Tell an agent
Verify HMAC {mac} for message {message} with key {key} using {algorithm}.
Check that HMAC {mac} on {message} matches key {key} and algorithm {algorithm}.
POST /#GenerateDataKey Generate a symmetric data key for external use · Generate Data Key #
Ask an LLM
“How do I get a plaintext data key to encrypt data outside KMS?”
“Can I generate a 256-bit data key for external encryption?”
Tell an agent
Generate a {key_spec} data key for key {key}.
Generate a {num_bytes}-byte data key for key {key}.

Documentation

Specifications

Schemas & Data

Other Resources

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-cryptographic-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-cryptographic-operations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Key Management Service Cryptographic Operations API
  version: '2014-11-01'
  description: Generated from AWS's published Smithy model for AWS Key Management Service. 10 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 (84 KB total) ---
# Full source: https://artifacts.apis.io/amazon-kms/openapi/amazon-kms-cryptographic-operations-api-openapi.yml