Skip to main content
POST
Run Threat Modeling Data

Authorizations

apikey
string
header
required

Body

application/json

POST /v1/threat-modeling/data payload (phase 2 — Generate + Verify).

Takes the phase-1 profile back (header fields + edited risk_categories carrying sub_categories) plus generation_config, and generates the dataset. dataset_name is not accepted (you're creating a dataset).

risk_categories
Risk Categories · object
required
system_name
string | null
system_summary
string | null
deployment_context
string | null
grounding_rules
string | null
context
Context · object | null
generation_config
GenerationConfig · object | null

generation_config block per payload.md.

Two mutually-exclusive modes:

  • Pre-built dataset: dataset_name
  • On-the-fly generation: max_prompts and/or seed_prompts

Plus an orthogonal include_standard_library toggle (default true).

run_name
string | null
Required string length: 1 - 200
user_metadata
User Metadata · object | null

Response

Successful Response

The response is of type Response Run Threat Modeling Data V1 Threat Modeling Data Post · object.