{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mist Admins Admins Login - OAuth2 API",
    "version": "2606.1.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Admins Login - OAuth2",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "getOauth2AuthorizationUrlForLogin",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/login/oauth/:provider",
            "params": [
              {
                "name": "provider",
                "value": "",
                "type": "path"
              },
              {
                "name": "forward",
                "value": "",
                "type": "query",
                "description": "Callback URL used after completing the OAuth login flow"
              }
            ]
          },
          "docs": "Return the provider authorization URL used to start an OAuth2 login or account-linking flow. When `forward` is provided, the provider redirects back to that callback URL after authorization."
        },
        {
          "info": {
            "name": "loginOauth2",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/login/oauth/:provider",
            "params": [
              {
                "name": "provider",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Complete an OAuth2 login by exchanging the provider authorization code for a Mist administrator session."
        },
        {
          "info": {
            "name": "unlinkOauth2Provider",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.mist.com/api/v1/login/oauth/:provider",
            "params": [
              {
                "name": "provider",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Unlink the specified OAuth2 provider from the authenticated administrator account so it can no longer be used for that account's OAuth login."
        }
      ]
    }
  ],
  "bundled": true
}