Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →

Visitors

Browser tracking usually goes through CORS (allowed origin, no API key). Server-to-server needs a key. See Auth and Website guide.

List sites / visitors

GET/api/visitors/sites
curl -X GET "https://backend.makinari.com/api/visitors/sites?site_id=YOUR_SITE_ID" \ -H "Authorization: Bearer YOUR_API_KEY"

Track an event

POST/api/visitors/track

Typical body: site_id, event_type, event_name, url, visitor_id, session_id. From the page, the tracking script does this for you.

Identify

POST/api/visitors/identify

Attach a known person to the session (email, firstName, lastName). Client helper: window.MarketFit.identify(...).

Sessions

  • POST /api/visitors/session — start / update
  • GET /api/visitors/session — read
  • POST /api/visitors/session/end — close
  • POST /api/visitors/session/{session_id}/identify — bind a lead
  • POST /api/visitors/segment — add the visitor to a segment
Last updated on