API converted from GET to POST