---
title: "Analyze and summarize a test run failure"
method: POST
path: "/analysis/{workspace_id}/run/summary"
tags: ["Analysis"]
---

# Analyze and summarize a test run failure

`POST /analysis/{workspace_id}/run/summary`

Analyze and summarize a test run failure

## Path parameters

- `workspace_id` string, required

## Query parameters

- `regenerate` boolean

## Request body

- TestRunAnalysisRequest
  - `test_run_id` string, required — The ID of the test run to analyze
  - `save_summary` boolean — Whether to save the summary of the analysis to the test run

## Response `200`

A summary of the analysis of the test run failure

- TestRunAnalysisResponse
  - `synopsis` string — The failure synopsis for the analysis
  - `summary` string — The summary of the analysis for the test run failure
  - `failure_category_id` string — The suggested failure category for this test run
  - `empty_response_reason` 'test_deleted' | 'test_log_unavailable' — (optional) The reason the run analysis response is empty (e.g. The test was deleted)

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

[API](https://skmtc.net/mabl/apis/mabl-api.md) · [All operations](https://skmtc.net/mabl/apis/mabl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mabl/mabl-api/revisions/d0fc0114da66/schema)
