router and sync api examples