I wanted to know that can we create workflow in SharePoint using someAPI's, so that any document goes through the same before beingpublished on the sharepoint site.