Framework for API