---
title: "Create evaluation scenario"
method: POST
path: "/api/v1/public/evaluation/scenarios"
tags: ["public"]
---

# Create evaluation scenario

`POST /api/v1/public/evaluation/scenarios`

Create a validated evaluation scenario in the authenticated workspace idempotently.

## Headers

- `Idempotency-Key` string, required

## Request body

- ScenarioWriteRequest
  - `name` string, required
  - `description` string, nullable
  - `context` string, nullable
  - `openingLine` string, nullable
  - `expectedOutcomes` string, nullable
  - `successCriteria` string[], nullable
  - `autoCutSeconds` integer, nullable

## Response `201`

Successful Response

- ScenarioResponse
  - `id` string, required
  - `workspaceId` string, required
  - `name` string, required
  - `description` string, nullable
  - `context` string, nullable
  - `openingLine` string, nullable
  - `expectedOutcomes` string, nullable
  - `successCriteria` unknown
  - `autoCutSeconds` integer, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `422` — Validation Error

---

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