{
  "opencollection": "1.0.0",
  "info": {
    "name": "Lichess.org API reference Account Relations API",
    "version": "2.0.144"
  },
  "items": [
    {
      "info": {
        "name": "Relations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get users followed by the logged in user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://lichess.org/api/rel/following",
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://lichess.org/oauth",
              "accessTokenUrl": "https://lichess.org/api/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Users are streamed as [ndjson](#description/streaming-with-nd-json).\n"
        },
        {
          "info": {
            "name": "Follow a player",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://lichess.org/api/rel/follow/:username",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://lichess.org/oauth",
              "accessTokenUrl": "https://lichess.org/api/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Follow a player, adding them to your list of Lichess friends.\n"
        },
        {
          "info": {
            "name": "Unfollow a player",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://lichess.org/api/rel/unfollow/:username",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://lichess.org/oauth",
              "accessTokenUrl": "https://lichess.org/api/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Unfollow a player, removing them from your list of Lichess friends.\n"
        },
        {
          "info": {
            "name": "Block a player",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://lichess.org/api/rel/block/:username",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://lichess.org/oauth",
              "accessTokenUrl": "https://lichess.org/api/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Block a player, adding them to your list of blocked Lichess users.\n"
        },
        {
          "info": {
            "name": "Unblock a player",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://lichess.org/api/rel/unblock/:username",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://lichess.org/oauth",
              "accessTokenUrl": "https://lichess.org/api/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Unblock a player, removing them from your list of blocked Lichess users.\n"
        }
      ]
    }
  ],
  "bundled": true
}