← Home

API

Build on the Revtrail API.

Use site-scoped keys to read aggregate analytics or manage goals and funnels. Start with the OpenAPI contract, CLI, or MCP manifest.

No card required · Cancel anytime

OpenAPI 3.1 contract

Inspect every Website API request, response, permission, and error shape in one machine-readable document.

Open the API contract

Aggregate analytics

POST a site key to /api/fn/apiV1Overview for versioned totals and breakdowns. Keys never expose visitor-level records.

Scoped management

Grant goals:write or funnels:write only when needed. Every key belongs to one site and can be revoked from Site Settings.

Command-line client

Use revtrail overview, goal create, and funnel create in scripts after setting REVTRAIL_API_KEY.

MCP server

Connect an AI client to the same limited operations through the local stdio server and its documented environment variables.

Open the MCP manifest

Agent-readable guide

Give an assistant the concise usage guide, endpoint list, and security model without sending it into the dashboard.

Read llms.txt

API