{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mist Admins Admins Login API",
    "version": "2606.1.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Admins Login",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "login",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/login",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Authenticate an administrator with email and password. A successful login creates the browser session cookies, including the `csrftoken` value used with the `X-CSRFToken` header on later API requests.\n\nWhen 2FA is enabled, either include the `two_factor` code in this request or submit the first factor here and complete the login with [Two Factor](/#operations/twoFactor)."
        },
        {
          "info": {
            "name": "twoFactor",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/login/two_factor",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Complete a two-factor login by submitting the 2FA code after the initial email/password step has created a pending login session."
        }
      ]
    }
  ],
  "bundled": true
}