Get Started
- Introduction
- Self Hosting
- Cookbooks
Agent Simulations
LLM Observability
- Overview
- Concepts
- Quick Start
- Language APIs & SDKs
- Integrations
- User Events
- Monitoring & Alerts
- Code Examples
LLM Evaluation
- Overview
- Evaluation Tracking API
- Evaluation Wizard
- Real-Time Evaluation
- List of Evaluators
- Datasets
- Annotations
LLM Development
- Prompt Optimization Studio
- DSPy Visualization
- LangWatch MCP
- Prompt Versioning
API Endpoints
- Traces
- Scenarios
- Prompts
- Annotations
- Datasets
- Triggers
Scenarios
Create event
Create a new scenario event
POST
/
api
/
scenario-events
Copy
curl --request POST \
--url https://app.langwatch.ai/api/scenario-events \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"type": "<string>",
"timestamp": 123,
"rawEvent": "<any>",
"batchRunId": "<string>",
"scenarioId": "<string>",
"scenarioRunId": "<string>",
"scenarioSetId": "default",
"metadata": {
"name": "<string>",
"description": "<string>"
}
}'
Copy
{
"success": true,
"url": "<string>"
}
Authorizations
Body
application/json
Response
201
application/json
Event created successfully
The response is of type object
.
Copy
curl --request POST \
--url https://app.langwatch.ai/api/scenario-events \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--data '{
"type": "<string>",
"timestamp": 123,
"rawEvent": "<any>",
"batchRunId": "<string>",
"scenarioId": "<string>",
"scenarioRunId": "<string>",
"scenarioSetId": "default",
"metadata": {
"name": "<string>",
"description": "<string>"
}
}'
Copy
{
"success": true,
"url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.