GET
/
api
/
trpc
/
test.findFirst

Get Test Details

Retrieve detailed information about a specific test, including its project and creator details.

Headers

IRIS_ACCESS_TOKEN
string
required

Your Iris API access token

Query Parameters

batch
number
required

Must be set to 1 for TRPC compatibility

input
object
required

The query input parameters

Response

Returns the test details along with included relations if specified.

id
string

Unique identifier of the test

name
string

Name of the test

description
string

Description of the test

url
string

Target URL for the test

naturalLanguageInput
string

Test steps in natural language format

status
string

Current status of the test (e.g., “DRAFT”)

isActive
boolean

Whether the test is active

projectId
string

ID of the associated project

createdById
string

ID of the user who created the test

createdAt
date

Timestamp when the test was created

updatedAt
date

Timestamp when the test was last updated

project
object

Project details if included

createdBy
object

Creator details if included