Skip to main content
POST

Authorizations

X-Api-Key
string
header
required

API Key for authentication. Click here to access API Key

X-Secret-Key
string
header
required

Secret Key for authentication. Click here to access Secret Key

Body

application/json
name
string
required

The name of the scenario.

Maximum string length: 255
agent_definition_id
string<uuid>
required

The UUID of the agent definition to associate with this scenario. Required when generate_graph is true.

description
string

An optional description for the scenario.

kind
enum<string>
default:dataset

The kind of scenario to create.

Available options:
dataset,
script,
graph
dataset_id
string<uuid>

The UUID of the source dataset. Required if kind is 'dataset'.

script_url
string<uri>

URL to the script. Required if kind is 'script'.

no_of_rows
integer
default:20

Number of rows to generate for a 'graph' kind scenario.

add_persona_automatically
boolean
default:false

If true, automatically adds personas to the scenario.

graph
object | null

The graph structure for a 'graph' kind scenario. Required if 'generate_graph' is false.

generate_graph
boolean
default:false

If true, generates a graph for the scenario. agent_definition_id is required.

personas
string<uuid>[]

List of persona IDs to use in the scenario.

Response

Scenario creation has been accepted and is processing in the background.

message
string
Example:

"Graph scenario creation started"

scenario
object
status
string
Example:

"processing"