Get the store's current journey state
/stores/{store_id}/journeyAuthorizationBearer token (JWT) · headerrequiredJWT issued by the external IdP via the OAuth 2.0 authorization-code flow (Kinde in
production; a simulator in test). The client obtains it and sends it as a Bearer token on
every authenticated call. Sarvex's services verify it — issuer, audience, signature
(IdP JWKS), expiry — and read identity and tenant from its claims. Sarvex does not issue
or revoke these tokens. merchant_id/store_id are read from the verified claims (and the
merchant→store mapping), never from the URL. The operator scope is required for
/operator/*. Operators acting on a specific merchant pass the X-Operate-As header,
which is recorded in the audit log.
store_idstringrequiredA store the caller's merchant owns. Authorized server-side against the principal; not a free-form tenant selector.
Journey state and next action.
statejourney_stateconnectedsyncedreadylivehistoryobject[]Every state this store has occupied, in the order entered. Append-only.
Show propertiesHide properties
objectstatejourney_stateconnectedsyncedreadyliveentered_atstring<date-time>next_actionobject | nullShow propertiesHide properties
task_idstringtitlestringopen_task_countsobjectShow propertiesHide properties
merchantintegersarvexintegerexternalintegerentered_state_atstring<date-time>stageengagement_stageThe 5 concierge engagement stages (internal/planes/control/engagement).
prospectkickoffremediationvalidationgo_liveentered_stage_atstring<date-time>stage_namestringHuman-readable name of the current engagement stage.
stage_descriptionstringoperator_actionsstring[]Actions an operator typically performs during this stage.
typical_days_in_stageintegerTypical duration of this stage, for staleness comparison.
stage_elapsed_daysintegerDays elapsed since entering the current stage.
required_tasks_statusobject[]Per-owner rollup of whether that owner's tasks are clear for this stage to exit. Empty for stages with no owner-tracked exit requirement.
Show propertiesHide properties
objectownertask_ownermerchantsarvexexternalresolvedbooleanResource not found within the caller's tenant.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | null