Skip to main content
GET
/
api
/
trpc
/
test.findFirst
Get Test
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.

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
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