Using your API key
Learn how to obtain and use your API keys
To use your key, add it to the
Authorization
header of your request.- 1.Go to your business dashboard settings and find your keys.

2. Copy the key you want to use. If you have not completed the KYC process, only your test keys will be present.
3. Include the key in the
Authorization
header of your requests to the IvoryPay APIconst url = 'https://api.ivorypay.io/v1/countries/supported';
const key = 'pk_X8lGAcZjSszo5gjk49IHOuNs860zjN0m1gxmDD1y3c7rgfqKpLX2IOakN0oraSVd';
fetch(url, {
headers: {
'Authorization': key,
}
})
.then(data => {
return data.json();
})
.then(result => {
console.log(result);
})
.catch(e => {
console.log(e);
});
Last modified 11d ago