The primary authentication for all routes is the API key. ClosersHQ's API accepts the Bearer Authentication.
import axios from "axios"
var options = {
method: 'GET',
url: 'https://api.closershq.io/v1/crm/prospect',
headers: {
Accept: '*/*',
Authorization: 'Bearer {{the copied API Key}}'
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});