API and documentation