Add API and relevant docs