client-side APIs