XpressDox publishes an API for those users who would like to harness the power of document automation within their apps.

See the API documentation here.