Backend API sketch