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/sitescurl -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/trackTypical 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/identifyAttach a known person to the session (email, firstName, lastName). Client helper: window.MarketFit.identify(...).
Sessions
POST /api/visitors/session— start / updateGET /api/visitors/session— readPOST /api/visitors/session/end— closePOST /api/visitors/session/{session_id}/identify— bind a leadPOST /api/visitors/segment— add the visitor to a segment
Last updated on