---
title: Vault Show Password
slug: kron-pam-api-collection-381-patch3/vault-show-password
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "BxWx9NuP54JmkUxYPrtL3",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/showPassword",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>Retrieve a Vault account's password if you have approval or permission. You must provide the Vault account's <code>dbId</code>, password expiration time in minutes, and a comment to access the password.</p>\n<ul>\n<li>\n<p><strong>sapmdbId</strong>: ID of the Vault account.</p>\n</li>\n<li>\n<p><strong>passwordExpirationInMinute</strong>: Time in minutes for which the password will be valid.</p>\n</li>\n<li>\n<p><strong>comment</strong>: A comment or reason for retrieving the password.</p>\n</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        },
        {
          "name": "Cookie",
          "description": "",
          "default": "{{netrightCookie}}",
          "value": "{{netrightCookie}}",
          "type": "string"
        },
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\n\t\"sapmDbId\":10710, \n\t\"passwordExpirationInMinute\": 30, \n\t\"comment\":\"restTest\"\n}",
          "value": "{\n\t\"sapmDbId\":10710, \n\t\"passwordExpirationInMinute\": 30, \n\t\"comment\":\"restTest\"\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "<p>sapm/showPassword</p>",
        "jsonExample": "{\n    \"password\": \"8Xz7PEmr\",\n    \"passwordPart\": \"FULL\"\n}"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "F8WP_TJra-UUSW6QOIZt2",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/showPassword \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --cookie {{netrightCookie}} \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n\\t\\\"sapmDbId\\\":10710, \\n\\t\\\"passwordExpirationInMinute\\\": 30, \\n\\t\\\"comment\\\":\\\"restTest\\\"\\n}\"'"
        },
        {
          "id": "3mA6H3_U9oW8MBwStfCXO",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"cookie\", \"{{netrightCookie}}\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\n\\t\\\"sapmDbId\\\":10710, \\n\\t\\\"passwordExpirationInMinute\\\": 30, \\n\\t\\\"comment\\\":\\\"restTest\\\"\\n}\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/showPassword\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "mry0GUePxFKY7j7ahS88S",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/showPassword\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"cookie\"] = \"{{netrightCookie}}\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n\\t\\\"sapmDbId\\\":10710, \\n\\t\\\"passwordExpirationInMinute\\\": 30, \\n\\t\\\"comment\\\":\\\"restTest\\\"\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "77cy21Q4BvsJH64ZtZ2Ol",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/showPassword\"\n\npayload = json.dumps(\"{\\n\\t\\\"sapmDbId\\\":10710, \\n\\t\\\"passwordExpirationInMinute\\\": 30, \\n\\t\\\"comment\\\":\\\"restTest\\\"\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'cookie': '{{netrightCookie}}',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "F8WP_TJra-UUSW6QOIZt2"
    },
    "results": {
      "languages": [
        {
          "id": "Gou61ROCIvAjpmcKVWc0H",
          "language": "200",
          "code": "{\n    \"password\": \"8Xz7PEmr\",\n    \"passwordPart\": \"FULL\"\n}"
        }
      ],
      "selectedLanguageId": "Gou61ROCIvAjpmcKVWc0H"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}