It doesn't appear to be possible by default. You need to use/write an extension.
I wrote my own API script that bypasses all of the default MediaWiki code (including security which is good and bad). It needs work and it has obvious security flaws, but it's a start. I don't recommend it for a production website. Here it is.