---
title: "Generate"
method: POST
path: "/api/v1/simulation/suites/{suite_id}/generate"
tags: ["simulation"]
---

# Generate

`POST /api/v1/simulation/suites/{suite_id}/generate`

## Request

- Base URL: `https://cp.xenovia.io` (the document declares no server; this is the origin it was published from)
- URL: `https://cp.xenovia.io/api/v1/simulation/suites/{suite_id}/generate`
- Auth: none declared

Write `count` draft scenarios for the suite from the agent's real
sessions and its code. The drafts wait for review
(GET .../scenarios?status=draft); progress is GET .../generation.
409 no_context unless the agent's code is read, or it has sessions and a
system prompt (configured or sent in those sessions),
409 generation_running, 402 no_credit.

## Path parameters

- `suite_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Request-ID` string, nullable

## Request body

- Generate: `count` draft scenarios for the suite's agent, from its real sessions and its code. No category: any.
  - `count` integer, required
  - `category` union
    - 'prompt_injection' | 'data_exfiltration' | 'system_prompt_leak' | 'unauthorized_action' | 'off_scope' | 'harmful_content' | 'impersonation' | 'cost_abuse' | 'tool_misuse' | 'privilege_escalation' | 'context_poisoning' | 'jailbreak' | 'output_exfiltration' | 'false_action'
    - 'normal_use'
  - `focus` string, nullable

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-26** `3e25bef24f8f`: 4 warning, 2 info
  - removed the request property `agent_id`
  - removed the request property `categories`
  - removed the request property `kind`
  - removed the request property `sources`
  - …2 more
- **2026-10-08** `1882866431ad`: 4 info
  - added the new optional request property `kind`
  - added the new optional request property `sources`
  - the request property `categories` became optional
  - the `count` request property's max was increased from `10.00` to `20.00`
- **2026-10-04** `b475b750a0b7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/simulation/suites/:suite_id/generate/post.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) - [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) - [OpenAPI document](https://skmtc.dev/xenovia/apis/controlplane/revisions/3e25bef24f8f?raw)
