Applying smoothing to a mesh with the API

Hi, I've been searching the documentation and have been unable to find a way to apply smoothing to a triangle mesh programmatically. Does anybody know if I'm missing the function or a workaround? Thanks!