Authenticating #
Access to the API requires Basic Authentication.
You’ll first need to receive an API key from Cornwall 365.
You can then use the API key to create a Basic Authorization Token by base64 encoding your API key with the api_user username. You can do this using the terminal by typing in the following and replacing [api_key] with your API key.
$ echo -n "api_user:[api_key]" | base64
In your request headers you must provide the following authorization header.
Authorization: Basic [your base64 encoded key]