Update api.php

wrong char max. length