GET
/
api
/
trpc
/
test.findMany

List Tests

Fetch a list of tests associated with a project, optionally including their latest test runs and project details.

Headers

IRIS_ACCESS_TOKEN
string
required

Your Iris API access token

Query Parameters

batch
number
required

Must be set to 1 to enable request batching

input
object
required

The query parameters in JSON format

Batching Requests

You can batch multiple related requests together for better performance. To batch requests, use the following format:

Response

result
array

Array containing test objects with the following structure:

Tips

  1. Use batching to combine related queries and reduce network requests
  2. The batch=1 query parameter enables request batching
  3. You can combine project.findFirst and test.findMany in a single request
  4. Use the include parameter to fetch related test runs
  5. The mode: "insensitive" option in name search enables case-insensitive searching

Error Codes

401
object

Unauthorized - Invalid or missing API token

404
object

Project not found

500
object

Internal server error