Detect Application Pagetype
Find out which shop system this application runs, by reading its home page.
Answers the question the pagetype_ruleset setting asks, without making
anybody open DevTools and read document.body.className. The probe target is
the application's own domain, never a URL from the caller: this endpoint makes
the server fetch a page, so the only address it ever visits is one the
customer registered here.
Detection only. The result is not written, because a probe reads one page of one domain while the setting governs every page of the application.
bearerAuthAuthorizationBearer <token>API token generated from the fastmon dashboard (Account → API Token) or at organization level (fmo_…, one that outlives its creator). Send as Authorization: Bearer fm_... or paste the full token (including its prefix) into the Authorize dialog.
app_id*App IduuidSuccessful Response
application/json- response
What a shop-system probe found on the application's own home page.
Detection only. Nothing is written: the caller decides whether to PATCH
pagetype_ruleset with detected_ruleset, and may only do so when
ruleset_supported is true.
url*UrlThe page that was probed.
final_url?Final UrlWhere it ended up after redirects.
""status_code?Status CodeHTTP status the probe saw.
0detected_ruleset?Detected RulesetInferred shop system, '' when nothing was recognised. May name a system that is not a selectable ruleset, e.g. 'shopify'.
""ruleset_supported?Ruleset SupportedWhether detected_ruleset is a valid pagetype_ruleset value.
falsematched_via?Matched ViaEvidence: 'header:x-shopid', 'body_class:is-ctl-navigation', 'generator:…'.
""page_type?Page Typepage_type of the probed page under the detected ruleset. The home page, so 'home' is the expected answer and anything else is a hint that the theme renames classes.
""body_classes?array<string>Classes found on the page's <body>.
generators?array<string><meta name="generator"> values.
curl -X POST 'https://api.fastmon.eu/applications/497f6eca-6276-4993-bfeb-53cbbbba6f08/detect-pagetype'{ "url": "string", "final_url": "", "status_code": 0, "detected_ruleset": "", "ruleset_supported": false, "matched_via": "", "page_type": "", "body_classes": [ "string" ], "generators": [ "string" ]}