cURL
curl --request POST \ --url https://{host}/Agent/StateMachines/GetCurrentState \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "tokenId": "<string>" } '
{ "CurrentState": {} }
Gets the current state of a state machine, associated with a token.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Success