Get a store's overall health
Semantic endpoint health, consistency status, and sync freshness (pre-existing
statements) plus, additively, the endpoint-health composite status and its
currently active alerts (endpoint_status, active_alerts — both omitted if the
endpoint-health workers aren’t deployed in this environment).
/stores/{store_id}/healthAuthorizationBearer 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.
Health.
statementshealth_statement[]Show propertiesHide properties
health_statementkindstringconsistencysemantic_endpointsync_freshnessprofile_edgeokbooleanmessagestringServer-rendered English. Clients with copy of their own for this kind should render that instead and use message only as a fallback.
paramsobjectThe statement's facts as data, so a client can render its own sentence: critical_count/warning_count on consistency, age_seconds on sync_freshness. Present only where the statement has numbers to report.
checked_atstring<date-time>endpoint_statusendpoint_statusComposite status derived from synthetic probes and real-traffic telemetry — see internal/planes/control/endpointhealth.
Show propertiesHide properties
statusstringhealthydegradedcriticalevaluated_atstring<date-time>checksobjectactive_alertsalert[]Show propertiesHide properties
alertalert_idstringstore_idstringcheck_typestringseveritystringhealthydegradedcriticalstatusstringopenacknowledgedresolveddetailstringopened_atstring<date-time>acknowledged_atstring<date-time> | nullacknowledged_bystringresolved_atstring<date-time> | nullauto_resolvedboolean