All docsStellar LinkRF bench · by Stellar Systems v0.4.0

API Reference

Scenarios

Scenarios: discovery, validation and runs

GET/api/v1/scenario-runs

List runs#

List scenario runs.

Returns the 100 most recent runs, newest first, including a run in progress.

Responses

200OKapplication/json

array of ScenarioRunDRO

run_idrequired

string · uuid

scenario_namerequired

string

statusrequired

string

pending, running, passed, failed, cancelled.

started_atrequired

string · date-time

ended_at

string · date-time · nullable

duration_ms

integer · int64 · nullable

≥ 0

steps_executed

integer · int32 · nullable

≥ 0

assertions_passed

integer · int32 · nullable

≥ 0

assertions_failed

integer · int32 · nullable

≥ 0

Request

curl "http://192.168.2.1:8080/api/v1/scenario-runs"

Response

[
  {
    "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "scenario_name": "string",
    "status": "string",
    "started_at": "2026-09-29T08:30:00Z",
    "ended_at": "2026-09-29T08:30:00Z",
    "duration_ms": 0,
    "steps_executed": 0,
    "assertions_passed": 0,
    "assertions_failed": 0
  }
]
GET/api/v1/scenario-runs/{run_id}

Get run#

Get a scenario run.

Path parameters

run_idrequired

string · uuid

Run identifier

Responses

200OKapplication/json
run_idrequired

string · uuid

scenario_namerequired

string

statusrequired

string

pending, running, passed, failed, cancelled.

started_atrequired

string · date-time

ended_at

string · date-time · nullable

duration_ms

integer · int64 · nullable

≥ 0

steps_executed

integer · int32 · nullable

≥ 0

assertions_passed

integer · int32 · nullable

≥ 0

assertions_failed

integer · int32 · nullable

≥ 0

404Run not foundapplication/json

ApiErrorDRO

Request

curl "http://192.168.2.1:8080/api/v1/scenario-runs/3fa85f64-5717-4562-b3fc-2c963f66afa6"

Response

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "scenario_name": "string",
  "status": "string",
  "started_at": "2026-09-29T08:30:00Z",
  "ended_at": "2026-09-29T08:30:00Z",
  "duration_ms": 0,
  "steps_executed": 0,
  "assertions_passed": 0,
  "assertions_failed": 0
}
GET/api/v1/scenario-runs/{run_id}/events

Get run events#

Get a scenario run's event timeline.

The list is empty while the run is in progress, and for runs whose full detail is no longer kept.

Path parameters

run_idrequired

string · uuid

Run identifier

Responses

200Execution event timeline (empty while the run is still in-flight)application/json

array of ExecutionEventDRO

elapsed_msrequired

integer · int64

≥ 0

event_id

string · nullable

kindrequired

string

descriptionrequired

string

404Run not foundapplication/json

ApiErrorDRO

Request

curl "http://192.168.2.1:8080/api/v1/scenario-runs/3fa85f64-5717-4562-b3fc-2c963f66afa6/events"

Response

[
  {
    "elapsed_ms": 0,
    "event_id": "string",
    "kind": "string",
    "description": "string"
  }
]
GET/api/v1/scenarios

List#

List scenarios.

Returns every scenario known to the device, sorted by name.

Responses

200OKapplication/json

array of ScenarioSummaryDRO

namerequired

string

display_name

string · nullable

description

string · nullable

profile_ref

string · nullable

tagsrequired

array of string

Request

curl "http://192.168.2.1:8080/api/v1/scenarios"

Response

[
  {
    "name": "string",
    "display_name": "string",
    "description": "string",
    "profile_ref": "string",
    "tags": [
      "string"
    ]
  }
]
GET/api/v1/scenarios/active

Active#

Get the active scenario run.

Returns the scenario being run and its elapsed time, or null when nothing is running. cancelling is true when a stop was requested and the run is winding down.

Responses

200The run in flight, or nullapplication/json

ActiveRunDRO · nullable

Request

curl "http://192.168.2.1:8080/api/v1/scenarios/active"

Response

{}
POST/api/v1/scenarios/active/cancel

Cancel active#

Stop the active scenario run.

Requests a stop: the run ends at its next step boundary and is recorded as cancelled. Returns 409 when nothing is running.

Responses

200Stop requested — returns the run it askedapplication/json

ActiveRunDRO

409Nothing is runningapplication/json

ApiErrorDRO

Request

curl -X POST "http://192.168.2.1:8080/api/v1/scenarios/active/cancel"

Response

{}
POST/api/v1/scenarios/validate

Validate#

Validate a scenario.

Checks a scenario document without saving or running it, including every duration and the format version. The reply carries ok and the list of errors.

Request body application/jsonrequired

ScenarioDRO

Responses

200OKapplication/json
okrequired

boolean

errorsrequired

array of string

Request

curl -X POST "http://192.168.2.1:8080/api/v1/scenarios/validate" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "ok": true,
  "errors": [
    "string"
  ]
}
GET/api/v1/scenarios/{name}

Get one#

Get a scenario.

Path parameters

namerequired

string

Scenario identifier

Responses

200OKapplication/json

ScenarioDRO

404Scenario not foundapplication/json

ApiErrorDRO

Request

curl "http://192.168.2.1:8080/api/v1/scenarios/<name>"

Response

{}
POST/api/v1/scenarios/{name}/run

Run#

Start a scenario run.

Prepares the signal chain for the scenario, then starts the run in the background and returns 202 with its run id. Preparing the chain can take tens of seconds before the reply. Only one scenario runs at a time: a request while another is running is refused with 409, not queued. The run is also refused with 409, and no run is recorded, when the signal chain cannot be prepared.

Path parameters

namerequired

string

Scenario to run

Responses

202Run started — returns a run summaryapplication/json
run_idrequired

string · uuid

scenario_namerequired

string

statusrequired

string

pending, running, passed, failed, cancelled.

started_atrequired

string · date-time

ended_at

string · date-time · nullable

duration_ms

integer · int64 · nullable

≥ 0

steps_executed

integer · int32 · nullable

≥ 0

assertions_passed

integer · int32 · nullable

≥ 0

assertions_failed

integer · int32 · nullable

≥ 0

404Scenario not foundapplication/json

ApiErrorDRO

Request

curl -X POST "http://192.168.2.1:8080/api/v1/scenarios/<name>/run"

Response

{
  "run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "scenario_name": "string",
  "status": "string",
  "started_at": "2026-09-29T08:30:00Z",
  "ended_at": "2026-09-29T08:30:00Z",
  "duration_ms": 0,
  "steps_executed": 0,
  "assertions_passed": 0,
  "assertions_failed": 0
}

↑↓ to moveEnter to open