---
title: "Get success rate trend data"
method: GET
path: "/dashboard/success-rate-trend"
tags: ["Dashboard"]
---

# Get success rate trend data

`GET /dashboard/success-rate-trend`

Retrieve 7-day rolling average trend of simulation outcomes for visualization. Returns daily aggregated data showing successful vs failed runs.

## Query parameters

- `projectId` string, required
- `scenarioIds` string[]
- `timeWindow` '7d' | '30d' | '3m'

## Response `200`

Success rate trend data retrieved successfully

- object
  - `data` object[], required — Array of daily trend data points
    - `date` string, date, required — Date for this data point (YYYY-MM-DD)
    - `totalRuns` integer, required — Total number of simulation runs on this date
    - `successfulRuns` integer, required — Number of successful runs on this date
    - `failedRuns` integer, required — Number of failed runs on this date
    - `successPercentage` number, float, required — Percentage of successful runs (same as successRate, for convenience)

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - Insufficient permissions
- `500` — Internal Server Error - Server error

---

[API](https://skmtc.net/cognigy/apis/simulator-openapi-rest-ful-api-reference.md) · [All operations](https://skmtc.net/cognigy/apis/simulator-openapi-rest-ful-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cognigy/simulator-openapi-rest-ful-api-reference/versions/85b2872bdfb7/schema)
