Amazon KMS Cryptographic Operations API

Encryption, decryption, and signing operations

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Pricing
https://aws.amazon.com/kms/pricing/
🔗
FAQ
https://aws.amazon.com/kms/faqs/
🔗
Features
https://aws.amazon.com/kms/features/
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/json-ld/amazon-kms-context.jsonld
🔗
APIsJSON
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/apis.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-create-key-and-describe-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-data-key-generate-and-decrypt-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-disable-and-schedule-deletion-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-enable-key-and-verify-state-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-envelope-encrypt-decrypt-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-list-and-describe-keys-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-provision-key-and-encrypt-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/amazon-kms/refs/heads/main/arazzo/amazon-kms-sign-and-verify-workflow.yml

OpenAPI Specification

amazon-kms-cryptographic-operations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon KMS Cryptographic Operations API
  description: The Amazon KMS API provides programmatic access to manage KMS resources.
  version: '2024-01-01'
  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
servers:
- url: https://kms.us-east-1.amazonaws.com
  description: Amazon KMS endpoint
security:
- sigv4: []
tags:
- name: Cryptographic Operations
  description: Encryption, decryption, and signing operations
paths:
  /keys/{KeyId}/encrypt:
    post:
      operationId: Encrypt
      summary: Amazon KMS Encrypt
      description: Encrypts plaintext of up to 4,096 bytes using a KMS key.
      tags:
      - Cryptographic Operations
      parameters:
      - name: KeyId
        in: path
        required: true
        schema:
          type: string
        description: Identifies the KMS key.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '403':
          description: Access denied
        '500':
          description: Internal server error
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /decrypt:
    post:
      operationId: Decrypt
      summary: Amazon KMS Decrypt
      description: Decrypts ciphertext that was encrypted by a KMS key.
      tags:
      - Cryptographic Operations
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '403':
          description: Access denied
        '500':
          description: Internal server error
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /keys/{KeyId}/data-key:
    post:
      operationId: GenerateDataKey
      summary: Amazon KMS Generate Data Key
      description: Returns a unique symmetric data key for use outside of KMS.
      tags:
      - Cryptographic Operations
      parameters:
      - name: KeyId
        in: path
        required: true
        schema:
          type: string
        description: Identifies the KMS key.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '403':
          description: Access denied
        '500':
          description: Internal server error
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /keys/{KeyId}/sign:
    post:
      operationId: Sign
      summary: Amazon KMS Sign
      description: Creates a digital signature for a message or message digest using an asymmetric KMS key.
      tags:
      - Cryptographic Operations
      parameters:
      - name: KeyId
        in: path
        required: true
        schema:
          type: string
        description: Identifies the KMS key.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '403':
          description: Access denied
        '500':
          description: Internal server error
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /keys/{KeyId}/verify:
    post:
      operationId: Verify
      summary: Amazon KMS Verify
      description: Verifies a digital signature that was generated by the Sign operation.
      tags:
      - Cryptographic Operations
      parameters:
      - name: KeyId
        in: path
        required: true
        schema:
          type: string
        description: Identifies the KMS key.
      responses:
        '200':
          description: Success
        '400':
          description: Bad request
        '403':
          description: Access denied
        '500':
          description: Internal server error
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  securitySchemes:
    sigv4:
      type: apiKey
      name: Authorization
      in: header
      description: AWS Signature Version 4 authentication