How to get my authentication ?

Summarize how to get my authentication

The Public API use a private API Key in order to perform the authorization.
If you do not have one, please contact the support team to generate your API Key.

 

The API Keys are private, and secret.
Please, do not share them with others.

 

All you have to do is to add the custom header x-api-key to each HTTP request. 

fetch('https://api.pubstack.io/v1/me/tags', { mode: 'no-cors', headers: { 'x-api-key': '<API_KEY>' }})
.then(response => response.json())
.then(myTags => {
console.log(JSON.stringify(myTags));
});