Skip to main content
GET
/
api
/
models
/
{modelId}
/
states
Get all states for a model
curl --request GET \
  --url http://localhost:3000/api/models/{modelId}/states \
  --header 'Authorization: Bearer <token>'
[
  {
    "label": "<string>",
    "notes": "<string>",
    "entryState": true
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

modelId
string<uuid>
required

ID of the model

Query Parameters

type
string

Filter states by type

Response

List of states

label
string
required

The label of the state

notes
string

Additional notes about the state

entryState
boolean

Whether this state is the entry point for the state machine