This is an extension of issue #264 To prepare for packaging, we need to properly explain how api works in our documentation.