Skip to main content

Hello All

I need your help to resolve my below issue.

 

I want to use control using API , I have created role for API access with following access.

 

Bot Insight Data API

Generate API-Key

Then I have given api access role to my developer user and generated  API Key to connect.

When I tried to connect authentication API to read token using following URL

https://<Control Room>/v2/authentication

with Body 

{

  "apiKey": "<My Own Key>",

  "multiLogin": true

}

 

It shows message.

{

    "code": "UM1117",

    "details": null,

    "message": "Access token expected in the 'X-Authorization' header"

}

 

Can you help to resolve this issue?

 

Regards

Saket Lopes

Hi @saket lubrizol ,

 

Are you trying it though Postman?

 

I am trying to do the same thing using Python, but nothing seems to be working. I am getting error as

 

SSLError (SSLCertVerificationError(1, ''SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1007)')))

when I run the script. Please help.


Out of interest for anyone who lands here from google, I was trying to the /swagger URL and getting the same error. I found my problem on this link: 

Exposed Automation Anywhere APIs Using Swagger 

 

TLDR: Make sure to use the correct case (e.g. not /Swagger/) and append '/' at the end, else you will get an error while accessing the page {"code":"UM1117","details":null,"message":"Access token expected in the 'X-Authorization' header"}


You will need to provide username as well. In case your Control Room on AD Domain provide it as domain\\username 
 

{
"username": "jdoe",
"password": "mypassword@123",
"apiKey": "Vie;Z:IvtAhY0NU7baRLYEeIYUJSKO",
"multipleLogin": false
}

For more information https://docs.automationanywhere.com/bundle/enterprise-v2019/page/auth-api-supported-v2.html#tag/auth/paths/~1authentication/post


Reply