Retrieve and execute Apex and flow tests in one place. Get a complete view of your
tests by using the Test Discovery API. Execute tests asynchronously or synchronously by using
the Test Runner API. These APIs are both Tooling API REST resources.
The Test Discovery API and Test Runner API support only flow tests created with automated flow testing in Flow Builder.
The base URI for these Tooling API REST resources is https://domain/services/data/vXX.X/tooling/
where domain is your org’s My Domain login URL and
vXX.X is the API version number. For example: https://MyDomainName.my.salesforce.com/services/data/v65.0/tooling/