We are working on a little project to find out the schedule on x-Matters. This the url where we login on Web -
https://cerner.hosted.xmatters.com/
Here is my userName = vi041281
We tried to get the endPoints as follows -
curl --user "vi041281" "https://cerner.hosted.xmatters.com/api/xm/1/myendpoint"
but received following error
{
"code" : 401,
"message" : "Invalid Credentials",
"reason" : "Unauthorized"
}
We then tried following url -
"https://cerner.hosted.xmatters.com/api/xm/1/devices"
but the results were the same... "Invalid Credentials" error.
We had also tried the 64 encoding for username and password as mentioned in the below email thread –
but that also did not work as well.
Would you please help us out to understand what are we doing wrong? Is there something wrong with my user credentials?
Comments
Please sign in to leave a comment.
Hey there,
Have you tried putting your password on the command line, so like:
curl --user "vi041281:YOURPASSWORD" "https://cerner.hosted.xmatters.com/api/xm/1/devices"
It's certainly worth ensuring you can login to the GUI with that username and password too.
The devices api is a good one to test with because you need very few permissions to access it, so it's almost certain that the username and password you're using either isn't correct or isn't being picked up by curl correctly.
Vijay, you will not be able to perform API requests without the proper permissions.
Please follow the Cerner ASK process to provide business justification and we will get you the access you require.