Using your API key
Learn how to obtain and use your API keys

Last updated
Learn how to obtain and use your API keys

Last updated
const url = '{{BASE_URL}}/countries/supported';
const key = 'pk_test_X8lGAcZjSszo5gjk49IHOuNs860zjN0m1gxmDD1y3c7rgfqKpLX2IOakN0oraSVd';
fetch(url, {
headers: {
'Authorization': key,
}
})
.then(data => {
return data.json();
})
.then(result => {
console.log(result);
})
.catch(e => {
console.log(e);
});