---
title: "Apply Scenario"
method: POST
path: "/scenarios/{project_id}/{scenario_id}/apply"
tags: ["Scenarios"]
---

# Apply Scenario

`POST /scenarios/{project_id}/{scenario_id}/apply`

## Request

- Base URL: `https://api.puppeteerai.com`
- URL: `https://api.puppeteerai.com/scenarios/{project_id}/{scenario_id}/apply`
- Auth: none declared. Required headers: `Authorization`

Seed a playground thread from a scenario and fire its trigger payloads.

The seed is committed before any trigger runs, and the initial JSON data is written as
thread state rather than delivered through ``ReceivedJsonInputTrigger`` (matching
``run_simulation``) so seeding never kicks off an agent turn on its own.

## Path parameters

- `project_id` string, required
- `scenario_id` string, required

## Headers

- `Authorization` string, required

## Request body

- ApplyScenarioInput
  - `thread_id` string, required: Playground thread the scenario is applied to

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api.md) - [All operations](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getpuppeteer/apis/puppeteer-core-api/revisions/94b4e928b42f?raw)
