Create api class