AgenticOps API overview
AgenticOps is a Shopify embedded app. The externally reachable HTTP surface is the app’s base origin. Endpoints below are given as path-only references; substitute the app’s HTTPS origin.Health
Public health routes report build identity.GET /health— returns{ "ok": true, "app": "supervised-operator", "build": ..., "at": ... }.GET /healthz— same response, used for health checks.
OAuth and install
The app uses Shopify OAuth to install and authenticate.GET /installandGET /auth/install— start Shopify OAuth.GET /auth/callback— complete Shopify OAuth.
App routes
The embedded admin UI is served under the app routes. These require an authenticated Shopify admin session.GET /andGET /app— App Home.GET /app/recommendations,GET /app/actions,GET /app/plans,GET /app/settings,GET /app/support— embedded admin pages.
Policy redirects
Public policy routes permanently redirect to the canonical documentation:GET /privacy→ Privacy Policy (301)GET /terms→ Terms of Service (301)GET /legal→ Terms of Service (301)GET /legal/privacy→ Privacy Policy (301)GET /legal/terms→ Terms of Service (301)
Webhooks
Signed Shopify webhooks are handled at:POST /webhooks/app_uninstalledPOST /webhooks/app_subscriptions_updatePOST /webhooks/shop_updatePOST /webhooks/privacy— GDPR compliance topics (customers/data_request,customers/redact,shop/redact)POST /webhooks/signals—products/create,products/update,inventory_levels/update,orders/create
Billing
Billing routes use Shopify’s Admin Billing API.GET /billing/plans— lists available tiers, prices, trial periods, mutation limits, and rollback retention.POST /billing/plan-navigation— renews the app session and returns a signed, one-use plan-navigation token.POST /billing/subscribe— body{ "tier": "core" }; returns a Shopify confirmation URL.POST /billing/upgrade— body{ "tier": "growth" }; changes an existing subscription.POST /billing/cancel— cancels the active subscription.GET /billing/status— returns the shop’s real subscription state pluseffectiveTier,entitlementSource, anddeveloperLabel.
Authenticated admin API
The embedded admin UI is backed by an authenticated admin API under/api/*. These routes require a valid Shopify admin session (App Bridge ID token) and are used only by the embedded UI; they are not a general public API. They expose the same store-facing workflows described in the merchant guides: reading the dashboard and setup state, reviewing and acting on recommendations, and updating settings and supervision policies.