Authentication

Authentication is made through an Authorization header. A correctly formed header looks like this:

Authorization: Api-Key abcdef.abcdefgh1234567890

You get two types of API keys when you create a new API key. One is a public key and the other is private. The public key can be used in javascript and he only allows access to a handful of webservices, mostly used to activate new payment cards. Those types of payment cards need to be verified with the private API key.

The private API key needs to be save and can never be shown in an HTML code or javascript. He can only be used on a server that communicates with the Áskell API.

Example API calls to the Áskell web services with the right authentication:

  • python
import requests

API_KEY = 'your api key here'
headers = {
    "Authorization": f"Api-Key {API_KEY}"
}

response = requests.get("https://askell.is/api/customers/", headers=headers)