add api for the service