The body sent over, since you’re using an API key, should looklike this (key is case-sensitive):
{“apiKey”:”asdfasdfasdfasdf”}
Yes, I’m sending the key as it should be sent.
Hey, I even got my user account to have admin access and tried to generate a token using my username and password but that throws the same error too. In v1, it says access denied and in v2, it gives internal server error.
Do I need to enable something else in A360 to use the control room APIs?
Why are you sending the username AND the API key? That's not what I posted.
Make sure you have API access for the user account you're using to access the API.
I tried only sending api key. In v1, I get same “Access denied” error. In v2, I get below error
```
{
"code": "UM1110",
"details": "This may be due to a misspelling or because your Caps Lock is on. To continue, please retype your username and password.",
"message": "Either your username or your password is incorrect"
}
```
V1/authentication is deprecated. Do not use it.
Sounds like the user account you generated the API key for does not have the correct privileges. Check that the user that you generated the API key for has API privileges.
What privileges are required? I tried with two user accounts one with system admin privileges too and that didnt work either
They need a role that contains Generate API-Key options. It's recommended you create a separate user for API access.
That’s what we did. We created a new role with that permission and assigned that role along with some other roles to a new user for whom I created the api key
I would recommend reaching out to your CSM at this point in case there is some customization in your environment.
I have no problem accessing our APIs using PHP on a separate web server.
Yes, waiting for the support to respond. Thanks for all the help, I’ll let this thread know of the solution once I know
It was probably an issue with our firewall but URL “{{baseUrl}}/v2/authentication” works fine