Inital SAM API integration (WIP)