To use the Skriv API, you need to authenticate using your public and private keys (available in your account page).
The authentication is based on Basic HTTP Auth.
Every request must contain the "Authorization" HTTP header; the associated value is the "Basic" keyword, followed by a base64-encoded authentication string.
The authentication string is formed by the public key, followed by a colon character, followed by the private key.
The header is:
Authorization: Basic BASE64_ENCODED_STRING
With:
BASE64_ENCODED_STRING = BASE64(PUBKEY + ":" + PRIVKEY)