---
title: "Reanalyze test run"
method: POST
path: "/api/apps/{app_id}/testing-agent/analysis/{execution_id}/reanalyze"
---

# Reanalyze test run

`POST /api/apps/{app_id}/testing-agent/analysis/{execution_id}/reanalyze`

## Request

- Base URL: `https://app.base44.com`
- URL: `https://app.base44.com/api/apps/{app_id}/testing-agent/analysis/{execution_id}/reanalyze`
- Auth: HTTP bearer

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Writes a new report for a finished test run from the steps the run already recorded. The browser doesn't run again. The new report replaces the old one, and the run's `goal_accomplished` follows the new verdict.

It also finishes a run stuck in `analyzing` whose steps were saved, and that run then ends normally.

This makes an AI call and costs credits, which are recorded against the user who started the run. It runs while you wait, usually for under a minute, and returns the new report. If it fails, the old report stays. The call is refused when the workspace is out of credits.

This is limited to 20 requests per minute per caller for each app. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. Read-only keys and workspace API keys are refused.</Note>

## Path parameters

- `app_id` string, required: ID of the app.
- `execution_id` string, required: ID of the run to reanalyze.

## Response `200`

The new report.

- TestRunReport: The report for a finished run.
  - `id` string, required: ID of the report.
  - `app_id` string, required: ID of the app.
  - `flow_id` string, required: ID of the test.
  - `execution_id` string, required: ID of the run.
  - `flow_goal` string, required: The test's goal when the run started.
  - `status` 'goal_accomplished' | 'goal_not_accomplished' | 'failed' | 'timeout', required: The verdict. `failed` and `timeout` mean the report couldn't reach one, and `summary` says what happened.
  - `summary` string, required: Plain-language summary of the run.
  - `issues` TestRunIssue[], required: Problems found during the run. Empty when there were none.
    - `title` string, required: Short name of the problem.
    - `summary` string, required: What went wrong, as seen from the app's user.
    - `severity` string, required: How serious the problem is. Usually `critical`, `warning` or `info`.
    - `category` string, required: Kind of problem. Usually `ui_interaction`, `form_validation`, `navigation`, `content`, `performance`, `accessibility` or `functionality`. Base44 also adds advisory issues with `seed_data_gap`, `auth_required` or `permission_gap` when the test data, sign-in, or the test's role got in the way. Those describe the test setup, not a bug in your app.
    - `related_step_number` integer, nullable, required: Step in the run's `actions` where the problem showed, counting from 1, or `null`.
  - `created_date` string, required: When the report was written, as an ISO 8601 UTC timestamp.
  - `updated_date` string, required: When the report last changed, as an ISO 8601 UTC timestamp.

## Other responses

- `400`: The run recorded no steps, or the workspace is out of credits.
- `401`: Missing or invalid credentials.
- `403`: You don't have editor access to this app, the app is blocked, or your API key is read-only or a workspace API key.
- `404`: App or run not found.
- `409`: The run is still `pending`, `running` or `analyzing`, another reanalysis of it is already in progress, or your workspace requires an unlocked SSO session.
- `429`: Rate limit exceeded.

## Changes

> 58 revisions in range; 1 not diffed.

- **2026-10-12** `5e139db2e643`: 1 info
  - the endpoint scheme security `PersonalAccessTokenAuth` was added to the API
- **2026-10-06** `dddf17e0f9f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/adexad/apis/base44-app-management-api/changes/api/apps/:app_id/testing-agent/analysis/:execution_id/reanalyze/post.md)

---

[API](https://skmtc.dev/adexad/apis/base44-app-management-api.md) · [All operations](https://skmtc.dev/adexad/apis/base44-app-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/adexad/apis/base44-app-management-api/revisions/fa29e915c226?raw)
