rewrite newsletter api