{"openapi":"3.1.0","info":{"title":"Tiora Versioned Workspace API","version":"1.0.0","description":"Public HTTP API for hosted connectors (Claude, Cursor, Codex, ChatGPT and MCP-compatible hosts). Tokens are bound to one Workspace with coarse read/write scopes. Workspace Role still applies."},"servers":[{"url":"/api/v1"}],"paths":{"/workspaces/{workspaceId}/search":{"get":{"operationId":"searchWorkspace","summary":"Search artifacts by key or title","security":[{"connectorBearer":["read"]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Shallow search results"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/workspaces/{workspaceId}/projects":{"get":{"operationId":"listProjects","summary":"List Projects","security":[{"connectorBearer":["read"]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Project list"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/workspaces/{workspaceId}/projects/{projectId}":{"get":{"operationId":"getProject","summary":"Get one Project","security":[{"connectorBearer":["read"]}]}},"/workspaces/{workspaceId}/members":{"get":{"operationId":"listMembers","summary":"List assignable Workspace members","security":[{"connectorBearer":["read"]}],"description":"Read-only directory of non-Viewer members for Defect Assignee selection. Membership mutations stay web-only.","responses":{"200":{"description":"Assignable Workspace memberships","content":{"application/json":{"schema":{"type":"object","required":["members"],"properties":{"members":{"type":"array","items":{"type":"object","required":["id","userId","name","email","role"],"properties":{"id":{"type":"string","description":"Workspace membership id accepted as assigneeId."},"userId":{"type":"string"},"name":{"type":"string","nullable":true},"email":{"type":"string"},"role":{"type":"string"}}}}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/folders":{"get":{"operationId":"listFolders","summary":"List Folders"},"post":{"operationId":"createFolder","summary":"Create Folder"}},"/workspaces/{workspaceId}/projects/{projectId}/folders/{folderId}":{"patch":{"operationId":"updateFolder","summary":"Rename and/or move a Folder"},"delete":{"operationId":"deleteFolder","summary":"Delete a Folder and its Tests","responses":{"204":{"description":"Folder deleted"}}}},"/workspaces/{workspaceId}/projects/{projectId}/labels":{"get":{"operationId":"listLabels","summary":"List Labels"},"post":{"operationId":"createLabel","summary":"Create Label"}},"/workspaces/{workspaceId}/projects/{projectId}/environments":{"get":{"operationId":"listEnvironments","summary":"List Environments"},"post":{"operationId":"createEnvironment","summary":"Create Environment"}},"/workspaces/{workspaceId}/projects/{projectId}/build-versions":{"get":{"operationId":"listBuildVersions","summary":"List Build versions"},"post":{"operationId":"createBuildVersion","summary":"Create Build version","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBuildVersionRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/test-cases":{"get":{"operationId":"listTestCases","summary":"List Tests","security":[{"connectorBearer":["read"]}],"responses":{"200":{"description":"Test Case summaries","content":{"application/json":{"schema":{"type":"object","required":["testCases"],"properties":{"testCases":{"type":"array","items":{"$ref":"#/components/schemas/TestCaseSummary"}}}}}}}}},"post":{"operationId":"createTestCase","summary":"Create Test","security":[{"connectorBearer":["write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestCaseRequest"}}}},"responses":{"201":{"description":"Created Test","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedTestCase"}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/test-cases/{testCaseId}":{"get":{"operationId":"getTestCase","summary":"Get one Test Case","security":[{"connectorBearer":["read"]}],"responses":{"200":{"description":"Full Test Case","content":{"application/json":{"schema":{"type":"object","required":["testCase"],"properties":{"testCase":{"$ref":"#/components/schemas/TestCase"}}}}}}}},"patch":{"operationId":"updateTestCase","summary":"Revise Test Working Copy, Folder, Labels or lifecycle","security":[{"connectorBearer":["write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTestCaseRequest"}}}},"responses":{"200":{"description":"Updated Test","content":{"application/json":{"schema":{"type":"object","required":["testCase"],"properties":{"testCase":{"$ref":"#/components/schemas/UpdatedTestCase"}}}}}},"409":{"description":"Working Copy version conflict"}}}},"/workspaces/{workspaceId}/projects/{projectId}/run-recipes":{"get":{"operationId":"listRunRecipes","summary":"List Run Recipes","security":[{"connectorBearer":["read"]}]},"post":{"operationId":"createRunRecipe","summary":"Create a Run Recipe","security":[{"connectorBearer":["write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRunRecipeRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/run-recipes/{runRecipeId}":{"patch":{"operationId":"updateRunRecipe","summary":"Update a Run Recipe","security":[{"connectorBearer":["write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRunRecipeRequest"}}}}},"delete":{"operationId":"deleteRunRecipe","summary":"Delete a Run Recipe","security":[{"connectorBearer":["write"]}],"responses":{"204":{"description":"Run Recipe deleted"}}}},"/workspaces/{workspaceId}/projects/{projectId}/human-reviews":{"get":{"operationId":"listHumanReviews","summary":"List open human reviews in a Project","description":"Read-only. One row per Test Case: its marked execution in the newest Run that is not Cancelled, listed while no person has recorded its current result. READY rows have a pre-check result and come first (Completed Runs first, then oldest result). WAITING rows have no result yet (oldest Run first). At most 100 rows. truncated is true when there are more.","security":[{"connectorBearer":["read"]}],"parameters":[{"name":"mine","in":"query","required":false,"description":"true lists only executions where the token's user is the Executor.","schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"Open human reviews","content":{"application/json":{"schema":{"type":"object","required":["items","truncated"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/HumanReviewQueueItem"}},"truncated":{"type":"boolean"}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs":{"get":{"operationId":"listTestRuns","summary":"List Test Runs"},"post":{"operationId":"createTestRun","summary":"Create Test Run","description":"Create from Ready Test Case ids or from a Run Recipe via recipeKey (PREFIX-S…) or recipeSlug (sanity selects Ready cases with the Sanity label, full-regression selects every Ready case). Optional externalId dedupes CI retries. forceNew ignores a prior externalId match.","security":[{"connectorBearer":["write"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTestRunRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/verification-brief":{"get":{"operationId":"getVerificationBrief","summary":"Get the Verification Brief","description":"What to run and what needs attention: the built-in sanity and full-regression Recipes with Ready case counts plus stored Recipes, the latest Test Run per Environment with outcome counts, active Runs, failing (cases whose latest result is Failed or Blocked, with open Defects), open human reviews and Defects ready to retest. buildVersion narrows failing to Runs on that build.","security":[{"connectorBearer":["read"]}],"parameters":[{"name":"buildVersion","in":"query","schema":{"type":"string"}}]}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/retest":{"post":{"operationId":"createRetest","summary":"Create a Retest Run"}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}":{"get":{"operationId":"getTestRun","summary":"Get Test Run with executions","description":"Includes outcome counts, progress and gateFailed for CI polling against the Run’s gateFailurePolicy.","security":[{"connectorBearer":["read"]}],"responses":{"200":{"description":"Test Run with gate rollup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTestRunResponse"}}}}}},"patch":{"operationId":"patchTestRun","summary":"Patch Test Run name, environment, build version or assignee","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchTestRunRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}/cancel":{"post":{"operationId":"cancelTestRun","summary":"Cancel a Test Run"}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}/executions":{"post":{"operationId":"addRunExecutions","summary":"Add Tests to a Test Run"}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}/executions/{executionId}":{"delete":{"operationId":"removeRunExecution","summary":"Remove a Test Execution from a Run","description":"Agents and automations cannot remove an Execution of a Test that needs human review. Only a person can.","responses":{"200":{"description":"Execution removed"},"403":{"description":"The Execution needs human review and only a person can remove it"}}}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}/executions/order":{"put":{"operationId":"reorderRunExecutions","summary":"Reorder unexecuted Tests in a Run"}},"/workspaces/{workspaceId}/projects/{projectId}/test-runs/{testRunId}/executions/claim-next":{"post":{"operationId":"claimNextExecution","summary":"Claim the next unexecuted Test Execution","description":"Automation Actors receive a short stealable lease. Humans claim without a lease and clear any automation lease. The execution carries humanReview (see ExecutionHumanReview), null when the Test needs no review.","security":[{"connectorBearer":["write"]}],"responses":{"200":{"description":"Claimed execution"},"404":{"description":"No claimable execution"}}}},"/workspaces/{workspaceId}/projects/{projectId}/executions/{executionId}/claim":{"post":{"operationId":"claimExecution","summary":"Claim Test Execution as Executor","description":"The returned execution carries humanReview (see ExecutionHumanReview), null when the Test needs no review."}},"/workspaces/{workspaceId}/projects/{projectId}/executions/{executionId}/release":{"post":{"operationId":"releaseExecution","summary":"Release a claimed Test Execution"}},"/workspaces/{workspaceId}/projects/{projectId}/executions/{executionId}/reassign":{"post":{"operationId":"reassignExecution","summary":"Reassign a Test Execution to another Executor","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignExecutionRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/executions/{executionId}/progress":{"post":{"operationId":"saveExecutionProgress","summary":"Save in-progress step outcomes"}},"/workspaces/{workspaceId}/projects/{projectId}/executions/{executionId}/outcome":{"post":{"operationId":"submitExecutionOutcome","summary":"Record final Execution Outcome","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitExecutionOutcomeRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/defects":{"get":{"operationId":"listDefects","summary":"List Defects"},"post":{"operationId":"createDefect","summary":"Create Defect"}},"/workspaces/{workspaceId}/projects/{projectId}/defects/{defectId}":{"get":{"operationId":"getDefect","summary":"Get one Defect with reproduction fields, labels, execution links, screenshots and comments"},"patch":{"operationId":"updateDefect","summary":"Update Defect fields and/or status"}},"/workspaces/{workspaceId}/projects/{projectId}/defects/{defectId}/comments":{"post":{"operationId":"commentOnDefect","summary":"Add a Defect comment"}},"/workspaces/{workspaceId}/projects/{projectId}/defects/{defectId}/execution-links":{"post":{"operationId":"linkDefectExecution","summary":"Link a Defect to a Test Execution","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkDefectExecutionRequest"}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/failure-screenshots":{"post":{"operationId":"createFailureScreenshotUpload","summary":"Create short-lived Failure Screenshot upload URL"}},"/workspaces/{workspaceId}/projects/{projectId}/failure-screenshots/{screenshotId}/finalize":{"post":{"operationId":"finalizeFailureScreenshot","summary":"Finalize uploaded Failure Screenshot"}},"/workspaces/{workspaceId}/projects/{projectId}/failure-screenshots/{screenshotId}/preview":{"get":{"operationId":"getFailureScreenshotPreview","summary":"Get a short-lived Failure Screenshot preview path"}},"/workspaces/{workspaceId}/projects/{projectId}/explorations":{"get":{"operationId":"listExplorations","summary":"List Exploratory sessions, newest first","description":"Exploratory sessions (ADR 0022) are charter-driven sessions with the Artifact Key letter E, such as PAY-E3. Filter with status (PLANNED, IN_PROGRESS, COMPLETED or CANCELLED). limit is 1 to 100 (default 50). Use nextCursor as cursor for the next page.","responses":{"200":{"description":"Exploratory sessions","content":{"application/json":{"schema":{"type":"object","properties":{"explorations":{"type":"array","items":{"$ref":"#/components/schemas/Exploration"}},"items":{"type":"array","items":{"$ref":"#/components/schemas/Exploration"}},"nextCursor":{"type":"string","nullable":true}}}}}}}},"post":{"operationId":"createExploration","summary":"Start or plan an Exploratory session","description":"Starts the session right away unless start is false. The recorder kind and connected app come from the token.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateExplorationRequest"}}}},"responses":{"201":{"description":"Session created","content":{"application/json":{"schema":{"type":"object","properties":{"exploration":{"$ref":"#/components/schemas/Exploration"}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/explorations/{explorationId}":{"get":{"operationId":"getExploration","summary":"Get an Exploratory session with its notes, screenshots and the Defects and Test Cases its notes became","responses":{"200":{"description":"Session with notes","content":{"application/json":{"schema":{"type":"object","properties":{"exploration":{"$ref":"#/components/schemas/ExplorationDetail"}}}}}}}},"patch":{"operationId":"updateExploration","summary":"Update an Exploratory session or move its status","description":"Status moves PLANNED to IN_PROGRESS or CANCELLED, and IN_PROGRESS to COMPLETED or CANCELLED. A completed session only takes a summary. A cancelled session cannot be changed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateExplorationRequest"}}}},"responses":{"200":{"description":"Session updated","content":{"application/json":{"schema":{"type":"object","properties":{"exploration":{"$ref":"#/components/schemas/Exploration"}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/explorations/{explorationId}/notes":{"post":{"operationId":"addExplorationNote","summary":"Add a timestamped note to a session in progress","description":"screenshotIds are your own finalized uploads from POST failure-screenshots without an executionId. At most five per note.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddExplorationNoteRequest"}}}},"responses":{"201":{"description":"Note added","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"$ref":"#/components/schemas/ExplorationNote"}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/explorations/{explorationId}/notes/{noteId}/defect":{"post":{"operationId":"fileExplorationDefect","summary":"File a note as a Defect","description":"The title defaults to the first line of the note and the description to the note. The Defect gets the session Environment and the note screenshots. A note becomes at most one Defect. Allowed while the session is in progress or completed.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileExplorationDefectRequest"}}}},"responses":{"201":{"description":"Defect filed","content":{"application/json":{"schema":{"type":"object","properties":{"defect":{"$ref":"#/components/schemas/ExplorationFinding"}}}}}}}}},"/workspaces/{workspaceId}/projects/{projectId}/explorations/{explorationId}/notes/{noteId}/test-case":{"post":{"operationId":"makeExplorationTestCase","summary":"Turn a note into a Draft Test Case","description":"The title defaults to the first line of the note and the objective to the note. Send steps to make it runnable. A note becomes at most one Test Case.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeExplorationTestCaseRequest"}}}},"responses":{"201":{"description":"Draft Test Case created","content":{"application/json":{"schema":{"type":"object","properties":{"testCase":{"$ref":"#/components/schemas/ExplorationFinding"}}}}}}}}},"/workspaces/{workspaceId}/statuses":{"get":{"operationId":"listStatuses","summary":"List Workspace Statuses"}}},"components":{"securitySchemes":{"connectorBearer":{"type":"http","scheme":"bearer","bearerFormat":"Tiora connector access token"}},"schemas":{"Exploration":{"type":"object","description":"An Exploratory session (ADR 0022).","properties":{"id":{"type":"string"},"key":{"type":"string","description":"Artifact Key, such as PAY-E3."},"charter":{"type":"string"},"status":{"type":"string","enum":["PLANNED","IN_PROGRESS","COMPLETED","CANCELLED"]},"timeboxMinutes":{"type":"integer","nullable":true},"environment":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"baseUrl":{"type":"string","nullable":true}}},"buildVersion":{"type":"string","nullable":true},"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true},"summary":{"type":"string","nullable":true},"owner":{"type":"object","nullable":true,"properties":{"membershipId":{"type":"string"},"name":{"type":"string","nullable":true}}},"createdBy":{"type":"object","nullable":true,"properties":{"membershipId":{"type":"string"},"name":{"type":"string","nullable":true}}},"recorderKind":{"type":"string","enum":["HUMAN","AGENT","AUTOMATION"]},"connectedApp":{"type":"string","nullable":true},"noteCount":{"type":"integer"},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"cancelledAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ExplorationDetail":{"allOf":[{"$ref":"#/components/schemas/Exploration"},{"type":"object","properties":{"notes":{"type":"array","items":{"$ref":"#/components/schemas/ExplorationNote"}}}}]},"ExplorationNote":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"recorderKind":{"type":"string","enum":["HUMAN","AGENT","AUTOMATION"]},"connectedApp":{"type":"string","nullable":true},"author":{"type":"object","nullable":true,"properties":{"membershipId":{"type":"string"},"name":{"type":"string","nullable":true}}},"createdAt":{"type":"string","format":"date-time"},"screenshots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":"string"},"mimeType":{"type":"string"},"previewPath":{"type":"string","description":"Short-lived preview path signed for the caller's account."}}}},"defect":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"}}},"testCase":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"lifecycle":{"type":"string"}}}}},"ExplorationFinding":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"status":{"type":"string","description":"Defect status."},"lifecycle":{"type":"string","description":"Test Case lifecycle."},"noteId":{"type":"string"}}},"CreateExplorationRequest":{"type":"object","required":["charter"],"properties":{"charter":{"type":"string","minLength":1,"maxLength":2000,"description":"What to explore and what to look for."},"timeboxMinutes":{"type":"integer","minimum":1,"maximum":480,"nullable":true},"environmentId":{"type":"string","nullable":true},"buildVersion":{"type":"string","maxLength":200,"nullable":true},"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true},"ownerId":{"type":"string","nullable":true,"description":"Workspace membership id. Defaults to the caller. null leaves it unowned."},"start":{"type":"boolean","default":true,"description":"false plans the session for later."}}},"UpdateExplorationRequest":{"type":"object","description":"At least one field required.","properties":{"charter":{"type":"string","minLength":1,"maxLength":2000},"timeboxMinutes":{"type":"integer","minimum":1,"maximum":480,"nullable":true},"environmentId":{"type":"string","nullable":true},"buildVersion":{"type":"string","maxLength":200,"nullable":true},"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true},"ownerId":{"type":"string","nullable":true},"summary":{"type":"string","maxLength":10000,"nullable":true},"status":{"type":"string","enum":["PLANNED","IN_PROGRESS","COMPLETED","CANCELLED"]}}},"AddExplorationNoteRequest":{"type":"object","required":["body"],"properties":{"body":{"type":"string","minLength":1,"maxLength":10000},"screenshotIds":{"type":"array","maxItems":5,"items":{"type":"string"}}}},"FileExplorationDefectRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":50000,"nullable":true},"stepsToReproduce":{"type":"string","maxLength":50000,"nullable":true},"expectedResult":{"type":"string","maxLength":50000,"nullable":true},"actualResult":{"type":"string","maxLength":50000,"nullable":true},"severity":{"type":"string","enum":["BLOCKER","CRITICAL","MAJOR","MINOR"]},"priority":{"type":"string","enum":["URGENT","HIGH","MEDIUM","LOW"]},"assigneeId":{"type":"string","nullable":true},"labelIds":{"type":"array","items":{"type":"string"}}}},"MakeExplorationTestCaseRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","maxLength":50000,"nullable":true},"steps":{"type":"array","maxItems":100,"items":{"type":"object","required":["instruction"],"properties":{"instruction":{"type":"string","minLength":1,"maxLength":10000},"expectedResult":{"type":"string","maxLength":10000},"testData":{"type":"string","maxLength":10000}}}},"folderId":{"type":"string"},"labelIds":{"type":"array","items":{"type":"string"}}}},"DeviceProfile":{"type":"object","additionalProperties":false,"description":"Where a UI check runs (ADR 0021). Every field is optional.","properties":{"browser":{"type":"string","maxLength":60},"browserVersion":{"type":"string","maxLength":40},"os":{"type":"string","maxLength":60},"device":{"type":"string","maxLength":80},"viewport":{"type":"object","additionalProperties":false,"required":["width","height"],"properties":{"width":{"type":"integer","minimum":1,"maximum":20000},"height":{"type":"integer","minimum":1,"maximum":20000}}},"colorScheme":{"type":"string","enum":["light","dark"]}}},"StructuredStep":{"type":"object","required":["id","order","instruction"],"properties":{"id":{"type":"string","minLength":1,"maxLength":100},"order":{"type":"integer","minimum":0,"description":"Must equal the step’s index in the steps array."},"instruction":{"type":"string"},"testData":{"type":"string","default":""},"expectedResult":{"type":"string","default":""}}},"TestCaseContent":{"type":"object","required":["format","steps"],"properties":{"format":{"type":"string","enum":["STRUCTURED"]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/StructuredStep"}}}},"CreateTestCaseRequest":{"type":"object","required":["title","content"],"properties":{"designLinks":{"type":"array","maxItems":10,"description":"Design references such as Figma frames or Claude artifacts. https only, each URL once. On update it replaces the list.","items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2000},"label":{"type":"string","maxLength":80}}}},"title":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","nullable":true,"maxLength":50000,"description":"Case Objective. The app shows this as Objective in English and Cíl in Czech. Steps belong in content. Defects use a separate description field."},"preconditions":{"type":"string","nullable":true,"maxLength":50000},"testData":{"type":"string","nullable":true,"maxLength":50000},"content":{"$ref":"#/components/schemas/TestCaseContent"},"folderId":{"type":"string"},"position":{"type":"integer","minimum":0},"lifecycle":{"type":"string","maxLength":64},"priority":{"type":"string","nullable":true,"enum":["URGENT","HIGH","MEDIUM","LOW"]},"assigneeId":{"type":"string","nullable":true},"labelIds":{"type":"array","maxItems":100,"items":{"type":"string"}},"humanReview":{"$ref":"#/components/schemas/HumanReviewMark"}}},"UpdateTestCaseRequest":{"type":"object","description":"At least one field required. Revising Working Copy fields requires both expectedVersion and content.","properties":{"designLinks":{"type":"array","maxItems":10,"description":"Design references such as Figma frames or Claude artifacts. https only, each URL once. On update it replaces the list.","items":{"type":"object","additionalProperties":false,"required":["url"],"properties":{"url":{"type":"string","format":"uri","maxLength":2000},"label":{"type":"string","maxLength":80}}}},"title":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","nullable":true,"maxLength":50000,"description":"Case Objective. The app shows this as Objective in English and Cíl in Czech. Steps belong in content. Defects use a separate description field."},"preconditions":{"type":"string","nullable":true,"maxLength":50000},"testData":{"type":"string","nullable":true,"maxLength":50000},"content":{"$ref":"#/components/schemas/TestCaseContent"},"expectedVersion":{"type":"integer","minimum":1,"description":"Optimistic concurrency token from workingCopyVersion."},"lifecycle":{"type":"string","maxLength":64},"folderId":{"type":"string"},"position":{"type":"integer","minimum":0},"labelIds":{"type":"array","maxItems":100,"items":{"type":"string"}},"humanReview":{"$ref":"#/components/schemas/HumanReviewMark"}}},"HumanReviewMark":{"type":"object","required":["required"],"description":"Marks a Test as requiring a person to review its results. Agents and automations may add a mark but only a person can change its reason or remove it.","properties":{"required":{"type":"boolean"},"reason":{"type":"string","nullable":true,"maxLength":300}}},"ExecutionHumanReview":{"type":"object","nullable":true,"description":"Null when the execution does not need a person's review. Otherwise it carries the mark reason, the agent's review request and whether a person's result is still missing.","required":["required","reason","request","open"],"properties":{"required":{"type":"boolean","enum":[true]},"reason":{"type":"string","nullable":true},"request":{"type":"object","nullable":true,"properties":{"reason":{"type":"string"},"requestedBy":{"type":"string","nullable":true},"requestedAt":{"type":"string","format":"date-time"}}},"open":{"type":"boolean","description":"True until a person records a current result. An agent's later result opens it again."}}},"HumanReviewQueueItem":{"type":"object","description":"An execution that still needs a person's result. It carries no Test content and no logs.","required":["group","executionId","testRunId","testRunKey","testRunName","runStatus","testCaseKey","title","outcome","recorderKind","connectedApp","completedAt","markReason","request","executor"],"properties":{"group":{"type":"string","enum":["READY","WAITING"],"description":"READY has a pre-check result to review. WAITING has no result yet."},"executionId":{"type":"string"},"testRunId":{"type":"string"},"testRunKey":{"type":"string","description":"Artifact Key"},"testRunName":{"type":"string"},"runStatus":{"type":"string","enum":["PLANNED","IN_PROGRESS","COMPLETED"]},"testCaseKey":{"type":"string","description":"Artifact Key"},"title":{"type":"string"},"outcome":{"type":"string","nullable":true,"enum":["PASSED","FAILED","BLOCKED","SKIPPED"]},"recorderKind":{"type":"string","nullable":true,"enum":["HUMAN","AGENT","AUTOMATION"]},"connectedApp":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"markReason":{"type":"string","nullable":true,"description":"The Test's mark reason captured on this execution."},"request":{"type":"object","nullable":true,"description":"An agent's review request on this execution.","required":["reason","requestedBy","requestedAt"],"properties":{"reason":{"type":"string"},"requestedBy":{"type":"string","nullable":true},"requestedAt":{"type":"string","format":"date-time"}}},"executor":{"type":"object","nullable":true,"required":["membershipId","name"],"properties":{"membershipId":{"type":"string"},"name":{"type":"string"}}}}},"TestCaseSummary":{"type":"object","required":["id","key","title","lifecycle","folderId"],"properties":{"id":{"type":"string"},"key":{"type":"string","description":"Artifact Key"},"title":{"type":"string"},"lifecycle":{"type":"string"},"folderId":{"type":"string"}}},"CreatedTestCase":{"type":"object","required":["testCase"],"properties":{"testCase":{"type":"object","required":["id","key","title","lifecycle","workingCopyVersion"],"properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"objective":{"type":"string","nullable":true},"lifecycle":{"type":"string"},"workingCopyVersion":{"type":"integer"},"content":{"$ref":"#/components/schemas/TestCaseContent"},"folder":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string"}}}}}}},"UpdatedTestCase":{"type":"object","required":["id","key","title","lifecycle","workingCopyVersion"],"properties":{"id":{"type":"string"},"key":{"type":"string"},"title":{"type":"string"},"lifecycle":{"type":"string"},"workingCopyVersion":{"type":"integer"}}},"CreateTestRunRequest":{"type":"object","description":"Either (name + environmentId + testCaseIds) or (recipeKey / recipeSlug). specKeys was removed and answers 410. Recipe path expands Ready Cases from the Recipe selection.","properties":{"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true,"description":"Where the Run should be checked. Defaults to the Recipe's target on the Recipe path. Retests keep the source Run's target."},"name":{"type":"string","minLength":1,"maxLength":200},"environmentId":{"type":"string","minLength":1},"testCaseIds":{"type":"array","items":{"type":"string","minLength":1}},"recipeKey":{"type":"string","minLength":1,"description":"Run Recipe Artifact Key (PREFIX-S…)."},"recipeSlug":{"type":"string","minLength":1,"description":"Optional stable slug for the Run Recipe."},"buildVersion":{"type":"string","nullable":true,"maxLength":200,"description":"Build version name. Automatically added to the Project catalog when missing."},"assigneeId":{"type":"string","nullable":true,"description":"Workspace membership id for unexecuted assignees."},"externalId":{"type":"string","minLength":1,"maxLength":200,"description":"CI correlation id. Matching open Runs are returned instead of creating a duplicate unless forceNew is true."},"forceNew":{"type":"boolean","description":"Ignore externalId dedupe and create a new Run."},"gateFailurePolicy":{"type":"string","enum":["FAILED_ONLY","FAILED_OR_BLOCKED","ANY_NON_PASSED"]},"autoFileDefects":{"type":"boolean"}}},"GetTestRunResponse":{"type":"object","required":["testRun"],"properties":{"testRun":{"type":"object","required":["id","key","name","status","counts","gateFailed","progress","executions"],"properties":{"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"buildVersion":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"gateFailurePolicy":{"type":"string","enum":["FAILED_ONLY","FAILED_OR_BLOCKED","ANY_NON_PASSED"]},"autoFileDefects":{"type":"boolean"},"counts":{"type":"object","required":["passed","failed","blocked","skipped","unexecuted"],"properties":{"passed":{"type":"integer"},"failed":{"type":"integer"},"blocked":{"type":"integer"},"skipped":{"type":"integer"},"unexecuted":{"type":"integer"}}},"gateFailed":{"type":"boolean","description":"True when gateState is FAILED: counts violate gateFailurePolicy or a Run trust policy is breached (use for CI exit)."},"gateState":{"type":"string","description":"PENDING_HUMAN_REVIEW appears only when the Run's requireHumanReview policy is on, the Run is Completed and a person still has to record a result for a marked or requested Test. It is not a failure, so gateFailed stays false. With the policy off the value never appears.","enum":["PASSED","FAILED","PENDING_HUMAN_REVIEW","PENDING_SIGN_OFF","IN_PROGRESS","CANCELLED"]},"trust":{"type":"object","description":"Trust summary of agent and automation passes, with the Run's trust policies.","properties":{"agentPasses":{"type":"integer"},"agentPassesWithoutEvidence":{"type":"integer"},"agentPassesNotIndependent":{"type":"integer"},"signOff":{"type":"object","nullable":true,"properties":{"by":{"type":"string"},"at":{"type":"string","format":"date-time"},"note":{"type":"string","nullable":true}}},"humanReviews":{"type":"object","description":"Executions that need a person's result. open counts those still waiting for one.","properties":{"required":{"type":"integer"},"open":{"type":"integer"}}},"breaches":{"type":"array","items":{"type":"string","enum":["requireEvidenceForAgentPasses","requireIndependentVerifier"]}},"policies":{"type":"object","properties":{"requireEvidenceForAgentPasses":{"type":"boolean"},"requireIndependentVerifier":{"type":"boolean"},"requireHumanSignOff":{"type":"boolean"},"requireHumanReview":{"type":"boolean","description":"Copied from the Project when the Run was created. Changing the Project later does not change this Run."}}}}},"progress":{"type":"object","required":["total","completed"],"properties":{"total":{"type":"integer"},"completed":{"type":"integer"}}},"executions":{"type":"array","items":{"type":"object","properties":{"provenance":{"type":"object","nullable":true,"description":"Who recorded the result. Null when the result has no recorded provenance.","properties":{"recorderKind":{"type":"string","enum":["HUMAN","AGENT","AUTOMATION"]},"connectedApp":{"type":"string","nullable":true},"reportedModel":{"type":"string","nullable":true},"reportedSessionId":{"type":"string","nullable":true},"builderSessionId":{"type":"string","nullable":true},"verifierIndependence":{"type":"string","nullable":true,"enum":["INDEPENDENT","SAME_SESSION","UNKNOWN"]}}},"humanReview":{"$ref":"#/components/schemas/ExecutionHumanReview"},"evidence":{"type":"object","properties":{"screenshots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":"string"}}}},"hasLog":{"type":"boolean","description":"True when the current result has a non-empty evidence log. The log text is not included in Run payloads."},"logLength":{"type":"integer","description":"Length of the evidence log in characters. 0 when there is none."}}}}}}}}}},"CreateRunRecipeRequest":{"type":"object","required":["name"],"properties":{"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true},"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","nullable":true,"maxLength":64},"environmentId":{"type":"string","nullable":true},"defaultBuildVersion":{"type":"string","nullable":true,"maxLength":200},"selectedFolderIds":{"type":"array","items":{"type":"string"}},"requiredLabelIds":{"type":"array","items":{"type":"string"}},"addedTestCaseIds":{"type":"array","items":{"type":"string"}},"removedTestCaseIds":{"type":"array","items":{"type":"string"}},"gateFailurePolicy":{"type":"string","enum":["FAILED_ONLY","FAILED_OR_BLOCKED","ANY_NON_PASSED"]},"autoFileDefects":{"type":"boolean"},"automationOnly":{"type":"boolean"}}},"UpdateRunRecipeRequest":{"type":"object","description":"At least one field required.","properties":{"targetProfile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"nullable":true},"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","nullable":true,"maxLength":64},"environmentId":{"type":"string","nullable":true},"defaultBuildVersion":{"type":"string","nullable":true,"maxLength":200},"selectedFolderIds":{"type":"array","items":{"type":"string"}},"requiredLabelIds":{"type":"array","items":{"type":"string"}},"addedTestCaseIds":{"type":"array","items":{"type":"string"}},"removedTestCaseIds":{"type":"array","items":{"type":"string"}},"gateFailurePolicy":{"type":"string","enum":["FAILED_ONLY","FAILED_OR_BLOCKED","ANY_NON_PASSED"]},"autoFileDefects":{"type":"boolean"},"automationOnly":{"type":"boolean"}}},"PatchTestRunRequest":{"type":"object","description":"At least one field required.","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"environmentId":{"type":"string","minLength":1},"buildVersion":{"type":"string","nullable":true,"maxLength":200,"description":"Build version name from the Project catalog."},"assigneeId":{"type":"string","nullable":true,"description":"Workspace membership id for unexecuted assignees."}}},"SubmitExecutionOutcomeRequest":{"type":"object","properties":{"outcome":{"type":"string","enum":["PASSED","FAILED","BLOCKED","SKIPPED"]},"stepOutcomes":{"type":"array","items":{"type":"object","required":["stepId","outcome"],"properties":{"stepId":{"type":"string"},"outcome":{"type":"string","enum":["PASSED","FAILED","BLOCKED","SKIPPED"]},"note":{"type":"string","nullable":true,"maxLength":50000}}}},"actualResult":{"type":"string","maxLength":50000},"evidenceNotes":{"type":"string","nullable":true,"maxLength":50000},"evidenceStepId":{"type":"string","nullable":true},"screenshotIds":{"type":"array","maxItems":5,"items":{"type":"string"},"description":"Finalized screenshot uploads to attach as evidence. Allowed on any outcome."},"blockingDefectId":{"type":"string","nullable":true},"blockReason":{"type":"string","maxLength":50000},"executionNote":{"type":"string","nullable":true,"maxLength":50000},"profile":{"allOf":[{"$ref":"#/components/schemas/DeviceProfile"}],"description":"Browser, OS, device, viewport and color scheme this result was checked on. Stored as reported."},"reportedModel":{"type":"string","minLength":1,"maxLength":120,"description":"Model the agent reports running on. Stored as reported and not verified."},"sessionId":{"type":"string","minLength":1,"maxLength":200,"description":"Stable identifier for the recording session. Stored as reported and not verified."},"builderSessionId":{"type":"string","minLength":1,"maxLength":200,"description":"Session that built the work being verified. Send it when you verify work from another session."},"evidenceLog":{"type":"string","maxLength":20000,"description":"Plain-text evidence such as test output. Replaces the stored log when a different recorder writes the result."},"requestHumanReview":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":1,"maxLength":300,"description":"Why a person should check this result. Only the first request on an Execution is kept."}},"description":"Ask for Human review of this Execution. Stored with the Connected app that sent it and puts the Execution in the review queue."}}},"ReassignExecutionRequest":{"type":"object","required":["executorMembershipId"],"properties":{"executorMembershipId":{"type":"string","nullable":true,"description":"Target Workspace membership id, or null to clear assignee."}}},"LinkDefectExecutionRequest":{"type":"object","required":["executionId"],"properties":{"executionId":{"type":"string","minLength":1},"stepId":{"type":"string","nullable":true,"minLength":1}}},"CreateBuildVersionRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":2000,"nullable":true}}},"TestCase":{"type":"object","description":"Full Test Case Working Copy as returned by GET for agents.","required":["id","key","title","lifecycle","workingCopyVersion","content"],"properties":{"id":{"type":"string"},"key":{"type":"string","description":"Artifact Key"},"title":{"type":"string"},"lifecycle":{"type":"string"},"workingCopyVersion":{"type":"integer"},"folderId":{"type":"string","nullable":true},"folder":{"type":"object","nullable":true,"additionalProperties":true},"objective":{"type":"string","nullable":true},"preconditions":{"type":"string","nullable":true},"testData":{"type":"string","nullable":true},"content":{"$ref":"#/components/schemas/TestCaseContent"},"humanReview":{"type":"object","required":["required","reason"],"properties":{"required":{"type":"boolean"},"reason":{"type":"string","nullable":true}}},"labels":{"type":"array","items":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"color":{"type":"string","nullable":true}}}}}}}}}