Skip to main content
This guide walks you through the basic workflow of using the Network Simulation API to run your first simulation.

Prerequisites

  • API access token (see Authentication)
  • curl or your preferred HTTP client
  • Basic familiarity with REST APIs

Setup

Set your API token as an environment variable:

Step 1: Browse Available Templates

Templates provide pre-configured starting points for common simulation scenarios:
Response:

Step 2: Create a Configuration from Template

Clone a template to create your own configuration
Response:

Step 3: Validate the Configuration

Before running a simulation, validate your configuration:
Response:
If there are issues, they’ll appear in the errors or warnings arrays:

Step 4: Start a Simulation

Now run your first simulation:
Response:

Step 5: Monitor Progress

Check the simulation status:
The status will progress through:
  1. validating - Checking configuration
  2. provisioning - Allocating resources
  3. running - Simulation in progress
  4. completed - Finished successfully
Or error states: failed, terminated

Step 6: Get Results

Once the simulation completes, retrieve the results:
Response:

Next Steps