Skip to main content
POST
/
api
/
v1
/
kms
/
keys
/
bulk-export-private-keys
cURL
curl --request POST \
  --url https://us.infisical.com/api/v1/kms/keys/bulk-export-private-keys \
  --header 'Content-Type: application/json' \
  --data '
{
  "keyIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "keys": [
    {
      "keyId": "<string>",
      "name": "<string>",
      "keyUsage": "<string>",
      "algorithm": "<string>",
      "privateKey": "<string>",
      "publicKey": "<string>"
    }
  ]
}

Body

application/json
keyIds
string<uuid>[]
required
Required array length: 1 - 100 elements

An array of KMS key IDs to export. Maximum 100 keys per request.

Response

Default Response

keys
object[]
required