Authentication

Authenticating your API requests

Calls to the API end points are authenticated by passing a bearer token with each request

To obtain a token first make a post request to /api/auth setting the authorisation Header to Basic [YOURAPIKEY] (your API keys for each environment will be provided).

curl --request GET \
--url http://{yourclientname}.API.nFiniti/api/auth
--header 'authorization: Basic YOURAPIKEY'

This will return an access_token that you should use in the authorisation header for all subsequent requests i.e.:

curl --request GET \
--url http://{yourclientname}.API.nFiniti/customers
--header 'authorization: Bearer YOUR_ID_TOKEN_HERE'