move call to addApiParams() from clientSync() to serverSync()

Fixes bug where client vs. server semantics differ