A 401 HTTP error is a standard response code indicating that authentication is required and has failed or has not yet been provided.
In the JRNI API this could mean that the Auth-Token or Bearer Token is missing or expired, or that an valid App-Id was not provided or is incorrect. Auth Tokens, App Ids and Bearer Tokens form part of the required HTTP Headers for the Admin API calls and also Auth Tokens are used in the Baskets API calls.
See https://dev.jrni.com/reference/authentication for the different types of Authentication and Token expiry times
Where you are using Basic Authentication, check your credentials are correct by using them to log into JRNI Studio. If your login to Studio fails, reset your password. If you still cannot resolve this error, contact JRNI Support for assistance.