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,
"batchRunId": "<string>",
"scenarioId": "<string>",
"scenarioRunId": "<string>",
"metadata": {
"name": "<string>",
"description": "<string>"
}
}'
{
"success": true,
"url": "<string>"
}
Create a new scenario event
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,
"batchRunId": "<string>",
"scenarioId": "<string>",
"scenarioRunId": "<string>",
"metadata": {
"name": "<string>",
"description": "<string>"
}
}'
{
"success": true,
"url": "<string>"
}
Event created successfully
The response is of type object
.