Disable Theme API / Front end (for API only environment)

There is the constant WP_USE_THEMES which when set to false in wp-config.php disables the theme system on the backend, though it does not completely disable the theme subsystem. I think that is a close as you can get. I am not 100% sure of that though.