API converted from POST to GET