Rest API for sync.