Simulation API

Run a template

POST https://nsim.iotify.io/api/test/:testID/run

This endpoint allows you to run a test with the required run settings.

Path Parameters

Name
Type
Description

testID*

The ID of the test that needs to run

Headers

Name
Type
Description

Content-Type*

application/json

key*

API token for the account

domain*

The domain under which your account exists

Request Body

Name
Type
Description

runSettings*

Object

Defines the parameters for the simulation

jobName*

Unique name identifying the currently running job

rS: clients*

Number

Total number of clients

rS: iteration*

Number

Total number of iterations

rs: interval*

Number

Interval between two iterations

rS: captureLogs

Boolean

Capture all the log data to display on the results page

rS: captureState

Boolean

Capture all the state data to display on the results page

rS: capturePayload

Boolean

Capture all the payload data to display on the results page

The parameters marked as rS: $parameter are parameters under the runSettings object.

For a list of all additional runSettings parameter you can use, check the Run Settings page of the documentation.

Get Job Status

GET https://nsim.iotify.io/api/jobs/:workspaceID/:jobID

This API returns the status and results of the simulation job

Query Parameters

Name
Type
Description

workspaceID*

WorkspaceID for the workspace you're a part of

jobID*

Simulation ID as seen in the UI or returned by API while launching the simulation through the POST API.

Headers

Name
Type
Description

Accept*

application/json

Content-Type*

String

application/json

key*

String

API token for the account

domain*

String

The domain under which your account exists

Last updated

Was this helpful?