cURL
Python
JavaScript
PHP
Go
Java
curl --request GET \
--url https://app.tryiris.dev/api/trpc/test.findFirst \
--header 'IRIS_ACCESS_TOKEN: <iris_access_token>'
{
"id" : "<string>" ,
"name" : "<string>" ,
"description" : "<string>" ,
"url" : "<string>" ,
"naturalLanguageInput" : "<string>" ,
"status" : "<string>" ,
"isActive" : true ,
"projectId" : "<string>" ,
"createdById" : "<string>" ,
"createdAt" : "<string>" ,
"updatedAt" : "<string>" ,
"project" : {
"id" : "<string>" ,
"name" : "<string>" ,
"description" : "<string>" ,
"cookies" : { } ,
"session" : { } ,
"localStorage" : { }
} ,
"createdBy" : {
"id" : "<string>" ,
"name" : "<string>" ,
"email" : "<string>" ,
"pictureUrl" : "<string>" ,
"status" : "<string>" ,
"globalRole" : "<string>"
}
}
Get Test Details
Retrieve detailed information about a specific test, including its project and creator details.
Your Iris API access token
Query Parameters
Must be set to 1 for TRPC compatibility
The query input parameters
Show Input Object Properties
The unique identifier of the test to retrieve
Response
Returns the test details along with included relations if specified.
Unique identifier of the test
Test steps in natural language format
Current status of the test (e.g., “DRAFT”)
Whether the test is active
ID of the associated project
ID of the user who created the test
Timestamp when the test was created
Timestamp when the test was last updated
Project details if included
Project cookies configuration
Project session configuration
Project local storage configuration
Creator details if included
URL of user’s profile picture
Request Example
Response Example
curl 'https://app.tryiris.dev/api/trpc/test.findFirst?batch=1&input={"where":{"id":"c5147ecb-22d0-4704-9a30-932ebf28302f"},"include":{"project":true,"createdBy":true}}' \
-H 'Authorization: Bearer <your-iris-token>' \
-X GET