Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Authentication error using API


#1

This Curl command:

curl -H “Content-Type: application/json” -u "user@example.com:" “https://example.testrail.com/index.php?/api/v2/get_case/1

yields “error”:“Authentication failed: invalid or missing user/password or session cookie.”

Need help getting this request to work using Curl.


#2

Hi Justin,

Thanks for your posting! Please make sure you have the API enabled on Administration > Site Settings > API and that you use the correct username (email address) and password (or API key if you added any on My Settings).

Cheers,
Tobias


#3

Hey @tgurock Where will i get My setting and Please would you step down step by step for same error because I facing same issue I did also saving the API setting , but did not worked for me
And nearer to Deadline so need help badly


#4

i got the End result Instead of password I have to add Key