---
title: "Regen Test Scenarios Endpoint"
method: POST
path: "/v1/regen-test-scenarios"
---

# Regen Test Scenarios Endpoint

`POST /v1/regen-test-scenarios`

Regenerates test scenarios based on custom instructions while preserving style and structure.

Accepts a request with the following structure:
{
    agent: Agent;
    promptId?: string;
    knowledgeBaseId?: string;
    scenarios: TestScenario[];
    instructions: string;
    persona?: CustomerPersona;
}

## Headers

- `X-API-Key` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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