{"name":"Liaison API","version":"1.0","description":"Marketing attribution platform — Meta Ads, CRM funnels, lead intelligence. Public REST API serving both the Liaison frontend (app.liaisone.io) and third-party integrators.","base_url":"https://api.liaisone.io","endpoints":{"/meta/*":{"worker":"meta-auth","description":"Facebook Meta Ads proxy: accounts, campaigns, ads, leads, demographics, creatives, insights, OAuth.","examples":["GET  /meta/accounts?member_id=…","GET  /meta/campaigns?member_id=…&account=…&from=YYYY-MM-DD&to=YYYY-MM-DD","GET  /meta/insights/demographics?member_id=…&account=…&from=…&to=…","GET  /meta/insights/daily?member_id=…&account=…&from=…&to=…","GET  /meta/insights/ad-demographics?member_id=…&account=…&from=…&to=…","GET  /meta/insights/platform-breakdown?member_id=…&account=…&from=…&to=…","GET  /meta/leads?member_id=…&account=…&from=…&to=…&format=csv","GET  /meta/leads/quality?member_id=…&account_id=…&from=…&to=…","GET  /meta/creatives/analysis?member_id=…&account=…&from=…&to=…","GET  /meta/oauth/start?member_id=…  (Facebook OAuth handshake)"]},"/funnels/*":{"worker":"funnels-meta","description":"Custom funnel definitions + Meta-sourced analytics. Stage-by-stage conversion tracking.","examples":["GET    /funnels/list?member_id=…","GET    /funnels/config?member_id=…&funnel_id=…","POST   /funnels/create  (body: { member_id, name, stages, … })","PUT    /funnels/update  (body: { member_id, funnel_id, … })","DELETE /funnels/delete?member_id=…&funnel_id=…","GET    /funnels/calculate?member_id=…&funnel_id=…&from=…&to=…"]}},"mcp_gateway":{"base_url":"https://mcp.liaisone.io","protocols":{"json_rpc":"POST /mcp — Model Context Protocol JSON-RPC endpoint for AI clients (Claude.ai, ChatGPT, etc.)","rest_wrapper":"GET /call/{tool_name}?param=value — browser-friendly REST wrapper over the same tools"},"tool_count":24,"documentation":"https://mcp.liaisone.io/mcp (call method=tools/list)"},"authentication":{"current":"member_id query parameter — Memberstack ID. First-party use.","third_party":"OAuth 2.0 + API keys — planned for the dev-API marketplace tier."},"rate_limits":{"current":"Not enforced. Cloudflare Worker subrequest ceiling applies (~50/invocation).","third_party":"Per-tier limits coming with the marketplace launch."},"company":{"name":"Drum Class SRL","contact_dev_team":"egor.dol@mystarmusic.com","contact_company":"press@liaisone.io","country":"IT"},"status":"live","timestamp":"2026-06-05T18:26:06.022Z"}