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

# /get-secret-value

# 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": {
    "/get-secret-value": {
      "post": {
        "operationId": "GetSecretValue",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSecretValue"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/getSecretValueResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Static Secrets"
        ],
        "x-docs-category": "Secrets & keys",
        "x-docs-group": "Static Secrets",
        "x-generate-protobuf": "true"
      }
    }
  },
  "tags": [
    {
      "name": "Static Secrets"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "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"
            }
          }
        }
      },
      "getSecretValueResponse": {
        "description": "getSecretValueResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "additionalProperties": {},
              "type": "object"
            }
          }
        }
      }
    },
    "schemas": {
      "GetSecretValue": {
        "properties": {
          "accessibility": {
            "default": "regular",
            "description": "for personal password manager",
            "type": "string",
            "x-go-name": "ItemAccessibilityString"
          },
          "ignore-cache": {
            "default": "false",
            "description": "Retrieve the Secret value without checking the Gateway's cache [true/false]. This flag is only relevant when using the RestAPI",
            "type": "string",
            "x-go-name": "IgnoreCache"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "names": {
            "description": "Secret name",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-go-name": "Names"
          },
          "pretty-print": {
            "description": "Print the secret value with json-pretty-print (not relevent to SDK)",
            "type": "boolean",
            "x-go-name": "PrettyPrint"
          },
          "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"
          },
          "version": {
            "description": "Secret version, if negative value N is provided the last N versions will return (maximum 20)",
            "format": "int32",
            "type": "integer",
            "x-go-name": "Version"
          }
        },
        "required": [
          "names"
        ],
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "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"
      }
    }
  }
}
```