refined api