Version 2.1 Authorisation
V2.1 requires the use of API Keys to authenticate, rather than using your standard Infinity Hub credentials.
To create an API key for your user, please follow this guide.
- If an API key is not provided, you will get a 401 “auth required” response code.
- If the user associated with the API key provided is not allowed to perform the requested action you will get a 403 “access denied” response code.
When making a request to Infinity APIs, the Authorization header should have the value “ApiKey xxx” where xxx is the key generated.
So for example if using cURL you would send a request in the following format:
curl -H 'Authorization: ApiKey xxx' "https://api.infinitycloud.com/config/v2.1/..."