---
title: Validate Passcode
slug: kron-pam-api-collection-381-patch3/validate-passcode
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "0DhzYM-FE2l7E2qbqQB2d",
  "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": "73M30jvwZUBzwhqspajwa",
          "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": "mcQKynvDrXIEOB8SatQiF",
          "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": "WW15ARtFlIQ9w0DmuDuVC",
          "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": "xlqBeVQXjaecMmMvzVEUn",
          "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": "73M30jvwZUBzwhqspajwa"
    },
    "results": {
      "languages": [
        {
          "id": "9Wne_Z2HThmY-qwBcc-GH",
          "language": "200",
          "code": "YZrlAKrljv7Ze1ZThJT6Qs2eR06ACb3UOfSxJqR4Jzc="
        }
      ],
      "selectedLanguageId": "9Wne_Z2HThmY-qwBcc-GH"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}