---
updatedAt: 2026-10-06T17:39:05.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /derive-key

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Secrets & keys",
    "version": "3.0"
  },
  "paths": {
    "/derive-key": {
      "post": {
        "operationId": "DeriveKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeriveKey"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/DeriveKeyResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Encryption Keys"
        ],
        "x-docs-category": "Secrets & keys",
        "x-docs-group": "Encryption Keys"
      }
    }
  },
  "tags": [
    {
      "name": "Encryption Keys"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "DeriveKeyResponse": {
        "description": "DeriveKeyResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/DeriveKeyOutput"
            }
          }
        }
      },
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      }
    },
    "schemas": {
      "DeriveKey": {
        "properties": {
          "accessibility": {
            "default": "regular",
            "description": "for personal password manager",
            "type": "string",
            "x-go-name": "ItemAccessibilityString"
          },
          "alg": {
            "default": "pbkdf2",
            "description": "Kdf algorithm",
            "type": "string",
            "x-go-name": "KDFAlgorithm"
          },
          "hash-function": {
            "default": "sha256",
            "description": "HashFunction the hash function to use (relevant for pbkdf2)",
            "type": "string",
            "x-go-name": "HashFunction"
          },
          "iter": {
            "description": "IterationCount the number of iterations",
            "format": "int64",
            "type": "integer",
            "x-go-name": "IterationCount"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "key-len": {
            "description": "KeyLength the byte length of the generated key",
            "format": "int64",
            "type": "integer",
            "x-go-name": "KeyLength"
          },
          "mem": {
            "default": 16384,
            "description": "MemorySizeInKb the memory paramter in kb (relevant for argon2id)",
            "format": "int64",
            "type": "integer",
            "x-go-name": "MemorySizeInKb"
          },
          "name": {
            "description": "Static Secret full name",
            "type": "string",
            "x-go-name": "SecretName"
          },
          "parallelism": {
            "default": 1,
            "description": "Parallelism the number of threads to use (relevant for argon2id)",
            "format": "int64",
            "type": "integer",
            "x-go-name": "Parallelism"
          },
          "salt": {
            "description": "Salt Base64 encoded salt value. If not provided, the salt will be generated as part of the operation. The salt should be securely-generated random bytes, minimum 64 bits, 128 bits is recommended",
            "type": "string",
            "x-go-name": "Salt"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          }
        },
        "required": [
          "alg",
          "key-len",
          "iter",
          "name"
        ],
        "title": "DeriveKey is a command that gets a static secret value.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "DeriveKeyOutput": {
        "properties": {
          "Key": {
            "type": "string"
          },
          "Salt": {
            "type": "string"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      }
    }
  }
}
```