---
title: "POST /api/v1/kms/keys/bulk-import"
method: POST
path: "/api/v1/kms/keys/bulk-import"
tags: ["KMS Keys"]
---

# POST /api/v1/kms/keys/bulk-import

`POST /api/v1/kms/keys/bulk-import`

Bulk import KMS keys with provided key material into a project.

## Request body

- object
  - `projectId` string, uuid, required
  - `keys` object[], required
    - `name` string, required
    - `keyUsage` 'encrypt-decrypt' | 'sign-verify' | 'generate-verify-mac', required
    - `algorithm` 'aes-256-gcm' | 'aes-128-gcm' | 'RSA_4096' | 'ECC_NIST_P256' | 'ECC_NIST_P384' | 'ECC_NIST_P521' | 'ML_DSA_44' | 'ML_DSA_65' | 'ML_DSA_87' | 'HMAC_SHA_1' | 'HMAC_SHA_224' | 'HMAC_SHA_256' | 'HMAC_SHA_384' | 'HMAC_SHA_512'
    - `keyMaterial` string, required
    - `isExportable` boolean — Whether the raw key material can be exported after creation. When set to false, the key can never be exported regardless of permissions. This cannot be changed after creation.
    - `hasDeleteProtection` boolean — Prevents deletion of the key when enabled.

## Response `200`

Default Response

- object
  - `keys` object[], required
    - `id` string, required
    - `name` string, required
  - `errors` object[], required
    - `name` string, required
    - `message` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

## Changes

- **2026-08-25** `4243b6be5d38` — 1 info
  - added the new optional request property `keys/items/hasDeleteProtection`
- **2026-07-21** `5dbb77aad0f5` — 1 warning, 2 info
  - removed the request property `keys/items/encryptionAlgorithm`
  - added the new optional request property `keys/items/algorithm`
  - added the new `generate-verify-mac` enum value to the request property `keys/items/keyUsage`

[Change history](https://skmtc.dev/infisical/apis/infisical-api/changes/api/v1/kms/keys/bulk-import/post.md)

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) · [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infisical/infisical-api/revisions/763e38e78337/schema)
