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

Get_user_by_email

Hi,

I am trying to make a simple curl call to retrieve my user ID, passing the email.
I get Error: {“error”:“Field :email is a required field.”} .

call (hiding sensitive data…):
curl -k -H “Content-Type: application/json” -u “a.a@work.com:EN7pikL0j-TqvYT6Mi/sxyZxxXhzpp” https://testrail.work.com/testrail/index.php?/api/v2/get_user_by_email&email=a.a@work.com

Also tried some more variants:
escaping the @ to %40 …
double quotes on entire email value

In all cases results in {“error”:“Field :email is a required field.”} .
Could you pls advise what am I doing wrong?

Thanks for help!
-A