Skip to main content
POST
/
Agent
/
StateMachines
/
GetCurrentState
Get Current State
curl --request POST \
  --url https://{host}/Agent/StateMachines/GetCurrentState \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenId": "<string>"
}
'
{
  "CurrentState": {}
}

Overview

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

Authentication

Requires a valid JWT bearer token.

Notes

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tokenId
string
required

Response

200 - application/json

Success

CurrentState
object
required