Skip to main content

Documentation Index

Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Base URL

https://revlytics.co/api
For self-hosted instances, replace with your own domain.

Authentication

  • Event ingestion (/api/event, /api/replay) — No authentication required. Events are associated with a site via the site_id field.
  • Dashboard APIs (/api/sites, /api/mentions, etc.) — Require an authenticated Supabase session (cookie-based).

Endpoints

MethodEndpointDescription
POST/api/eventIngest analytics events
POST/api/replayIngest session replay data
GET/api/sitesList your sites
POST/api/sitesCreate a new site
DELETE/api/sitesDelete a site
GET/api/mentionsGet X/Twitter mentions
GET/api/sites/x-configGet X tracking config
POST/api/sites/x-configUpdate X tracking config
GET/api/search-consoleGet GSC data
GET/api/cron/mentionsTrigger mention scan

CORS

All API endpoints return CORS headers allowing requests from any origin:
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type

Rate limiting

There are currently no hard rate limits on event ingestion. However, the tracking script includes built-in deduplication (same-URL pageviews within 1 minute, same errors within 1 minute) to prevent excessive events.