Below is the documentation for the MatterCAD API.  You can find the source code to MatterCAD on BitBucket. And an article describing a little bit about it here on our site.