exist api for cosmos ?

Good morning. do you know if exist api for cosmos inparticular if i have a part i what execute by api the shapeoptimization.

thanks.
SolidworksApi macros