Rewrite builder for API requests