Skip to main content

Overview

Gets the current state of a state machine, associated with a token.

HTTP request

POST /Agent/StateMachines/GetCurrentState

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
	"tokenId":Required(Str(PTokenId))
}

Input parameters

ParameterDescription
PTokenIdID of token associated with state machine.

Response (JSON)

{
	"CurrentState":Required(PCurrentState)
}

Response parameters

ParameterDescription
PCurrentStateCurrent state of state machine, if found, and authorized.

Notes

This endpoint uses the request schema notation described in Pattern matching.