For security reasons, Infinia employs Basic Authentication as a safeguard measure. We generate unique API keys that you will need to use when making requests to our endpoints.
To proceed with your integration, you will be provided with a secretId
and secretPassword
by our Infinia tech representatives. These credentials are your keys to unlock the full potential of our APIs and services, ensuring secure and seamless interactions with our platform. Please treat these credentials with the utmost care and confidentiality to maintain the security of your integration.
Hereโs an example using cURL to authenticate:
curl --request POST \
--url "https://app2test.infiniaweb.com/infinia_api/v1/some_endpoint"
--header "Accept: application/json"
--header "Authorization: Basic $(echo -n 'your_secret_id:your_secret_password' | base64)"
Authenticating on Behalf of Child Companies
In addition to authenticating for your primary account, it's also possible to authenticate on behalf of child companies. To do this, include the X-Company-Id header in your requests, setting its value to the ID of the child company you wish to act on behalf of. This ensures that the API actions you perform are correctly associated with the respective child company.
Hereโs an example using cURL to authenticate on behalf of a child company:
curl --request POST \
--url "https://app2test.infiniaweb.com/infinia_api/v1/some_endpoint" \
--header "Accept: application/json" \
--header "Authorization: Basic $(echo -n 'your_secret_id:your_secret_password' | base64)" \
--header "X-Company-Id: child_company_id"