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
| Status | error | Cause |
|---|---|---|
401 | forbidden | private machine, no token |
403 | forbidden | private machine, token but not viewer+ |
404 | not_found | slug doesn't resolve |
Curl
curl -sS "https://zeqapi.com/api/chain/state-machines/my-iot-fleet" \
-H "Authorization: Bearer ${ZSM_KEY}"