Re-add api

Need to automate this