Skip to main content
POST
/
workflows
/
v1
/
simulations
Create Simulation
curl --request POST \
  --url https://api-qa.interactly.ai/workflows/v1/simulations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "logical_id": "<string>",
  "description": "<string>",
  "selected_workflow": {
    "workflow_id": "5eb7cf5a86d9755df3a6c593",
    "dynamic_variables": {},
    "name": "<string>",
    "total_events": 0,
    "total_nodes": 0,
    "total_duration_seconds": 0,
    "run_id": "5eb7cf5a86d9755df3a6c593"
  },
  "counter_workflow": {
    "workflow_id": "5eb7cf5a86d9755df3a6c593",
    "dynamic_variables": {},
    "name": "<string>",
    "total_events": 0,
    "total_nodes": 0,
    "total_duration_seconds": 0,
    "run_id": "5eb7cf5a86d9755df3a6c593"
  },
  "timeout_seconds": 123,
  "max_events": 500,
  "number_of_simulations": 1,
  "stop_on_failure": false,
  "status": "pending"
}
'
{
  "simulation": {
    "team_id": "<string>",
    "created_by": "<string>",
    "updated_by": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "_id": "5eb7cf5a86d9755df3a6c593",
    "simulation_config": {
      "logical_id": "<string>",
      "description": "<string>",
      "selected_workflow": {
        "workflow_id": "<string>",
        "dynamic_variables": {},
        "name": "<string>",
        "total_events": 0,
        "total_nodes": 0,
        "total_duration_seconds": 0,
        "run_id": "<string>"
      },
      "counter_workflow": {
        "workflow_id": "<string>",
        "dynamic_variables": {},
        "name": "<string>",
        "total_events": 0,
        "total_nodes": 0,
        "total_duration_seconds": 0,
        "run_id": "<string>"
      },
      "timeout_seconds": 123,
      "max_events": 500,
      "number_of_simulations": 1,
      "stop_on_failure": false,
      "status": "pending"
    }
  }
}

Authorizations

Authorization
string
header
required

Retrieve your API Key from Dashboard API Keys Section.

Body

application/json
logical_id
string | null

Unique identifier for the simulation

description
string | null

Description of the node library

selected_workflow
SimulationWorkflowDetails · object

Details about the selected workflow execution

counter_workflow
SimulationWorkflowDetails · object

Details about the counter workflow execution

timeout_seconds
integer | null

Maximum time in seconds to run the simulation

max_events
integer | null
default:500

Maximum number of events to process in the simulation

number_of_simulations
integer | null
default:1

Number of times to run the simulation

stop_on_failure
boolean | null
default:false

Whether to stop the simulation on failure

status
enum<string> | null
default:pending

Current status of the simulation

Available options:
pending,
running,
completed,
failed,
cancelled

Response

Successful Response

Response model for a single simulation. Contains a SimulationsModel object.

simulation
SimulationsModel · object
required

Single simulation object