Add /api/sync to URL when getting token