OpenstatXHomeDeveloper docsOpenAPIllms.txt中文

Authentication and permissions

Credential layers

CredentialFormPurposeCan read data
Site IDst_..., publicAttributing collected dataNo
Browser sessionHttpOnly cookie (production: __Host-, Secure, SameSite=Strict)Web dashboardYes (by role)
Recovery keystrk_..., 256-bit random, only a digest is storedRestore the workspace on a new device, recent strong authenticationOnly to establish a session
API credentialstk_...REST and MCP (Bearer)Yes (by scope, site and access window)
Ingest credentialsti_... + signing secretServer / edge reportingNo (write-only)
Bootstrap tokenstb_..., 1 hourProgrammatic onboardingSummary only
OAuth tokenIssued by /oauth/tokenGeneric MCP clientsYes (as granted on the consent page)

Scopes

scopeDescription
summary:readRead summary reports (PV, UV, sources, top pages, AI summary, etc.), excluding visitor/request-level details and revenue
details:readRead visitor, session and single-request details and classification evidence (including untrusted raw fields such as path and UA)
conversions:readRead goals, funnels and conversion counts (excluding revenue amounts)
revenue:readRead revenue amounts and orders
exports:writeCreate and download export files (export content is still limited by other read scopes)
imports:writeUpload and submit historical data imports
sites:writeAdd/edit sites, groups, installation and verification
settings:writeEdit site settings, goals, funnels, filters, custom dimensions, campaign costs and retention settings
reports:writeSave reports, create schedules and delivery targets
shares:writeCreate/revoke public shares (public sharing must still be enabled on the server)
members:adminInvite, downgrade and remove members
credentials:adminCreate, rotate and revoke API credentials and grants
audit:readRead audit logs
usage:readRead usage, quotas and cost estimates

By default an AI credential only has summary:read. Revenue, visitor details, and member and credential management must be granted separately; a grantor cannot grant more than they hold.

Rules

Ingest signatures (server / edge)

Authorization: Bearer sti_...
X-OpenstatX-Timestamp: <unix seconds, ±300 seconds>
X-OpenstatX-Nonce: <16-64 random characters, single-use>
X-OpenstatX-Signature: v1=hex(HMAC-SHA256(signing_secret, "<ts>.<nonce>.<sha256(body)>"))

OAuth (/mcp only)