---
title: Validate Passcode
slug: kron-pam-api-collection-3-9-0/validate-passcode
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "14aN_XVevrR1TOwzNWITT",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "{{url}}/aioc-rest-web/rest/rap/validatePasscode/{{requestId}}/{{passcode}}",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<ul>\n<li>\n<p><strong>URL Parameters:</strong></p>\n<ul>\n<li>\n<p><strong>requestId</strong> - The unique identifier for the request.</p>\n</li>\n<li>\n<p><strong>passcode</strong> - The passcode to be validated.</p>\n</li>\n</ul>\n</li>\n<li>\n<p><strong>Response:</strong></p>\n<ul>\n<li>\n<p>A string is returned (often a token), for example:</p>\n<ul>\n<li>YZrlAKrljv7Ze1ZThJT6Qs2eR06ACb3UOfSxJqR4Jzc=</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>",
    "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"
        },
        {
          "name": "requestId",
          "description": "",
          "default": "requestId",
          "value": "requestId",
          "type": "string"
        },
        {
          "name": "passcode",
          "description": "",
          "default": "passcode",
          "value": "passcode",
          "type": "string"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Validate Passcode",
        "jsonExample": "YZrlAKrljv7Ze1ZThJT6Qs2eR06ACb3UOfSxJqR4Jzc="
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "zo8EJQfvi2id2jAWPwN71",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/rap/validatePasscode/{{requestId}}/{{passcode}} \\\n     --header 'accept: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}'"
        },
        {
          "id": "-f7wUAKctd0IIQnexyvKk",
          "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 requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/rap/validatePasscode/{{requestId}}/{{passcode}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "M_VIb6uYvj6xeOz6vy0mW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/rap/validatePasscode/{{requestId}}/{{passcode}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "NcZn8R18ZVDlnLxtbW54r",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/rap/validatePasscode/{{requestId}}/{{passcode}}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "zo8EJQfvi2id2jAWPwN71"
    },
    "results": {
      "languages": [
        {
          "id": "g7lYVKMa-WBeMuR0u6rFW",
          "language": "200",
          "code": "YZrlAKrljv7Ze1ZThJT6Qs2eR06ACb3UOfSxJqR4Jzc="
        }
      ],
      "selectedLanguageId": "g7lYVKMa-WBeMuR0u6rFW"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}