fastmon Docs
Applications

Detect Application Pagetype

Report an issue

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.

Authorization

bearerAuth
headerAuthorizationBearer <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.

Path Parameters

app_id*App Id
Formatuuid

Response Body

Successful Response

application/json
  1. 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*Url

The page that was probed.

final_url?Final Url

Where it ended up after redirects.

Default""
status_code?Status Code

HTTP status the probe saw.

Default0
detected_ruleset?Detected Ruleset

Inferred shop system, '' when nothing was recognised. May name a system that is not a selectable ruleset, e.g. 'shopify'.

Default""
ruleset_supported?Ruleset Supported

Whether detected_ruleset is a valid pagetype_ruleset value.

Defaultfalse
matched_via?Matched Via

Evidence: 'header:x-shopid', 'body_class:is-ctl-navigation', 'generator:…'.

Default""
page_type?Page Type

page_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.

Default""
body_classes?array<string>

Classes found on the page's <body>.

generators?array<string>

<meta name="generator"> values.

POST
/applications/{app_id}/detect-pagetype
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"  ]}