---
title: Get Approval For Account
slug: kron-pam-api-collection-381-patch3/get-approval-for-account
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "v-iqw8aaNylBeeoHAAew8",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/getApprovalForAccount",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>The <strong>Get Approval For Account</strong> method allows you to request approval for a specific account within the system using the account's <code>dbId</code>.</p>\n<p>This API is used to obtain approval for operations related to a Vault account identified by its <code>dbId</code>.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "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\"dbId\":86624,\n\t\"comment\":\"asdfg\"\n}",
          "value": "{\n\t\"dbId\":86624,\n\t\"comment\":\"asdfg\"\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "500",
        "description": "Get Approval For Account",
        "jsonExample": "SUCCESS"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "wrGXiXqHcjjh2odVkc1H8",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/getApprovalForAccount \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\n\\t\\\"dbId\\\":86624,\\n\\t\\\"comment\\\":\\\"asdfg\\\"\\n}\"'"
        },
        {
          "id": "znUAGABKR5joPNDJ4eZ29",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\n\\t\\\"dbId\\\":86624,\\n\\t\\\"comment\\\":\\\"asdfg\\\"\\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/getApprovalForAccount\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "yn_aXsbU6UWxW4u6rAuUB",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovalForAccount\")\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[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\n\\t\\\"dbId\\\":86624,\\n\\t\\\"comment\\\":\\\"asdfg\\\"\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "vALIRb4bq7sfFxW292TN4",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/getApprovalForAccount\"\n\npayload = json.dumps(\"{\\n\\t\\\"dbId\\\":86624,\\n\\t\\\"comment\\\":\\\"asdfg\\\"\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "wrGXiXqHcjjh2odVkc1H8"
    },
    "results": {
      "languages": [
        {
          "id": "DZXBI5OcUGHZC1rtDf28u",
          "language": "500",
          "code": "SUCCESS"
        }
      ],
      "selectedLanguageId": "DZXBI5OcUGHZC1rtDf28u"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}