api instructions