Skip to main content
POST
/
api
/
v1
/
testing-lab
/
scenarios
/
generate
Generate testing lab scenarios
curl --request POST \
  --url https://prod.featherhq.com/api/v1/testing-lab/scenarios/generate \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "agent_id": 123,
  "num_scenarios": 123,
  "inbound_phone_number": 123,
  "first_message": "<string>",
  "assistant_id": "<string>",
  "personalities": {},
  "test_profile": 123,
  "extra_instructions": "<string>",
  "generate_expected_outcomes": true,
  "tags": [
    "<string>"
  ],
  "tool_ids": [
    "<string>"
  ]
}
'
{}

Authorizations

X-API-Key
string
header
required

Body

application/json
agent_id
number
required
num_scenarios
number
required
inbound_phone_number
number
required
first_message
string
required
assistant_id
string
personalities
object
test_profile
number
extra_instructions
string
generate_expected_outcomes
boolean
tags
string[]
tool_ids
string[]

Response

Scenario generation initiated successfully. Generation is in progress.

The response is of type object.