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

Access reports after run_report/ api

I was following the docs in API Reports. After I generated a report thru run_report I was given a json response with 3 links:

{
"report_url": "https://docs.testrail.com/index.php?/reports/view/383",
"report_html": "https://docs.testrail.com/index.php?/reports/get_html/383",
"report_pdf": "https://docs.testrail.com/index.php?/reports/get_pdf/383"

}

How do I access them programmatically and download pdf for example? When I try to fetch any of them, it doesn’t work. It works only when I copy the link from the response and manually paste into the browser.