I am trying to figure how to use the rest api. I can't find much documentation on it for 4.0.3.
The API is pretty similar to 4.1 (and even 3.x), just check http://www.splunk.com/base/Documentation/4.1.4/Developer/RESTIntro