spray api