Skip to main content
Question

Control Room API Not Working


Forum|alt.badge.img

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

4 replies

Padmakumar
Forum|alt.badge.img+14
  • Navigator | Tier 3
  • 786 replies
  • January 15, 2024

Forum|alt.badge.img
  • Cadet | Tier 2
  • 1 reply
  • April 1, 2024

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.


Forum|alt.badge.img

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"}


KhaledMostafaMe
Most Valuable Pathfinder
Forum|alt.badge.img+5
  • Most Valuable Pathfinder
  • 1843 replies
  • April 4, 2025

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings