add retrieve and delete API for cards