Skip to main content

Hello, I’m not an AA user but want to use AA Rest APIs.

My AA admin has generated an API key for me to use but I’m not able to authenticate using that API key.

AA Admin followed below steps

  1. Created a role with permission “Generate API Key”
  2. Assigned this role to the service account I want to use
  3. Generated API key by going to user setting page

 

Now I’m trying to generate the token to use REST APIs in postman but getting “Access Denied” error.

 

Any suggestion will be helpful.

if you want to check. Is token key valid?

just pass token in header not in Body.

your body parameters are for another method looks like.

documentation says: just use token

 


It says false but thats the token I got from control center and profile in AA portal says API key is active and doesn’t expire until 2052

 

 


@sudhik.sk You are using the wrong API call for authentication. It should be:

https://yourcontrolroom/v2/authentication

A “token” is what is returned from authentication. It is NOT your API key.

Also know the v1/authentication is deprecated and will always return a failure message.

Go to https://yourcontrolroom/swagger/  (be sure to include the trailing slash) for more information.


using v2, I’m getting below error

{
"code": "generic.server.exception",
"details": null,
"message": "An unexpected problem occurred"
}

 


Please show your request.

The body sent over, since you’re using an API key, should look like this (key is case-sensitive):

{“apiKey”:”asdfasdfasdfasdf”}


Yes, I’m sending the key as it should be sent.

 

 


Reply