
Manasa H G
I am new to Xmatters . I am trying to make a REST API call to know who is on duty.Every time I run this command I get 401 status saying,unauthorized user.I can login successfully using the Xmatters Web Interface.
Here is the api call I am making
curl -H "Content-Type: application/json" --user username "https://xxx.hosted.xmatters.com/api/xm/1/groups/groupId/calendar"
Can somebody please tell me where I am going wrong??
0
Comments
Please sign in to leave a comment.
Hi Manasa,
A 401 suggests that you have an authentication issue.
Most likely an incorrect hostname, username or password.
Can you double check the URL and credentials you are using?
--
Iain
Did you manage to get it working? I had a try myself and got a 200 response with the results I expected.
I also cannot see anything wrong with your curl command.
--
Iain
Hi Iain,
I tried running the curl command again,but nothing helped.I am getting the same 401 status code.
As I had already mentioned in the previous post,I can successfully login to the Xmatters Web Interface.
Manasa H G
Hi Manasa,
Please contact me directly at irose at xmatters dot com and I'll see if I can help you.
--
Iain