---
title: Search Application Token Account
slug: kron-pam-api-collection-3-7-0/search-application-token-account
docTags: 
createdAt: 2025-05-08T12:58:22.243Z
---

{
  "id": "zsWhWR0v7oS5t8y00WdzK",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts",
    "name": "",
    "description": "<h3><strong>Request Overview</strong></h3>\n<p>The <code>Search Application Token Account</code> API allows users to query application token accounts as a filter. If no value is entered, all records will be returned.</p>\n<p>The <strong>important fields</strong> returned in the response are:</p>\n<ul>\n<li>\n<p><strong><code>applicationName</code></strong> (<code>string</code>)</p>\n<ul>\n<li>\n<p>Filters token accounts by their application name.</p>\n</li>\n<li>\n<p>Leave empty to return all accounts.</p>\n</li>\n</ul>\n</li>\n<li>\n<p><strong><code>applicationIPs</code></strong> (<code>array of strings)</code></p>\n<ul>\n<li>\n<p>Filters accounts by allowed IP addresses in CIDR format (e.g., <code>\"0.0.0.0/0\"</code> or <code>\"192.168.1.1\"</code>).</p>\n</li>\n<li>\n<p>Optional field.</p>\n</li>\n</ul>\n</li>\n<li>\n<p><strong><code>sapmAccounts</code></strong> (<code>array of integers</code>)</p>\n<ul>\n<li>\n<p>Filters tokens associated with specific SAPM account IDs.</p>\n</li>\n<li>\n<p>Optional field.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><em>To list all tokens, send an empty body</em></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": "{\r\n  \"applicationName\": \"name\",\r\n  \"applicationIPs\": [\"11.11.11.11\"],\r\n  \"sapmAccounts\": [1006379]\r\n}\r\n",
          "value": "{\r\n  \"applicationName\": \"name\",\r\n  \"applicationIPs\": [\"11.11.11.11\"],\r\n  \"sapmAccounts\": [1006379]\r\n}\r\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Search Application Token Account",
        "jsonExample": "[\n    {\n        \"dbId\": 2296581,\n        \"token\": \"ea8f7773-cbe2-47a0-95fc-5fb1a3c9448a\",\n        \"lastAccessTime\": null,\n        \"numberOfUsage\": 0,\n        \"applicationName\": \"selin\",\n        \"applicationIPs\": [\n            \"11.11.11.11\"\n        ],\n        \"level\": \"BASIC_PIN_PATH_HASH\",\n        \"sapmAccounts\": [\n            1006379\n        ],\n        \"sapmGroups\": [],\n        \"restrictions\": {\n            \"expiryDate\": null,\n            \"allowListingAccounts\": true,\n            \"eventUserId\": \"b2743bcb-5915-4ebe-84be-64afe5b2900f\",\n            \"maxUsageCount\": null\n        },\n        \"properties\": {\n            \"manuelUserName\": \"manual\",\n            \"manuelPassword\": \"1234\",\n            \"OSType\": \"WINDOWS\",\n            \"appHash\": \"app hash\",\n            \"OSCredentialType\": \"MANUEL_USER\",\n            \"pinPort\": 5,\n            \"appPath\": \"app path\",\n            \"OsCredentialSAPM\": null\n        }\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "A50XihSSZH1iW6E9KorvD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\r\\n  \\\"applicationName\\\": \\\"name\\\",\\r\\n  \\\"applicationIPs\\\": [\\\"11.11.11.11\\\"],\\r\\n  \\\"sapmAccounts\\\": [1006379]\\r\\n}\\r\\n\"'"
        },
        {
          "id": "kJmO7PERWD9bh5lKyty2x",
          "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(\"{\\r\\n  \\\"applicationName\\\": \\\"name\\\",\\r\\n  \\\"applicationIPs\\\": [\\\"11.11.11.11\\\"],\\r\\n  \\\"sapmAccounts\\\": [1006379]\\r\\n}\\r\\n\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "jxRLJpCKn06UMTADSSn3T",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts\")\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(\"{\\r\\n  \\\"applicationName\\\": \\\"name\\\",\\r\\n  \\\"applicationIPs\\\": [\\\"11.11.11.11\\\"],\\r\\n  \\\"sapmAccounts\\\": [1006379]\\r\\n}\\r\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "YArQhV4hHjAaCMhiLrTbB",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts\"\n\npayload = json.dumps(\"{\\r\\n  \\\"applicationName\\\": \\\"name\\\",\\r\\n  \\\"applicationIPs\\\": [\\\"11.11.11.11\\\"],\\r\\n  \\\"sapmAccounts\\\": [1006379]\\r\\n}\\r\\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": "A50XihSSZH1iW6E9KorvD"
    },
    "results": {
      "languages": [
        {
          "id": "hQb5NlvDlkJZZZVlFVHIm",
          "language": "200",
          "code": "[\n    {\n        \"dbId\": 2296581,\n        \"token\": \"ea8f7773-cbe2-47a0-95fc-5fb1a3c9448a\",\n        \"lastAccessTime\": null,\n        \"numberOfUsage\": 0,\n        \"applicationName\": \"selin\",\n        \"applicationIPs\": [\n            \"11.11.11.11\"\n        ],\n        \"level\": \"BASIC_PIN_PATH_HASH\",\n        \"sapmAccounts\": [\n            1006379\n        ],\n        \"sapmGroups\": [],\n        \"restrictions\": {\n            \"expiryDate\": null,\n            \"allowListingAccounts\": true,\n            \"eventUserId\": \"b2743bcb-5915-4ebe-84be-64afe5b2900f\",\n            \"maxUsageCount\": null\n        },\n        \"properties\": {\n            \"manuelUserName\": \"manual\",\n            \"manuelPassword\": \"1234\",\n            \"OSType\": \"WINDOWS\",\n            \"appHash\": \"app hash\",\n            \"OSCredentialType\": \"MANUEL_USER\",\n            \"pinPort\": 5,\n            \"appPath\": \"app path\",\n            \"OsCredentialSAPM\": null\n        }\n    }\n]"
        }
      ],
      "selectedLanguageId": "hQb5NlvDlkJZZZVlFVHIm"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}