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