Returns the complete definition of a single testcase, including:
Execution history is not included in this response.
If the testcase does not exist or is not accessible to the authenticated actor, a 404 Not Found response is returned.
This endpoint does not modify any data.
Use this endpoint when you need to:
curl -X GET https://api.hawzu.com/api/v1/workspace/{workspaceId}/project/{projectId}/testcases/{testcaseId} \
-H "Authorization: Bearer YOUR_API_TOKEN"This endpoint accepts the following path parameters:
| Parameter | Required | Description |
|---|---|---|
workspaceId | ✅ Yes | The ID of the workspace to get the testcase for |
projectId | ✅ Yes | The ID of the project to get the testcase for |
testcaseId | ✅ Yes | The ID of the testcase to get |
| Header | Required | Description |
|---|---|---|
Authorization | ✅ Yes | Bearer token in the format Bearer <API_TOKEN> |
{
"data": {
"id": "tc_101",
"project_id": "proj_101",
"title": "Verify user login",
"description": "Ensure valid users can log into the system.",
"status": "ACTIVE",
"automation_status": "AUTOMATED",
"owner_id": "user_123",
"priority": "HIGH",
"severity": "CRITICAL",
"created_at": "2025-02-01T00:00:00Z",
"updated_at": "2025-02-10T00:00:00Z",
"steps": [
{
"step_id": "step_1",
"order": 1,
"action": "Navigate to login page",
"expected_result": "Login page is displayed"
},
{
"step_id": "step_2",
"order": 2,
"action": "Enter valid credentials and submit",
"expected_result": "User is redirected to dashboard"
}
]
}