الانتقال إلى المحتوى الرئيسي

GET /api/chain/state-machines/:slug

Fetch metadata for one state machine. optionalAuth: viewers and above see owner-DTO fields, public callers see only the public-DTO subset.

Response — 200

Same DTO as the list endpoint, wrapped:

{ "ok": true, "machine": { ... } }

Errors

StatuserrorCause
401forbiddenprivate machine, no token
403forbiddenprivate machine, token but not viewer+
404not_foundslug doesn't resolve

Curl

curl -sS "https://zeqapi.com/api/chain/state-machines/my-iot-fleet" \
-H "Authorization: Bearer ${ZSM_KEY}"