Do we need to do the rewriting on this side? Or can the API server do the rewriting?