{
  "opencollection": "1.0.0",
  "info": {
    "name": "Itch.io Auth API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Auth",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Login with password",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.itch.io/login",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "source",
                  "value": ""
                },
                {
                  "name": "username",
                  "value": ""
                },
                {
                  "name": "password",
                  "value": ""
                },
                {
                  "name": "recaptcha_response",
                  "value": ""
                },
                {
                  "name": "force_recaptcha",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Attempts to log a user into itch.io with their username (or email) and password. The response may indicate that TOTP or recaptcha is needed."
        },
        {
          "info": {
            "name": "Verify TOTP token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.itch.io/login/with-totp-token",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "token",
                  "value": ""
                },
                {
                  "name": "code",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Verifies a TOTP (two-factor authentication) code after the initial login step."
        }
      ]
    }
  ],
  "bundled": true
}