How to authenticate direct API calls in the request headers?
You can authenticate your direct call to Adddressfinder API services using two different options. You can include your key and secret to the request string directly, as shown in the example API pages, or you can add the secret in the Authorization headers in the request.
The following example is a valid, authorised request:
curl -H "Authorization: REPLACE_WITH_YOUR_API_SECRET" "https://api.addressfinder.io/api/nz/address/autocomplete/?key=REPLACE_WITH_YOUR_API_KEY&q=184%20will&format=json&strict=2"