Basic Auth is, if I recall correctly, adding a request header 'Authorization' with a value of 'Basic ' followed by username+':'+password Base64 encoded.
Do you have anything that is calling the API already, running locally, so you could use a browser debugger or Fiddler on and intercept the API call?