rest call error found inside endpoint register.generateApiToken: method failed: (/csp/gateway/am/api/login) with code: 400.import catalog or generateApiToken return errorsAria Automation 8.18.1
The issue is caused by a credential mismatch or an incorrect password stored within the ServiceNow endpoint configuration. While manual validation steps might use cached or different session data, the automated scheduled jobs utilize the stored endpoint credentials to call the Cloud Services Platform (CSP) gateway. If these credentials (specifically the password) are incorrect or out of sync, the CSP gateway rejects the authentication request with an HTTP 400 error.
To resolve this issue, update the authentication credentials in ServiceNow:
generateApiToken scheduled job to verify that it now completes successfully without the 400 error.import catalog job to ensure dependent fields and catalog items load correctly.