SAM API integration new approach