title: Jenkins/Hudson API Access with API Key Not Working
body: <p>I'm trying to access my Jenkins build though the api however am unsure whether it is possible to do with a straight forward URL.</p>
  
  <p>I've basically built a local website in which I have something like:</p>
  
  <pre><code>var jsonAPI = "http://jenkinsurl.com/build/api/json"
  </code></pre>
  
  <p>However I need authenticated. So i found my API Token but how do I put it together - is it like:</p>
  
  <pre><code>var jsonAPI = "http://jenkinsurl.com/build/api/json?apitoken=xxxxxxx"
  </code></pre>
  
  <p>Thanks</p>