Test Cases
How to work with test cases using the public API
The test cases endpoints allow you to retrieve information about test cases in your project. This can be useful for planning test runs and monitoring your test coverage.
A test case can be referred to by its ID, sequence number or legacy ID, both in paths ({tcase_or_legacy_id}) and wherever a request body takes test cases.
Types of Test Cases
In QA Sphere, there are three types of test cases:
- Standalone Test Case: These are the standard test cases.
- Template Test Case: Similar to standalone test cases, but they can include parameters within
${}in their title, preconditions, and steps. These parameters can be replaced with specific values to generate multiple test cases from the same template. - Filled Test Cases: Automatically created by the system by substituting parameter values in template test cases. They inherit all properties from the parent template test case.
- Users can directly create standalone and template test cases. When creating template test cases, users can specify a list of values for the parameters, which the system uses to automatically generate the corresponding filled test cases.
- Updates to a template test case will also update the corresponding filled test cases.
- Deleting a template test case also deletes its filled test cases. A filled test case can't be deleted on its own: remove its entry from the template's
parameterValuesinstead (see Update Test Case). - Test runs include only standalone and filled test cases.
Step Test Data
Each standalone step (and each sub-step of a shared step) can carry a list of test data items in its data field. Every item is one of three types, discriminated by type:
{
type: string // `text` | `link` | `file`
label?: string // Item label (max 255 characters, trimmed)
data: // Value, shape depends on `type`
| { value: string, format?: string } // text: required content (max 65535 UTF-16 code units) with an optional language hint (max 32 characters; see below)
| { value: string } // link: an http(s) URL (max 255 characters)
| { value: File } // file: a file object (`id`, `fileName`, `mimeType`, `size`, `stableUrl?`, `url?`), same shape as test case `files`
}- A step can have at most 20 test data items.
textitems must have a non-emptyvalueof at most 65,535 UTF-16 code units.formatis a language hint for syntax highlighting (e.g.plaintext,json,sql); an unsupported value falls back to plain text.- For
fileitems, upload the file first using the upload file endpoint, then pass the object it returns as the item'svalue. - A step is kept when it has a description, an expected result, or test data, so a step carrying only
datais valid. - Test data belongs to standalone steps and to shared step sub-steps. A step that references a shared step by
sharedStepIdmust not senddata— the shared step owns the data on its sub-steps, and sending both is rejected. - Shared steps carry their test data on their sub-steps: set it with Create Shared Step or Update Shared Step. Test case responses return it in sub-step
data.
List Test Cases
/paginated endpoints are transitional. In API v1, the base paths will return paginated responses and the /paginated suffix will be removed.
Retrieves all test cases within a project based on the filters provided in the request query parameters.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Query Parameters
Some query parameters can be specified multiple times using the format param=value1¶m=value2¶m=value3.
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
types | string | Filter by type: standalone, template or filled. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | types=standalone |
search | string | Filter by title using case-insensitive partial matching. | No filter | search=ui |
folders | number | Filter by folder ID, without its subfolders unless recursive is set. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | folders=10&folders=12 |
recursive | boolean | With folders, also return the test cases in their subfolders. Without a sortField, they come folder by folder in the folder tree's order. | false | recursive=true |
tags | number | Filter by tag ID. Repeat the parameter for multiple IDs; tagsFilterOp sets how multiple values combine. | No filter | tags=12 |
tagsFilterOp | string | How multiple tags values combine: or (any of the tags), and (all of the tags) or not (none of the tags). | or | tagsFilterOp=and |
priorities | string | Filter by priority: high, medium or low. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | priorities=low |
draft | boolean | Filter by draft status: true or false. | No filter | draft=true |
tcaseIds | string | Filter by test case. Each value may be a test case ID, a sequence number (e.g. 123) or a legacy ID; a value that matches no test case matches nothing. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | tcaseIds=123&tcaseIds=124 |
templateTCaseIds | string | Filter by parent template test case. Each value may be a test case ID, a sequence number (e.g. 120) or a legacy ID; a value that matches no test case matches nothing. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | templateTCaseIds=1CEPaUhuR_yNsLvcbYJhw46 |
requirementIds | string | Filter by requirement ID. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | requirementIds=1CEPaUhuR_abc123def456 |
preconditionIds | number | Filter by shared precondition ID: test cases that use it. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | preconditionIds=3 |
stepIds | number | Filter by shared step ID: test cases that use it. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | stepIds=7 |
authorIds | number | Filter by the ID of the user who created the test case. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | authorIds=2 |
createdAfter | datetime | Test cases created at or after this time. | No filter | createdAfter=2026-01-01T00:00:00Z |
createdBefore | datetime | Test cases created at or before this time. | No filter | createdBefore=2026-02-01T00:00:00Z |
cf_${custom field system name} | string | Filter by a value defined under Settings > Custom Fields. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | cf_automation=Automated |
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–1,000. | 100 | limit=10 |
sortField | string | Field to sort by: id, seq, folder_id, author_id, pos, title, priority, created_at, updated_at or legacy_id. | pos | sortField=title |
sortOrder | string | Sort direction for sortField: asc or desc. | asc | sortOrder=desc |
include | string | Include additional fields omitted by default. Accepted values: precondition, steps, tags, project, folder, path, requirements, customFields, filterableCustomFields (customFields with only the dropdown fields) or parameterValues. Repeat the parameter for multiple values. | None | include=steps |
- Use pagination when project contains large number of test cases
- Only include necessary non-default fields
- Different filters are combined with AND logic
- Multiple values for the same filter are combined with OR logic
Example Request
Fetch all test cases with default fields
curl \
-H "Authorization: ApiKey your.api.key.here" \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginatedFetch all test cases with "Automation" custom field to be "Automated"
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?cf_automation=Automated"Fetch all test cases with "Known Issue" custom field to be "Yes"
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?cf_known_issue=Yes"Fetch 20 test cases sorted by title in ascending order
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?limit=20&sortField=title&sortOrder=asc"Skip the first 90 test cases and return the next 15 — or, return 15 rows starting from 0-based index 90
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?offset=90&limit=15&sortField=pos&sortOrder=asc"Fetch all draft test cases
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?draft=true"Fetch 10 most recent added test cases
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?limit=10&sortField=created_at&sortOrder=desc"Fetch test cases with "backend" in their title
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?search=backend"Fetch test cases with "backend" in their title and include custom fields
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?search=backend&include=customFields"Fetch all filled test cases corresponding to template test case ID '1CEPaUhuR_yNsLvcbYJhw46'
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?templateTCaseIds=1CEPaUhuR_yNsLvcbYJhw46"Fetch test cases linked to a specific requirement
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?requirementIds=1CEPaUhuR_abc123def456"Fetch test cases linked to multiple requirements (OR logic)
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/paginated?requirementIds=1CEPaUhuR_abc123def456&requirementIds=1CEPaUhuR_xyz789ghi012"Response Fields
{
total: number // Number of matching test cases across all pages
offset: number // Offset applied to this response
limit: number // Limit applied to this response
data: Array<{ // Test cases in this page
id: string // Test case ID
legacyId: string // Legacy ID of the test case, empty if it has none
version: number // Version of the test case; every update except a folder or position change creates a new version
type: string // Type of the test case (`standalone` | `template` | `filled`)
title: string // Title of the test case
seq: number // Sequence number of the test case in the project
folderId: number // ID of the folder containing the test case
pos: number // 0-based position of the test case in its folder
priority: string // Priority of the test case (`high` | `medium` | `low`)
comment: html // Test case precondition text. DEPRECATED, usable but prefer the precondition object (include=precondition)
files: Array<{ // List of files attached to the test case; null or [] when there are none
id: string // File ID
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
stableUrl?: string // Host-relative URL (`/api/file/{id}`) of an uploaded file, absolute for an external one; absent for legacy attachments
url?: string // Absolute URL of the file; absent when `stableUrl` is
}> | null
links: Array<{ // Additional links relevant to the test case; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
authorId: number // ID of the user who created the test case
isDraft: boolean // Whether the test case is still in draft state
isLatestVersion: boolean // Whether this is the latest version of the test case
isEmpty: boolean // Whether the test case has no precondition and no steps
templateTCaseId?: string // Corresponding template test case ID, if it is a filled test case
numFilledTCases?: number // Number of corresponding filled test cases, if it is a template test case
filledTCaseTitleSuffixParams?: string[] // Template test cases: parameters whose values are appended to the titles of its filled test cases
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
// Fields added by `include`, absent otherwise
precondition?: { // Precondition of the test case; only with `include=precondition`
projectId: string // ID of the project the precondition belongs to
id: number // Precondition ID; useful only for a shared precondition
version: number // Version of the precondition
title?: string // Title of the precondition; only for shared preconditions
type: string // Type of the precondition (`standalone` | `shared`)
text: html // Text of the precondition (empty when the test case has none)
isLatest: boolean // Whether this is the latest version of the precondition
createdAt: datetime // Time the precondition was first created; a standalone one is replaced by a new one whenever the test case's precondition is set
updatedAt: datetime // Time this version was created, or the deletion time once a shared precondition is deleted
deletedAt?: datetime // Deletion time, if the (shared) precondition was deleted
}
customFields?: { // Custom field values of the test case; only with `include=customFields`, or `include=filterableCustomFields` for only the dropdown fields
[systemName: string]: { // Keyed by the custom field's system name; enabled fields only
value: string // Current value; for dropdown and checkbox fields, an option's value
isDefault: boolean // Whether the value is the field's default and follows changes to it
}
}
tags?: Array<{ // Tags of the test case; only with `include=tags`
id: number // Tag ID
title: string // Title of the tag
}>
steps?: Array<{ // Steps of the test case; only with `include=steps`
id: number // Step ID
type: string // Type of the step (`standalone` | `shared`)
version: number // Version of the step (always 1 for standalone steps)
isLatest: boolean // Whether this is the latest version of the step (always true for standalone steps)
title?: string // Title of the step (only for shared steps)
subSteps?: Array<{ // List of sub-steps; present on every shared step, absent on standalone steps
id: number // Sub-step ID
type: string // Type of the sub-step (always `shared_sub_step`)
version: number // Version of the sub-step (same as the parent step)
isLatest: boolean // Whether this is the latest version of the sub-step (same as the parent step)
description?: html // Details of the sub-step, absent when empty
expected?: html // Expected result of the sub-step, absent when empty
data?: StepData[] // Sub-step test data items, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the sub-step
}>
description?: html // Details of the step; only for standalone steps, absent when empty
expected?: html // Expected result of the step; only for standalone steps, absent when empty
data?: StepData[] // Step test data items; only for standalone steps, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the step
}>
requirements?: Array<{ // Requirements of the test case; only with `include=requirements`
id: string // Requirement ID
text: string // Title of the requirement
url: string // URL of the requirement, empty if it has none
integrationLink: { // Jira or Linear issue linked to the requirement, null if none
type: string // Integration type (`jira` | `linear`)
integrationId: string // ID of the integration
issueId: string // The issue as sent in `integrationIssueId`: its ID, or a Jira key / Linear identifier
issueTitle: string // Title of the issue
issueUrl: string // URL of the issue
remoteLinkId: string // ID of the link back to the requirement in the tracker; empty once QA Sphere found that link removed in the tracker
} | null
}>
parameterValues?: Array<{ // Filled test cases of a template test case; only with `include=parameterValues`
tcaseId: string // ID of the filled test case
tcaseSeq: number // Sequence number of the filled test case
tcaseVersion: number // Version of the filled test case
values: { // Values of the template's parameters for this filled test case
[key: string]: string
}
}>
folder?: { // Folder containing the test case; only with `include=folder`
id: number // Folder ID
title: string // Title of the folder
comment: html // Additional notes or description
pos: number // 0-based position of the folder among its siblings
parentId: number // ID of the parent folder (0 for root folders)
projectId: string // ID of the project the folder belongs to
}
path?: Array<{ // Folders from the root down to the test case's folder; only with `include=path`
id: number // Folder ID
title: string // Title of the folder
comment: html // Additional notes or description
pos: number // 0-based position of the folder among its siblings
parentId: number // ID of the parent folder (0 for root folders)
projectId: string // ID of the project the folder belongs to
}>
project?: { // Project the test case belongs to; only with `include=project`
id: string // Project ID
code: string // Code of the project
title: string // Title of the project
overviewTitle: string // Title of the project's overview page
overviewDescription: html // Description on the project's overview page
links: Array<{ // Links relevant to the project; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
archivedAt: datetime | null // Archive time, null if not archived
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
}
}>
}Example Response
For a request with offset=1&limit=2&include=precondition:
{
"total": 4,
"offset": 1,
"limit": 2,
"data": [
{
"id": "1CJg36j1c_yFYPRcmZaoqp3",
"version": 6,
"legacyId": "",
"seq": 55,
"type": "standalone",
"folderId": 26,
"pos": 0,
"title": "User should see the content according to the \"About Us\" information",
"priority": "high",
"comment": "<p>The \"About Us\" page is opened</p>",
"precondition": {
"projectId": "2HKj57k3z_YXYQVTdnPqrs8",
"id": 2,
"version": 1,
"type": "standalone",
"text": "<p>The \"About Us\" page is opened</p>",
"isLatest": true,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
},
"authorId": 1,
"files": [
{
"id": "89f7a73e-043c-4fe1-beb3-9e8d8df55f28",
"fileName": "Screencast from 24-03-25 14:27:33.webm",
"mimeType": "video/webm",
"size": 555431
}
],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:14.243475+02:00",
"updatedAt": "2025-03-25T10:48:14.243475+02:00"
},
{
"id": "1CJg36j28_EaAHxNiNQNNTn",
"version": 6,
"legacyId": "",
"seq": 56,
"type": "standalone",
"folderId": 26,
"pos": 1,
"title": "User should place the order successfully after entering valid data in all required fields and selecting the \"Card Payment\" payment",
"priority": "high",
"comment": "<ol><li><p>The \"Checkout\" page is opened</p></li><li><p>There are pizzas, drinks and desserts</p></li></ol>",
"precondition": {
"projectId": "2HKj57k3z_YXYQVTdnPqrs8",
"id": 3,
"version": 1,
"type": "standalone",
"text": "<ol><li><p>The \"Checkout\" page is opened</p></li><li><p>There are pizzas, drinks and desserts</p></li></ol>",
"isLatest": true,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
},
"authorId": 1,
"files": [
{
"id": "bf5fcc05-44a2-46b2-87fb-2501cfedb1f7",
"fileName": "Screenshot 2025-01-15 18:54:44.png",
"mimeType": "image/png",
"size": 89567
}
],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
}
]
}List Test Cases (Deprecated)
Deprecated
This endpoint is deprecated. Use List Test Cases (GET /api/public/v0/project/{project_id}/tcase/paginated) instead.
Retrieves all test cases within a project based on the filters provided in the request query parameters.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Query Parameters
All query parameters are optional and some can be specified multiple times using the format param=value1¶m=value2¶m=value3.
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
types | string | Filter by type: standalone, template or filled. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | types=standalone |
search | string | Filter by title using case-insensitive partial matching. | No filter | search=ui |
folders | number | Filter by folder ID, without its subfolders. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | folders=10&folders=12 |
tags | number | Filter by tag ID. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | tags=12 |
priorities | string | Filter by priority: high, medium or low. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | priorities=low |
draft | boolean | Filter by draft status: true or false. | No filter | draft=true |
tcaseIds | string | Filter by test case. Each value may be a test case ID, a sequence number (e.g. 123) or a legacy ID; a value that matches no test case matches nothing. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | tcaseIds=123&tcaseIds=124 |
templateTCaseIds | string | Filter by parent template test case. Each value may be a test case ID, a sequence number (e.g. 120) or a legacy ID; a value that matches no test case matches nothing. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | templateTCaseIds=1CEPaUhuR_yNsLvcbYJhw46 |
requirementIds | string | Filter by requirement ID. Repeat the parameter for multiple IDs; multiple values use OR logic. | No filter | requirementIds=1CEPaUhuR_abc123def456 |
cf_${custom field system name} | string | Filter by a value defined under Settings > Custom Fields. Repeat the parameter for multiple values; multiple values use OR logic. | No filter | cf_automation=Automated |
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–5,000. | 10 with page, else no limit | limit=10 |
page | number | Deprecated. Page to return, from 1: skips (page - 1) × limit items. Ignored when offset is sent. | None | page=1 |
sortField | string | Field to sort by: id, seq, folder_id, author_id, pos, title, priority, created_at, updated_at or legacy_id. | pos | sortField=title |
sortOrder | string | Sort direction for sortField: asc or desc. | asc | sortOrder=desc |
include | string | Include additional fields omitted by default. Accepted values: precondition, steps, tags, project, folder, path, requirements, customFields, filterableCustomFields (customFields with only the dropdown fields) or parameterValues. Repeat the parameter for multiple values. | None | include=steps |
- Use pagination when project contains large number of test cases
- Only include necessary non-default fields
- Different filters are combined with AND logic
- Multiple values for the same filter are combined with OR logic
Example Request
Fetch all test cases with default fields
curl \
-H "Authorization: ApiKey your.api.key.here" \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcaseFetch all test cases with "Automation" custom field to be "Automated"
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?cf_automation=Automated"Fetch all test cases with "Known Issue" custom field to be "Yes"
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?cf_known_issue=Yes"Fetch 20 test cases sorted by title in ascending order
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?limit=20&sortField=title&sortOrder=asc"Skip the first 90 test cases and return the next 15 — or, return 15 rows starting from 0-based index 90
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?offset=90&limit=15&sortField=pos&sortOrder=asc"Fetch all draft test cases
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?draft=true"Fetch 10 most recent added test cases
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?limit=10&sortField=created_at&sortOrder=desc"Fetch test cases with "backend" in their title
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?search=backend"Fetch test cases with "backend" in their title and include custom fields
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?search=backend&include=customFields"Fetch all filled test cases corresponding to template test case ID '1CEPaUhuR_yNsLvcbYJhw46'
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?templateTCaseIds=1CEPaUhuR_yNsLvcbYJhw46"Fetch test cases linked to a specific requirement
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?requirementIds=1CEPaUhuR_abc123def456"Fetch test cases linked to multiple requirements (OR logic)
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase?requirementIds=1CEPaUhuR_abc123def456&requirementIds=1CEPaUhuR_xyz789ghi012"Response Fields
{
total: number // Number of matching test cases across all pages
offset?: number // Offset applied, when `offset` or `page` was sent
limit?: number // Limit applied, when `limit` or `page` was sent
page?: number // Deprecated: the `page` sent, when sent without `offset`
data: Array<{ // Test cases
id: string // Test case ID
legacyId: string // Legacy ID of the test case, empty if it has none
version: number // Version of the test case; every update except a folder or position change creates a new version
type: string // Type of the test case (`standalone` | `template` | `filled`)
title: string // Title of the test case
seq: number // Sequence number of the test case in the project
folderId: number // ID of the folder containing the test case
pos: number // 0-based position of the test case in its folder
priority: string // Priority of the test case (`high` | `medium` | `low`)
comment: html // Test case precondition text. DEPRECATED, usable but prefer the precondition object (include=precondition)
files: Array<{ // List of files attached to the test case; null or [] when there are none
id: string // File ID
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
url?: string // Absolute URL of the file; absent for legacy attachments
}> | null
links: Array<{ // Additional links relevant to the test case; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
authorId: number // ID of the user who created the test case
isDraft: boolean // Whether the test case is still in draft state
isLatestVersion: boolean // Whether this is the latest version of the test case
isEmpty: boolean // Whether the test case has no precondition and no steps
templateTCaseId?: string // Corresponding template test case ID, if it is a filled test case
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
// Fields added by `include`, absent otherwise
precondition?: { // Precondition of the test case; only with `include=precondition`
projectId: string // ID of the project the precondition belongs to
id: number // Precondition ID; useful only for a shared precondition
version: number // Version of the precondition
title?: string // Title of the precondition; only for shared preconditions
type: string // Type of the precondition (`standalone` | `shared`)
text: html // Text of the precondition (empty when the test case has none)
isLatest: boolean // Whether this is the latest version of the precondition
createdAt: datetime // Time the precondition was first created; a standalone one is replaced by a new one whenever the test case's precondition is set
updatedAt: datetime // Time this version was created, or the deletion time once a shared precondition is deleted
deletedAt?: datetime // Deletion time, if the (shared) precondition was deleted
}
customFields?: { // Custom field values of the test case; only with `include=customFields`, or `include=filterableCustomFields` for only the dropdown fields
[systemName: string]: { // Keyed by the custom field's system name; enabled fields only
value: string // Current value; for dropdown and checkbox fields, an option's value
isDefault: boolean // Whether the value is the field's default and follows changes to it
}
}
tags?: Array<{ // Tags of the test case; only with `include=tags`
id: number // Tag ID
title: string // Title of the tag
}>
steps?: Array<{ // Steps of the test case; only with `include=steps`
id: number // Step ID
type: string // Type of the step (`standalone` | `shared`)
version: number // Version of the step (always 1 for standalone steps)
isLatest: boolean // Whether this is the latest version of the step (always true for standalone steps)
title?: string // Title of the step (only for shared steps)
subSteps?: Array<{ // List of sub-steps; present on every shared step, absent on standalone steps
id: number // Sub-step ID
type: string // Type of the sub-step (always `shared_sub_step`)
version: number // Version of the sub-step (same as the parent step)
isLatest: boolean // Whether this is the latest version of the sub-step (same as the parent step)
description?: html // Details of the sub-step, absent when empty
expected?: html // Expected result of the sub-step, absent when empty
data?: StepData[] // Sub-step test data items, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the sub-step
}>
description?: html // Details of the step; only for standalone steps, absent when empty
expected?: html // Expected result of the step; only for standalone steps, absent when empty
data?: StepData[] // Step test data items; only for standalone steps, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the step
}>
requirements?: Array<{ // Requirements of the test case; only with `include=requirements`
id: string // Requirement ID
text: string // Title of the requirement
url: string // URL of the requirement, empty if it has none
}>
parameterValues?: Array<{ // Filled test cases of a template test case; only with `include=parameterValues`
tcaseId: string // ID of the filled test case
tcaseVersion: number // Version of the filled test case
values: { // Values of the template's parameters for this filled test case
[key: string]: string
}
}>
folder?: { // Folder containing the test case; only with `include=folder`
id: number // Folder ID
title: string // Title of the folder
comment: html // Additional notes or description
pos: number // 0-based position of the folder among its siblings
parentId: number // ID of the parent folder (0 for root folders)
projectId: string // ID of the project the folder belongs to
}
path?: Array<{ // Folders from the root down to the test case's folder; only with `include=path`
id: number // Folder ID
title: string // Title of the folder
comment: html // Additional notes or description
pos: number // 0-based position of the folder among its siblings
parentId: number // ID of the parent folder (0 for root folders)
projectId: string // ID of the project the folder belongs to
}>
project?: { // Project the test case belongs to; only with `include=project`
id: string // Project ID
code: string // Code of the project
title: string // Title of the project
overviewTitle: string // Title of the project's overview page
overviewDescription: html // Description on the project's overview page
links: Array<{ // Links relevant to the project; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
archivedAt: datetime | null // Archive time, null if not archived
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
}
}>
}Example Response
For a request with offset=1&limit=2&include=precondition:
{
"total": 4,
"offset": 1,
"limit": 2,
"data": [
{
"id": "1CJg36j1c_yFYPRcmZaoqp3",
"version": 6,
"legacyId": "",
"seq": 55,
"type": "standalone",
"folderId": 26,
"pos": 0,
"title": "User should see the content according to the \"About Us\" information",
"priority": "high",
"comment": "<p>The \"About Us\" page is opened</p>",
"precondition": {
"projectId": "2HKj57k3z_YXYQVTdnPqrs8",
"id": 2,
"version": 1,
"type": "standalone",
"text": "<p>The \"About Us\" page is opened</p>",
"isLatest": true,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
},
"authorId": 1,
"files": [
{
"id": "89f7a73e-043c-4fe1-beb3-9e8d8df55f28",
"fileName": "Screencast from 24-03-25 14:27:33.webm",
"mimeType": "video/webm",
"size": 555431
}
],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:14.243475+02:00",
"updatedAt": "2025-03-25T10:48:14.243475+02:00"
},
{
"id": "1CJg36j28_EaAHxNiNQNNTn",
"version": 6,
"legacyId": "",
"seq": 56,
"type": "standalone",
"folderId": 26,
"pos": 1,
"title": "User should place the order successfully after entering valid data in all required fields and selecting the \"Card Payment\" payment",
"priority": "high",
"comment": "<ol><li><p>The \"Checkout\" page is opened</p></li><li><p>There are pizzas, drinks and desserts</p></li></ol>",
"precondition": {
"projectId": "2HKj57k3z_YXYQVTdnPqrs8",
"id": 3,
"version": 1,
"type": "standalone",
"text": "<ol><li><p>The \"Checkout\" page is opened</p></li><li><p>There are pizzas, drinks and desserts</p></li></ol>",
"isLatest": true,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
},
"authorId": 1,
"files": [
{
"id": "bf5fcc05-44a2-46b2-87fb-2501cfedb1f7",
"fileName": "Screenshot 2025-01-15 18:54:44.png",
"mimeType": "image/png",
"size": 89567
}
],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
}
]
}Get Test Case
Get details of a single test case using its ID, sequence or legacy ID.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)tcase_or_legacy_id: The test case identifier (can be one of test case UUID, sequence or legacy ID)
Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/1Response Fields
{
id: string // Test case ID
legacyId: string // Legacy ID of the test case, empty if it has none
version: number // Version of the test case; every update except a folder or position change creates a new version
type: string // Type of the test case (`standalone` | `template` | `filled`)
title: string // Title of the test case
seq: number // Sequence number of the test case in the project
folderId: number // ID of the folder containing the test case
pos: number // 0-based position of the test case in its folder
priority: string // Priority of the test case (`high` | `medium` | `low`)
comment: html // Test case precondition text. DEPRECATED, usable but prefer precondition object below
precondition: {
projectId: string // ID of the project the precondition belongs to
id: number // Precondition ID; useful only for a shared precondition
version: number // Version of the precondition
title?: string // Title of the precondition; only for shared preconditions
type: string // Type of the precondition (`standalone` | `shared`)
text: html // Text of the precondition (empty when the test case has none)
isLatest: boolean // Whether this is the latest version of the precondition
createdAt: datetime // Time the precondition was first created; a standalone one is replaced by a new one whenever the test case's precondition is set
updatedAt: datetime // Time this version was created, or the deletion time once a shared precondition is deleted
deletedAt?: datetime // Deletion time, if the (shared) precondition was deleted
}
steps: Array<{ // Steps of the test case
id: number // Step ID
type: string // Type of the step (`standalone` | `shared`)
version: number // Version of the step (always 1 for standalone steps)
isLatest: boolean // Whether this is the latest version of the step (always true for standalone steps)
title?: string // Title of the step (only for shared steps)
subSteps?: Array<{ // List of sub-steps; present on every shared step, absent on standalone steps
id: number // Sub-step ID
type: string // Type of the sub-step (always `shared_sub_step`)
version: number // Version of the sub-step (same as the parent step)
isLatest: boolean // Whether this is the latest version of the sub-step (same as the parent step)
description?: html // Details of the sub-step, absent when empty
expected?: html // Expected result of the sub-step, absent when empty
data?: StepData[] // Sub-step test data items, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the sub-step
}>
description?: html // Details of the step; only for standalone steps, absent when empty
expected?: html // Expected result of the step; only for standalone steps, absent when empty
data?: StepData[] // Step test data items; only for standalone steps, absent when there are none (see Step Test Data)
deletedAt?: datetime // Deletion time of the step
}>
tags: Array<{ // Tags of the test case
id: number // Tag ID
title: string // Title of the tag
}>
files: Array<{ // List of files attached to the test case; null or [] when there are none
id: string // File ID
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
stableUrl?: string // Host-relative URL (`/api/file/{id}`) of an uploaded file, absolute for an external one; absent for legacy attachments
url?: string // Absolute URL of the file; absent when `stableUrl` is
}> | null
requirements: Array<{ // Test case requirement (currently only single requirement is supported on UI)
id: string // Requirement ID
text: string // Title of the requirement
url: string // URL of the requirement, empty if it has none
integrationLink: { // Jira or Linear issue linked to the requirement, null if none
type: string // Integration type (`jira` | `linear`)
integrationId: string // ID of the integration
issueId: string // The issue as sent in `integrationIssueId`: its ID, or a Jira key / Linear identifier
issueTitle: string // Title of the issue
issueUrl: string // URL of the issue
remoteLinkId: string // ID of the link back to the requirement in the tracker; empty once QA Sphere found that link removed in the tracker
} | null
}>
links: Array<{ // Additional links relevant to the test case; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
customFields: { // Custom field values of the test case
[systemName: string]: { // Keyed by the custom field's system name; enabled fields only
value: string // Current value; for dropdown and checkbox fields, an option's value
isDefault: boolean // Whether the value is the field's default and follows changes to it
}
}
parameterValues: Array<{ // Filled test cases of a template test case; [] for other types
tcaseId: string // ID of the filled test case
tcaseSeq: number // Sequence number of the filled test case
tcaseVersion: number // Version of the filled test case
values: { // Values of the template's parameters for this filled test case
[key: string]: string
}
}>
authorId: number // ID of the user who created the test case
isDraft: boolean // Whether the test case is still in draft state
isLatestVersion: boolean // Whether this is the latest version of the test case
isEmpty: boolean // Whether the test case has no precondition and no steps
templateTCaseId?: string // Corresponding template test case ID, if it is a filled test case
numFilledTCases?: number // Number of corresponding filled test cases, if it is a template test case
filledTCaseTitleSuffixParams?: string[] // Template test cases only: parameters whose values are appended to the titles of its filled test cases
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
}Sample Response
{
"id": "1CJg36j1c_yFYPRcmZaoqp3",
"version": 6,
"legacyId": "",
"seq": 55,
"type": "standalone",
"folderId": 26,
"pos": 0,
"title": "User should see the content according to the \"About Us\" information",
"priority": "high",
"comment": "<p>The \"About Us\" page is opened</p>",
"precondition": {
"projectId": "2HKj57k3z_YXYQVTdnPqrs8",
"id": 2,
"version": 1,
"type": "standalone",
"text": "<p>The \"About Us\" page is opened</p>",
"isLatest": true,
"createdAt": "2025-03-25T10:48:14.243475+02:00",
"updatedAt": "2025-03-25T10:48:14.243475+02:00"
},
"authorId": 1,
"files": [
{
"id": "89f7a73e-043c-4fe1-beb3-9e8d8df55f28",
"fileName": "Screencast from 24-03-25 14:27:33.webm",
"mimeType": "video/webm",
"size": 555431
}
],
"links": [],
"requirements": [
{
"text": "AUTO-REQ-2 Automated Tests Requirements",
"url": "https://github.com/Hypersequent/bistro-e2e/docs/automated-testing/requirements#auto-req-2",
"id": "1CJg36j1s_WwGRdtSYt43VZ",
"integrationLink": null
}
],
"tags": [
{ "id": 1, "title": "About Us" },
{ "id": 206, "title": "automation" },
{ "id": 3, "title": "REQ-4" }
],
"steps": [
{
"id": 1,
"type": "standalone",
"version": 1,
"isLatest": true,
"description": "<p>Automated validation of About Us content</p>",
"expected": "<p>Content matches expected About Us information</p>"
},
{
"id": 2,
"type": "shared",
"version": 3,
"isLatest": true,
"title": "About us validations",
"subSteps": [
{
"id": 3,
"type": "shared_sub_step",
"version": 3,
"isLatest": true,
"description": "<p>Verify company name and logo are displayed correctly</p>",
"expected": "<p>Company name and logo match branding guidelines</p>"
},
{
"id": 4,
"type": "shared_sub_step",
"version": 3,
"isLatest": true,
"description": "<p>Check mission statement content</p>",
"expected": "<p>Mission statement matches approved text</p>"
},
{
"id": 5,
"type": "shared_sub_step",
"version": 3,
"isLatest": true,
"description": "<p>Validate team member information</p>",
"expected": "<p>Team member profiles are accurate and complete</p>"
}
]
}
],
"customFields": {
"automation": {
"value": "Automated",
"isDefault": false
},
"known_issue": {
"value": "No",
"isDefault": true
}
},
"parameterValues": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:14.243475+02:00",
"updatedAt": "2025-03-25T10:48:14.243475+02:00"
}Get Test Case Version
Returns an earlier version of a test case, in the same shape as Get Test Case. Every update of a published test case, except a folder or position change, creates a new version; a draft keeps version 1 until it is published.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)tcase_or_legacy_id: The test case identifier (can be one of test case UUID, sequence or legacy ID)version: The version number
Get Test Cases by Marker or Legacy ID
/paginated endpoints are transitional. In API v1, the base paths will return paginated responses and the /paginated suffix will be removed.
Retrieves test cases by their markers (e.g. BD-123) or legacy IDs. This is a read sent as POST because the list of values can be too long for a URL: any project member, including Viewer and Test Runner roles, can call it, and it works on archived projects.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Request Body
{
seqIds: string[] // Test case markers (e.g. `BD-123`) or legacy IDs, at least one
offset?: number // Number of items to skip (default 0)
limit?: number // Maximum number of items to return, 0–1,000 (default 100)
sortField?: string // `id` | `seq` | `title` | `created_at` | `updated_at` | `legacy_id` (default `seq`)
sortOrder?: string // `asc` | `desc` (default `asc`)
}Matching
- If any value matches a legacy ID, only the legacy ID matches are returned.
- Otherwise, each value of the form
<code>-<number>matches the test case with that sequence number. The project code prefix is not checked, so in projectBDbothBD-123andXY-123match sequence number 123. - A plain number such as
123is matched against legacy IDs only. - Values that match no test case are ignored. Deleted test cases are not returned.
Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"seqIds": ["BD-55", "BD-56"],
"limit": 50
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/seq/paginatedResponse Fields
{
total: number // Number of matching test cases across all pages
offset: number // Offset applied to this response
limit: number // Limit applied to this response
data: Array<{ // Test cases in this page
id: string // Test case ID
legacyId: string // Legacy ID of the test case, empty if it has none
version: number // Version of the test case
type: string // Type of the test case (`standalone` | `template` | `filled`)
title: string // Title of the test case; for a filled test case, without the parameter suffix
seq: number // Sequence number of the test case in the project
folderId: number // ID of the folder containing the test case
pos: number // 0-based position of the test case in its folder
priority: string // Priority of the test case (`high` | `medium` | `low`)
files: Array<{ // List of files attached to the test case; null or [] when there are none
id: string // File ID
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
stableUrl?: string // Host-relative URL (`/api/file/{id}`) of an uploaded file, absolute for an external one; absent for legacy attachments
url?: string // Absolute URL of the file; absent when `stableUrl` is
}> | null
links: Array<{ // Additional links relevant to the test case; null or [] when there are none
text: string // Title of the link
url: string // URL of the link
}> | null
authorId: number // ID of the user who created the test case
isDraft: boolean // Whether the test case is still in draft state
isLatestVersion: boolean // Whether this is the latest version of the test case
isEmpty: boolean // Whether the test case has no precondition and no steps
templateTCaseId?: string // Corresponding template test case ID, if it is a filled test case
numFilledTCases?: number // Number of corresponding filled test cases, if it is a template test case
filledTCaseTitleSuffixParams?: string[] // Template test cases: parameters whose values are appended to the titles of its filled test cases. Filled test cases: those parameters' names and values, alternating
createdAt: datetime // Creation time
updatedAt: datetime // Last update time
}>
}Example Response
{
"total": 2,
"offset": 0,
"limit": 50,
"data": [
{
"id": "1CJg36j1c_yFYPRcmZaoqp3",
"version": 6,
"legacyId": "",
"seq": 55,
"type": "standalone",
"folderId": 26,
"pos": 0,
"title": "User should see the content according to the \"About Us\" information",
"priority": "high",
"authorId": 1,
"files": [],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:14.243475+02:00",
"updatedAt": "2025-03-25T10:48:14.243475+02:00"
},
{
"id": "1CJg36j28_EaAHxNiNQNNTn",
"version": 6,
"legacyId": "",
"seq": 56,
"type": "standalone",
"folderId": 26,
"pos": 1,
"title": "User should place the order successfully after entering valid data in all required fields and selecting the \"Card Payment\" payment",
"priority": "high",
"authorId": 1,
"files": [],
"links": [],
"isDraft": false,
"isLatestVersion": true,
"isEmpty": false,
"createdAt": "2025-03-25T10:48:34.66935+02:00",
"updatedAt": "2025-03-25T10:48:34.66935+02:00"
}
]
}List Test Case Edit History
/paginated endpoints are transitional. In API v1, the base paths will return paginated responses and the /paginated suffix will be removed.
Retrieves the edit history of a single test case — who changed what and when. This is the same data shown in the "Edit History" panel in the web interface. Entries are returned newest first, and history is available even for deleted test cases.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)tcase_or_legacy_id: The test case identifier (can be one of test case UUID, sequence or legacy ID)
Query Parameters
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–1,000. | 100 | limit=20 |
sortField | string | Field to sort by: id, action_type, author_id, tcase_version or created_at. | tcase_version | sortField=created_at |
sortOrder | string | Sort direction for sortField: asc or desc. | desc | sortOrder=asc |
Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/55/history/paginated?offset=0&limit=100"Response Fields
{
total: number // Number of matching edit history entries across all pages
offset: number // Offset applied to this response
limit: number // Limit applied to this response
data: Array<{ // Edit history entries in this page
id: number // Edit history entry ID
actionType: string // What changed (`create` | `change_type` | `delete` | `restore` | `title` | `priority` | `precondition` | `tags` | `steps` | `publish` | `others` | `version_rollback`)
tcaseId: string // ID of the test case
authorId: number // ID of the user who made the change
author: { // The user who made the change
id: number // User ID
name: string // Name of the user
email: string // Email address of the user
avatar: string | null // Absolute URL of the avatar, null if none; fetching it requires authentication
role: string // Workspace role (`owner` | `admin` | `user` | `test-runner` | `viewer`)
}
oldValue: string | null // Value before the change. Set for `title`, `priority` and `change_type` changes, and holds the version number for `version_rollback`; null otherwise
newValue: string | null // Value after the change. Set for the same action types as oldValue; null otherwise
tcaseVersion: number // Version of the test case this change produced
createdAt: datetime // Time of the change
}>
}Sample Response
{
"total": 2,
"offset": 0,
"limit": 100,
"data": [
{
"id": 2,
"actionType": "title",
"tcaseId": "1CJg36j1c_yFYPRcmZaoqp3",
"authorId": 1,
"author": {
"id": 1,
"email": "jane@example.com",
"name": "Jane Doe",
"avatar": null,
"role": "admin"
},
"newValue": "User can log in with valid credentials",
"oldValue": "User can log in",
"tcaseVersion": 2,
"createdAt": "2026-08-05T10:48:34.66935+02:00"
},
{
"id": 1,
"actionType": "create",
"tcaseId": "1CJg36j1c_yFYPRcmZaoqp3",
"authorId": 1,
"author": {
"id": 1,
"email": "jane@example.com",
"name": "Jane Doe",
"avatar": null,
"role": "admin"
},
"newValue": null,
"oldValue": null,
"tcaseVersion": 1,
"createdAt": "2026-08-05T10:12:14.243475+02:00"
}
]
}List Test Case Edit History (Deprecated)
Deprecated
This endpoint is deprecated. Use List Test Case Edit History (GET /api/public/v0/project/{project_id}/tcase/{tcase_or_legacy_id}/history/paginated) instead.
Retrieves the edit history of a single test case — who changed what and when. This is the same data shown in the "Edit History" panel in the web interface. Entries are returned newest first, and history is available even for deleted test cases.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)tcase_or_legacy_id: The test case identifier (can be one of test case UUID, sequence or legacy ID)
Query Parameters
All query parameters are optional.
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–5,000. | 10 with page, else no limit | limit=10 |
page | number | Deprecated. Page to return, from 1: skips (page - 1) × limit items. Ignored when offset is sent. | None | page=1 |
Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/55/historyResponse Fields
{
total: number // Number of matching edit history entries across all pages
offset?: number // Offset applied, when `offset` or `page` was sent
limit?: number // Limit applied, when `limit` or `page` was sent
page?: number // Deprecated: the `page` sent, when sent without `offset`
data: Array<{ // Edit history entries, newest first
id: number // Edit history entry ID
actionType: string // What changed (`create` | `change_type` | `delete` | `restore` | `title` | `priority` | `precondition` | `tags` | `steps` | `publish` | `others` | `version_rollback`)
tcaseId: string // ID of the test case
authorId: number // ID of the user who made the change
author: { // The user who made the change
id: number // User ID
name: string // Name of the user
email: string // Email address of the user
avatar: string | null // Absolute URL of the avatar, null if none; fetching it requires authentication
role: string // Workspace role (`owner` | `admin` | `user` | `test-runner` | `viewer`)
}
oldValue: string | null // Value before the change. Set for `title`, `priority` and `change_type` changes, and holds the version number for `version_rollback`; null otherwise
newValue: string | null // Value after the change. Set for the same action types as oldValue; null otherwise
tcaseVersion: number // Version of the test case this change produced
createdAt: datetime // Time of the change
}>
}Sample Response
{
"total": 2,
"data": [
{
"id": 2,
"actionType": "title",
"tcaseId": "1CJg36j1c_yFYPRcmZaoqp3",
"authorId": 1,
"author": {
"id": 1,
"email": "jane@example.com",
"name": "Jane Doe",
"avatar": null,
"role": "admin"
},
"newValue": "User can log in with valid credentials",
"oldValue": "User can log in",
"tcaseVersion": 2,
"createdAt": "2026-08-05T10:48:34.66935+02:00"
},
{
"id": 1,
"actionType": "create",
"tcaseId": "1CJg36j1c_yFYPRcmZaoqp3",
"authorId": 1,
"author": {
"id": 1,
"email": "jane@example.com",
"name": "Jane Doe",
"avatar": null,
"role": "admin"
},
"newValue": null,
"oldValue": null,
"tcaseVersion": 1,
"createdAt": "2026-08-05T10:12:14.243475+02:00"
}
]
}Get Test Case Count
Returns the total number of test cases that match the specified filters. If no filters are provided, returns the total count of all test cases in the project.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Query Parameters
Takes the filters of List Test Cases: types, search, folders with recursive, tags with tagsFilterOp, priorities, draft, tcaseIds, templateTCaseIds, requirementIds, preconditionIds, stepIds, authorIds, createdAfter, createdBefore and cf_${custom field system name}. Different filters combine with AND logic, and multiple values of one filter with OR logic.
Example Requests
Basic Count
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count"Filter Examples
- Folder-based counting:
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count?folders=1&recursive=true"- Priority-based counting:
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count?priorities=high"- Tag-based counting:
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count?tags=1&tags=2"- Draft status counting:
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count?draft=true"- Custom field counting:
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/count?cf_automation=Automated"Response Format
{
count: number // Total number of test cases matching the filters
}Example Response
{
"count": 4
}Use Cases
- Monitor test coverage by counting test cases across different folders
- Track high-priority test case volume
- Review draft test case count before publishing
- Plan test runs based on tagged test cases
Filter Behavior
- If no filters are specified, all test cases in the project are counted
- Different filters are combined with AND logic
- Multiple values for the same filter are combined with OR logic
- The
recursiveparameter only applies whenfoldersis specified
Get Test Case Daily Stats
Returns the number of test cases in the project at the end of each day, and the change that day. Filled test cases belong to their template, so only standalone and template test cases are counted.
Query Parameters
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
startDate | string | First day to return, as YYYY-MM-DD (UTC). | No filter | startDate=2026-10-01 |
endDate | string | Last day to return, as YYYY-MM-DD (UTC). | No filter | endDate=2026-10-31 |
Response
Status: 200 OK
{
data: Array<{ // Days in the range, oldest first; a day without a change may be missing
date: string // UTC day, as `YYYY-MM-DD`
count: number // Number of test cases at the end of the day
countDelta: number // Change in the number of test cases that day
}>
}Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
"https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/daily-stats?startDate=2026-10-01&endDate=2026-10-03"Example Response
{
"data": [
{ "date": "2026-10-01", "count": 120, "countDelta": 0 },
{ "date": "2026-10-02", "count": 124, "countDelta": 4 },
{ "date": "2026-10-03", "count": 123, "countDelta": -1 }
]
}Errors
| Status Code | Description |
|---|---|
| 400 | startDate is after endDate |
Create Test Case
Creates a new test case in the specified project. You can create both standalone and template test cases using this endpoint.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Request Body
{
title: string // Title of the test case (1–511 characters)
type: string // Type of the test case (`standalone` | `template`)
folderId: number // ID of the folder where the test case will be placed
priority: string // Priority of the test case (`high` | `medium` | `low`)
pos?: number // 0-based position of the test case in its folder
comment?: html // Test case precondition. DEPRECATED, if precondition object is empty, comment is used to populated precondition.text
precondition?: // Test case precondition
| { sharedPreconditionId: number } // Use a shared precondition by specifying its unique id
| { text: html } // Or, use a standalone precondition with text
steps?: Array<{ // Steps of the test case
// For shared steps
sharedStepId?: number // Unique identifier of the shared step
// For standalone steps
description?: html // Details of the step
expected?: html // Expected result of the step
data?: StepData[] // Step test data items (max 20; see Step Test Data)
}>
tags?: string[] // List of tag titles (max 255 characters each)
requirements?: Array<{ // Test case requirement
text: string // Title of the requirement (1–255 characters)
url?: string // URL of the requirement (http or https, max 255 characters)
}>
files?: Array<{ // Files attached to the test case
id: string // File ID, as returned by the upload endpoints
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
stableUrl?: string // `stableUrl` returned by the upload endpoints (preferred)
url?: string // `url` returned by the upload endpoints; used when `stableUrl` is left out
}>
links?: Array<{ // Additional links relevant to the test case
text: string // Title of the link (1–255 characters)
url: string // URL of the link (http or https, max 255 characters)
}>
customFields?: { // Custom field values.
[key: string]: { // Custom field system names should be specified as keys. Only custom fields applied and enabled for a project should be specified
isDefault?: boolean // Set the field's default value; the field must have one (default false)
value?: string // Value to set; with `isDefault`, leave it out or pass the default value
}
}
parameterValues?: Array<{ // Values to substitute for parameters in the filled test cases (only relevant for template types)
values: { // Values for the parameters in the template test case to be substituted for this filled test case
[key: string]: string
}
}>
filledTCaseTitleSuffixParams?: string[] // Parameters to append to filled test case titles
isDraft?: boolean // Whether to create as draft, default false
}- Required fields:
type,folderId,title,priority - Test case types: Only
standaloneandtemplatecan be created directly.filledtest cases are automatically generated from template test cases. - Steps: You can use either shared steps (by
sharedStepId) or standalone steps (withdescription,expected, and/ordata). - Step test data: Standalone steps can include up to 20
dataitems (see Step Test Data). A step that references a shared step bysharedStepIdmust not includedata. - Custom fields: Must be created through the web UI before you can set their values via API.
- Template test cases: Use
parameterValuesto define parameter substitutions that will generate filled test cases. - Parameter names: The keys of
parameterValues[].valuesand the entries offilledTCaseTitleSuffixParamsmust start with a letter, contain only letters, digits, hyphens and underscores, end with a letter or digit, and be at most 255 characters. Placeholders inside the title, precondition and steps are not restricted this way - a${...}placeholder whose name breaks these rules is kept as literal text. - Position: If
posis not specified, the test case will be added at the end of the folder. - Files: Use the upload file endpoint first. Public upload responses include
id,stableUrlandurl; when attaching files to a test case, also provide the matchingfileName,mimeTypeandsize.
Example Requests
Create a Simple Standalone Test Case
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"type": "standalone",
"folderId": 26,
"title": "User should be able to login with valid credentials",
"priority": "high",
"precondition": {
"text": "<p>User has valid account credentials</p>"
},
"isDraft": false,
"steps": [
{
"description": "<p>Navigate to login page</p>",
"expected": "<p>Login form is displayed</p>"
},
{
"description": "<p>Enter valid username and password</p>",
"expected": "<p>Credentials are accepted</p>",
"data": [
{
"type": "text",
"label": "Credentials",
"data": { "value": "user@example.com / s3cret", "format": "plaintext" }
},
{
"type": "link",
"label": "Test accounts",
"data": { "value": "https://example.com/wiki/test-accounts" }
}
]
},
{
"description": "<p>Click login button</p>",
"expected": "<p>User is redirected to dashboard</p>"
}
],
"tags": ["authentication", "login"],
"requirements": [
{
"text": "REQ-001: User Authentication",
"url": "https://docs.example.com/requirements/auth"
}
]
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcaseCreate a Template Test Case with Parameters
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"type": "template",
"folderId": 26,
"title": "User should be able to login with ${browser} browser on ${device}",
"priority": "medium",
"precondition": {
"text": "<p>Testing login functionality across different browsers and devices</p>"
},
"isDraft": false,
"steps": [
{
"description": "<p>Open ${browser} browser on ${device}</p>",
"expected": "<p>Browser opens successfully</p>"
},
{
"description": "<p>Navigate to login page</p>",
"expected": "<p>Login form is displayed correctly</p>"
},
{
"description": "<p>Enter valid credentials and submit</p>",
"expected": "<p>Login is successful on ${device}</p>"
}
],
"tags": ["authentication", "cross-browser", "responsive"],
"parameterValues": [
{
"values": {
"browser": "Chrome",
"device": "Desktop"
}
},
{
"values": {
"browser": "Firefox",
"device": "Desktop"
}
},
{
"values": {
"browser": "Safari",
"device": "Mobile"
}
}
],
"filledTCaseTitleSuffixParams": ["browser", "device"]
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcaseCreate Test Case with Custom Fields
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"type": "standalone",
"folderId": 26,
"title": "API endpoint validation test",
"priority": "high",
"precondition": {
"text": "<p>Test API endpoint response and data validation</p>"
},
"isDraft": false,
"steps": [
{
"description": "<p>Send GET request to /api/users endpoint</p>",
"expected": "<p>Response status is 200</p>"
},
{
"description": "<p>Validate response JSON structure</p>",
"expected": "<p>All required fields are present</p>"
}
],
"customFields": {
"automation": {
"value": "Automated"
},
"test_type": {
"value": "API"
}
},
"tags": ["api", "validation"]
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcaseCreate Draft Test Case
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"type": "standalone",
"folderId": 26,
"title": "Work in progress test case",
"priority": "low",
"precondition": {
"text": "<p>This test case is still being developed</p>"
},
"isDraft": true,
"steps": [
{
"description": "<p>Step 1 - to be defined</p>",
"expected": "<p>Expected result - to be defined</p>"
}
]
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcaseResponse Fields
{
id: string // ID of the created test case
seq: number // Sequence number of the test case in the project
}Example Response
Status: 201 Created
{
"id": "1CJg36j1c_yFYPRcmZaoqp3",
"seq": 57
}Error Responses
| Status Code | Description |
|---|---|
| 400 | A pos out of range or between a template and its filled test cases; duplicate requirements |
Template Test Cases
- Template test cases use
${parameter}syntax in titles, comments, and steps - Parameter values are substituted when creating filled test cases
- Multiple parameter value sets create multiple filled test cases
- Filled test cases inherit all properties from their template parent
- Updates to template test cases automatically update corresponding filled test cases
Create Test Cases in Bulk
Creates multiple test cases with a title and tags in one folder. Only users with role User or higher are allowed to create test cases.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)
Request Body
{
folderPath: string[] // Folder names from the project root to the target folder, e.g. ["Checkout", "Payments"]
tcases: Array<{ // Test cases to create (1 to 1,000)
title: string // Title of the test case (max 511 characters)
tags?: string[] // List of tag titles (max 255 characters each)
}>
}- Folders in
folderPaththat do not exist yet are created; existing folders with the same names are reused. - Test cases are created as published
standalonetest cases withmediumpriority and default custom field values, appended to the end of the folder. - A title that already exists in the folder, including one created earlier in the same request, gets a numeric suffix, e.g.
Login works (1).
Example Request
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"folderPath": ["Checkout", "Payments"],
"tcases": [
{ "title": "User can pay with a saved card", "tags": ["payments", "smoke"] },
{ "title": "Declined card shows an error message", "tags": ["payments"] }
]
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/batchResponse Fields
{
tcases: Array<{ // Created test cases, in the same order as the request
id: string // ID of the created test case
seq: number // Sequence number of the test case in the project
}>
}Example Response
Status: 201 Created
{
"tcases": [
{ "id": "1CJg36j1c_yFYPRcmZaoqp3", "seq": 57 },
{ "id": "1CJg36j28_EaAHxNiNQNNTn", "seq": 58 }
]
}Error Responses
| Status Code | Description |
|---|---|
| 400 | More than 1,000 test cases |
Update Test Case
Updates a test case using its ID, sequence or legacy ID. Only users with role User or higher are allowed to update test cases.
Path Parameters
project_id: The project identifier (can be either the project code or UUID)tcase_or_legacy_id: The test case identifier (can be one of test case UUID, sequence or legacy ID)
Request Body
{
title?: string // Title of the test case (1–511 characters)
priority?: string // Priority of the test case (`high` | `medium` | `low`)
comment?: html // Test case precondition. DEPRECATED, if precondition object is not present but comment is, value of comment will be used to populated precondition.text
precondition?: // Test case precondition
| { sharedPreconditionId: number } // Use a shared precondition by specifying its unique id
| { text: html } // Or, use a standalone precondition with text
isDraft?: boolean // To publish a draft test case. A published test case cannot be converted to draft
steps?: Array<{ // Steps of the test case
// For shared steps
sharedStepId?: number // Unique identifier of the shared step
// For standalone steps
description?: html // Details of the step
expected?: html // Expected result of the step
data?: StepData[] // Step test data items (max 20; see Step Test Data)
}>
tags?: string[] // List of test case tags (title, max 255 characters each)
requirements?: Array<{ // Test case requirement
text: string // Title of the requirement (1–255 characters)
url?: string // URL of the requirement (http or https, max 255 characters)
}>
files?: Array<{ // Files attached to the test case
id: string // File ID, as returned by the upload endpoints
fileName: string // Name of the file
mimeType: string // MIME type of the file
size: number // Size of the file in bytes
stableUrl?: string // `stableUrl` returned by the upload endpoints (preferred)
url?: string // `url` returned by the upload endpoints; used when `stableUrl` is left out
}>
links?: Array<{ // Additional links relevant to the test case
text: string // Title of the link (1–255 characters)
url: string // URL of the link (http or https, max 255 characters)
}>
customFields?: { // Custom field values to update. Only specified custom fields are updated, others are left as is
[key: string]: { // Custom field system names should be specified as keys. Only custom fields applied and enabled for a project should be specified
isDefault?: boolean // Set the field's default value; the field must have one (default false)
value?: string // Value to set; with `isDefault`, leave it out or pass the default value
}
}
parameterValues?: Array<{ // Values to substitute for parameters in the filled test cases (only relevant for template types)
tcaseId?: string // ID, sequence number or legacy ID of an existing filled test case to update. Omit it to create a new filled test case. If an existing filled test case is absent in the update request, it is deleted
values: { // Values for the parameters in the template test case to be substituted for this filled test case
[key: string]: string
}
}>
filledTCaseTitleSuffixParams?: string[] // Parameters to append to filled test case titles
}- All top-level fields are optional. Include only the top-level fields that need to be updated in the request.
- For
customFields, only the specifiedkeyvalues are updated; others remain unchanged. - Steps can be either
sharedorstandalone. To use a shared step, specifysharedStepId. For standalone steps, specifydescription,expected, and/ordata. - Standalone steps can include up to 20
dataitems (see Step Test Data). If you updatesteps, send the complete step list including each step'sdata— sending a step with an empty or omitteddatalist removes all its test data, and a step whose only content wasdatais dropped from the test case entirely. A step that references a shared step bysharedStepIdmust not includedata. - Filled test case type cannot be updated.
- If you update
files, send the complete list of files you want stored on the test case. - The keys of
parameterValues[].valuesand the entries offilledTCaseTitleSuffixParamsmust follow the parameter name rules described under the create endpoint.
Removing filled test cases
parameterValues replaces the whole list. A filled test case whose tcaseId is missing from it is deleted, and an empty list deletes all of them. These deletions don't go to the trash:
- For a draft template, the filled test cases are deleted permanently.
- For a published template, they are removed from open runs. Rolling back the template to a version that had them re-creates them as new test cases, with new IDs and sequence numbers.
Example Request
Switch to a Shared Precondition, Updating Test Case Title, Priority And Custom Field Value
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"title": "Changing to corresponding cursor after hovering the element",
"precondition": {
"sharedPreconditionId": 42
},
"priority": "high",
"customFields": {
"automation": {
"isDefault": false,
"value": "Automated"
}
}
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/1Updating Multiple Custom Fields Values
curl \
-H "Authorization: ApiKey your.api.key.here" \
-H "Content-Type: application/json" \
-d '{
"customFields": {
"automation": {
"isDefault": false,
"value": "Cannot be Automated"
},
"known_issue": {
"isDefault": true
}
}
}' \
https://your-company.your-region-code.qasphere.com/api/public/v0/project/BD/tcase/56- Custom fields must be created through the web UI before you can set their values via API. Shared steps can be created in the web UI or with Create Shared Step
- Use the system name (lowercase with underscores) of the custom field, not its display name
- For dropdown and checkbox fields, the value must match one of the field's options
- When updating custom fields, only the fields you specify will be modified
- To remove a custom field value, you need to set it to an empty string (if allowed by the field configuration)
Response Fields
{
message: string // "Test case updated"
}Example Response
Status: 200 OK
{
"message": "Test case updated"
}Error Responses
| Status Code | Description |
|---|---|
| 400 | Converting a published test case to draft |
Update Test Case Priority
Sets the priority of several test cases at once. Each changed test case gets a new version.
Request Body
{
tcaseIds: string[] // Test cases: IDs, sequence numbers or legacy IDs (1 to 1,000)
priority: string // New priority (`high` | `medium` | `low`)
}Response
Status: 200 OK
{
tcases: Array<{ id: string; seq: number }> // The updated test cases
}A filled test case takes its template's priority, so change the template instead. Open live runs that filter by priority gain or lose the test cases' open run test cases; test cases that already have results in them stay.
Update Test Case Tags
Adds tags to and removes tags from several test cases at once, keeping their other tags. Each changed test case gets a new version.
Request Body
{
tcaseIds: string[] // Test cases: IDs, sequence numbers or legacy IDs (1 to 1,000)
add?: string[] // Tag titles to add (max 255 characters each); missing tags are created
remove?: string[] // Tag titles to remove; a title also in add is kept
}Response
Status: 200 OK
{
tcases: Array<{ id: string; seq: number }> // The updated test cases
}Filled test cases can't be updated; they take their template's tags. Open live runs that filter by tag gain or lose the test cases' open run test cases; test cases that already have results in them stay.
Update Test Case Requirements
Links requirements to and unlinks them from several test cases at once, keeping their other requirements. Each changed test case gets a new version.
Request Body
{
tcaseIds: string[] // Test cases: IDs, sequence numbers or legacy IDs (1 to 1,000)
add?: Array<{ text: string, url?: string }> // Requirements to link; missing ones are created
remove?: Array<{ text: string, url?: string }> // Requirements to unlink, matched by text and URL; one also in add is kept
}Response
Status: 200 OK
{
tcases: Array<{ id: string; seq: number }> // The updated test cases
}Filled test cases can't be updated; they take their template's requirements.
Move Test Cases
Moves test cases to a folder, or reorders them within their current folder. A test case's folder and position aren't versioned: a move doesn't create a new version and applies to all versions of the test case, so Roll Back Test Case can't restore an earlier location.
Request Body
{
newParentId: number // Folder to move the test cases into
items: Array<{ // 1 to 1,000 items
id: string // Test case ID, sequence number or legacy ID
pos: number // Final position in the folder
}>
}How positions work
Positions work as for moving folders: pos is the 0-based position each test case ends up at in the folder after the move, all items are applied together, and a negative pos counts from the end (-1 is last).
Templates take their filled test cases with them:
- A filled test case can't be moved on its own.
- The filled test cases of a moved template take the positions right after it (
pos + 1,pos + 2, ...), so leave room for them: the positions of the other items must not collide with them. - A template with a negative
posneeds room after it for its filled test cases, so with two filled test cases it can be at most-3. - No test case can end up between a template and its filled test cases.
Response
Status: 200 OK
{
tcases: Array<{ id: string; seq: number }> // The moved test cases
}Live runs
Moving test cases to another folder re-evaluates every open live run: they join runs whose folder filter now matches them and leave runs whose folder filter no longer does, including runs where they already have results. Reordering within a folder changes no run.
Errors
| Status Code | Description |
|---|---|
| 400 | Invalid or duplicate positions, a filled test case or a test case between a template and its filled test cases |
Roll Back Test Case
Restores the content of an earlier version as a new version: title, priority, precondition, steps, tags, requirements, links, files, custom fields and parameter values. The folder and position aren't versioned and stay as they are. The request has no body. Only users with role User or higher can roll back test cases.
Response
Status: 200 OK
The rolled-back test case, as Get Test Case returns it.
Rolling back across a type change
If the version has the other type, the test case's type changes too:
- Template to standalone deletes all filled test cases of the template, without a trash entry; for a draft template they are deleted permanently. The test case then joins the open live runs it matches.
- Standalone to template removes the test case from all open runs, as templates are never part of a run.
Behavior
- Shared steps that still exist are linked again; deleted ones come back as standalone steps.
- A custom field the version has no value for gets its default.
- Open runs get the new version, like after any update.
Errors
| Status Code | Description |
|---|---|
| 400 | The test case is a filled test case or the version is already the latest |
Delete Test Case
Deletes a test case. It goes to the trash, where it can be restored within 60 days.
- Deleting a template also deletes its filled test cases. A filled test case can't be deleted on its own.
- Deleted test cases are removed from open runs. Restoring them adds them back, as open, only to the open live runs they match.
Response
Status: 200 OK
The trash entry of the deletion. Its id restores it.
Delete Test Cases
Deletes several test cases as one trash entry. Behaves like Delete Test Case.
Request Body
{
tcaseIds: string[] // Test cases: IDs, sequence numbers or legacy IDs (1 to 1,000)
}Response
Status: 200 OK
The trash entry of the deletion.
Copy Test Cases
Copies test cases into a folder of the project in the path. They can come from another project.
Set move to move test cases from another project instead: they are copied and then deleted from the source project. To move test cases within a project, use Move Test Cases.
Moving between projects
The moved test cases go to the source project's trash as one entry, and are removed from its open runs, as with Delete Test Cases. Their results and history stay with the originals. Restoring the entry brings the originals back without removing the copies.
Request Body
{
tcaseIds: string[] // Test cases to copy: IDs, sequence numbers or legacy IDs in the source project (1 to 1,000)
targetFolderId: number // Folder to copy into
sourceProjectId?: string // Code or ID of the project the test cases are in; defaults to the project in the path
move?: boolean // Delete the test cases from the source project after copying; it must differ from the project in the path
}Response
Status: 201 Created
{
tcases: Array<{ id: string; seq: number }> // The new test cases
}Behavior
- Copies get new IDs and sequence numbers and start a fresh version history. A copy whose title is already taken in the target folder gets a numbered suffix, like
Login (1). - A template is copied with its filled test cases. A filled test case copied on its own becomes a standalone test case.
- You need access to the source project.
- With
move, the copy and the delete succeed or fail together. A filled test case moves with its template, and can't be moved without it. - With
move, test cases keep their authors and their creation and update times. Without it, copies are authored by the caller.
Errors
| Status Code | Description |
|---|---|
| 400 | With move, the source is the same project or a filled test case is listed without its template |
| 403 | With move, the source project is archived |
List Test Case Results
Returns the results of a test case across all runs, most recent first. Deleted test cases keep their results.
Query Parameters
| Parameter | Type | Description | Default | Example |
|---|---|---|---|---|
createdAfter | datetime | Only results created at or after this time. | No filter | createdAfter=2026-01-01T00:00:00Z |
excludeStatus | string | Leave out results with this status. Accepted values: passed, failed, blocked, skipped, open, custom1, custom2, custom3 or custom4. Repeat the parameter for multiple values. | No filter | excludeStatus=open |
internal | boolean | false leaves out system results, such as the reset to open after an edit; true returns only them. | No filter | internal=false |
offset | number | Number of items to skip. | 0 | offset=10 |
limit | number | Maximum number of items to return. Accepted range: 0–1,000. | 100 | limit=10 |
sortField | string | Field to sort by: created_at only. | created_at | sortField=created_at |
sortOrder | string | Sort direction for sortField: asc or desc. | desc | sortOrder=asc |
include | string | Include related data that is left out or null by default. Accepted values: run, links or author. Repeat the parameter for multiple values. | None | include=run |
Response
Status: 200 OK
{
total: number // Number of matching results across all pages
offset: number // Offset applied to this response
limit: number // Limit applied to this response
data: Array<{
id: number // Result ID
authorId: number // ID of the user who added the result
author: { // The user who added the result; null unless `include=author`
id: number
email: string
name: string
avatar: string | null // Absolute URL of the avatar, null if none; fetching it requires authentication
role: string // Workspace role (`owner` | `admin` | `user` | `test-runner` | `viewer`)
} | null
status: string // Result status (`passed` | `failed` | `blocked` | `skipped` | `open` | `custom1` | `custom2` | `custom3` | `custom4`)
comment: html // Comments/observations while executing the test case
tcaseId: string // ID of the test case the result belongs to
tcaseVersion: number // Test case version the result was recorded against
links: Array<{ // Issues linked to the result; null unless `include=links`, or when the result has none
id: number // Link ID, to remove it with `deleteLinkIds` in Update Result
resultId: number // ID of the result
integrationId: string | null // ID of the integration, null if it was deleted
integration: { // The integration, null if it was deleted
id: string
name: string
type: string // Integration type (`jira` | `github` | `linear` | `custom`)
config: object // Tracker details, by type (see below)
} | null
url: string // URL of the issue
text: string // Title of the issue
meta: { id: string } | null // The issue's ID in the tracker (Jira and Linear links added by key or identifier hold the ID; older links may still hold the key or identifier); null when the link was added without meta
}> | null
timeTaken: number | null // Time taken for executing the test case, in milliseconds
isAutomated: boolean // Whether an automated test produced the result; `false` for a result a person reported
run?: { // With include=run: the run of the result
id: number // Run ID
title: string // Title of the run
}
internal: boolean // Whether QA Sphere added the result, such as the reset to open when a test case is edited in an open run
createdAt: datetime // Creation time
}>
}links[].integration.config depends on type, as in List Integrations: jira has { url }, github { org }, linear { organizationUrlKey?, isExpired? } and custom { newLink, viewLink }.