Unable to access Xmatters api

Not Yet Reviewed

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

4 comments
Date Votes

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

     

     

    0
  • 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

    0
  • 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

    0
  • Hi Manasa,

    Please contact me directly at irose at xmatters dot com and I'll see if I can help you.

    --

    Iain

    0

Didn't find what you were looking for?

New post