Forum:Automated page creation through scripting

Is it possible to upload a bunch of pages using a script? I don't want to manually go through several thousand pages which I already have in html format. I've got no problem writing the script to convert to wiki markup myself, but is there an API reference for the calls i need to make to wikia to create a page with given data?