wip(api): makes the API send the generator POST correctly