How can I retrieve TestRunResults via the REST API?

Hi and welcome to the Testiny forum!

There’s no separate endpoint, because you can use either the test case or test run endpoint with a map operation.
Using the /api/v1/testcase/find will usually be what you’re looking for, because it will give you back both the test case information and the results in the specified test run (RUN_ID in the following example):

POST /api/v1/testcase/find
{
    "idOnly": true,
    "map": {
        "entities": ["testcase", "testrun"],
        "filter": { "testrun_id": RUN_ID }
    } 
}

In this example, I omit detail information for the test cases (i.e. title, steps, …) to make the call more efficient. Omit the idOnly parameter to include that data.

There’s also a more efficient way using the statistics API in Testiny, but it’s unfortunately quite complex and thus not public for now. There’s a post that gives some examples, though:

Hope this helps!

Best regards,
Alex