Created but not tested api script