{
  "opencollection": "1.0.0",
  "info": {
    "name": "Kibana APIs Actions Fleet uninstall tokens API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Fleet uninstall tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get metadata for latest uninstall tokens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{kibana_url}/api/fleet/uninstall_tokens",
            "params": [
              {
                "name": "policyId",
                "value": "",
                "type": "query",
                "description": "Partial match filtering for policy IDs"
              },
              {
                "name": "search",
                "value": "",
                "type": "query",
                "description": "Partial match filtering for uninstall token values"
              },
              {
                "name": "perPage",
                "value": "",
                "type": "query",
                "description": "The number of items to return"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number"
              }
            ]
          },
          "docs": "**Spaces method and path for this operation:**\n\n<div><span class=\"operation-verb get\">get</span>&nbsp;<span class=\"operation-path\">/s/{space_id}/api/fleet/uninstall_tokens</span></div>\n\nRefer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.\n\nList the metadata for the latest uninstall tokens per agent policy.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all."
        },
        {
          "info": {
            "name": "Get a decrypted uninstall token",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{kibana_url}/api/fleet/uninstall_tokens/:uninstallTokenId",
            "params": [
              {
                "name": "uninstallTokenId",
                "value": "",
                "type": "path",
                "description": "The ID of the uninstall token"
              }
            ]
          },
          "docs": "**Spaces method and path for this operation:**\n\n<div><span class=\"operation-verb get\">get</span>&nbsp;<span class=\"operation-path\">/s/{space_id}/api/fleet/uninstall_tokens/{uninstallTokenId}</span></div>\n\nRefer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.\n\nGet one decrypted uninstall token by its ID.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all."
        }
      ]
    }
  ],
  "bundled": true
}