4based/API
API automation + ads tracking for 4based

Build software and automate on top of 4based

4based API is the developer platform for 4based.com. It exposes 200+ REST endpoints, webhooks, server-side ads tracking and an MCP server so agencies and developers can build CRMs, automations, AI agents and ad attribution on top of 4based.

MetaTikTokSnapchatGoogle Ads

Server-side tracking for every ad platform.

track-conversion
// meta-capi.ts - fire a server-side Subscribe event when a 4based fan converts
await fetch("https://api.4basedapi.com/v1/ads/meta/events", {
  method: "POST",
  headers: { "Authorization": "Bearer sk_live_...", "Content-Type": "application/json" },
  body: JSON.stringify({
    pixel_id: "1234567890",
    event: {
      event_name: "Subscribe",
      event_time: Math.floor(Date.now() / 1000),
      event_id: "4based_sub_abc123",
      action_source: "website",
      user_data: { em: ["<sha256(email)>"], fbc: "fb.1.1699.abc", fbp: "fb.1.1699.987" },
      custom_data: { currency: "USD", value: 9.99, content_ids: ["4based:creator_xyz"] },
    },
  }),
});
Purchase → Meta CAPI · 200 OK · 84ms

Build agency software, creator operations, AI workflows and ads attribution on top of 4based through one reliable developer platform.

API Automation

Automate every 4based workflow through one API

Connect subscriptions, tips, PPV, chats and fans to your CRM, data warehouse and internal tools. Event-driven, scheduled or in bulk.

Example endpoints

See all 200+ →
  • POSTConnect a 4based creator
  • GETSubscriber revenue & churn
  • POSTSend chat message
  • GETMedia library
  • POSTFire conversion event
  • GETFan lifetime value

Ads Tracking

Pixel-perfect tracking and attribution for 4based

Fire server-side conversion events back to your ad accounts the moment a fan subscribes, tips or buys a PPV message on 4based. Meta Conversions API, TikTok Events API, Snapchat CAPI and Google Ads, deduplicated, hashed and signed.

MetaTikTokSnapchatGoogle Ads
  • Meta Pixel + Conversions API with automatic deduplication
  • TikTok Pixel + Events API v1.3 with ttclid passthrough
  • Snapchat Pixel + Snap CAPI with hashed PII and event_id
  • Google Ads enhanced conversions with gclid capture
  • Per-creator ROAS, CPA and LTV cohorts in the dashboard
meta-capi.ts
// meta-capi.ts - fire a server-side Subscribe event when a 4based fan converts
await fetch("https://api.4basedapi.com/v1/ads/meta/events", {
  method: "POST",
  headers: { "Authorization": "Bearer sk_live_...", "Content-Type": "application/json" },
  body: JSON.stringify({
    pixel_id: "1234567890",
    event: {
      event_name: "Subscribe",
      event_time: Math.floor(Date.now() / 1000),
      event_id: "4based_sub_abc123",
      action_source: "website",
      user_data: { em: ["<sha256(email)>"], fbc: "fb.1.1699.abc", fbp: "fb.1.1699.987" },
      custom_data: { currency: "USD", value: 9.99, content_ids: ["4based:creator_xyz"] },
    },
  }),
});
  1. 1

    Ad click

    fbclid / ttclid / ScCid / gclid

  2. 2

    Tracking link

    click ID saved

  3. 3

    4based conversion

    subscribe, tip, PPV

  4. 4

    4based API

    hash, dedupe, sign

  5. 5

    Ad platforms

    Meta, TikTok, Snap, Google

Everything you need to build powerful 4based tools

Not just an API - a complete development platform with dashboard, API keys, webhooks, playground and enterprise security.

Dashboard

Endpoints, logs and webhooks at a glance. Monitor usage and live metrics in real time.

OverviewEndpointsWebhooksLogs

1.2M

requests

99.98%

uptime

94ms

p50

API Keys

Create, rotate and revoke keys instantly. Scoped keys per project or per team member.

sk_live_a91f...c2active

sk_live_3c0e...7aactive

sk_test_78bd...9krevoked

Webhooks

Automations on new messages, sales, renewals or subscribers. HMAC-signed with retries.

fan.subscribed → yourapp.com 200 OK

Playground

Run any endpoint live in your browser. Test with confidence before shipping.

GET /v1/fans 200 · 148ms

Complete Security

AES-256 encryption, isolated systems and secret vaulting.

Team & Roles

Invite teammates with granular roles, per-creator scopes and audit logs.

Ada AdminBen DevCyd Analyst

Dedicated Proxies

Residential proxies rotated per creator. Never share fingerprints with another tenant.

Rate-limit Aware

Automatic backoff that respects 4based's limits so writes always land.

MCP & AI

Run your 4based agency from Claude, ChatGPT or Manus

Two-click install of the 4based API MCP server and your AI gets 200+ tools across every connected creator - live chats, revenue, fan lists and actions - without brittle scrapers.

ClaudeChatGPTCursor Manus
claude-desktop.json
{
  "mcpServers": {
    "4based": {
      "command": "npx",
      "args": ["-y", "@4basedapi/mcp"],
      "env": { "FOURBASED_API_KEY": "sk_live_..." }
    }
  }
}

No-Code

No-code automations

Native n8n node, Make.com and Zapier apps. Trigger any 4based event without a line of code.

n8n, Make & Zapier

Native integrations for the three biggest no-code platforms.

Pre-made scenarios

Blueprints for whale rescue, churn recovery, welcome flows and cross-sell.

Data Export tool

One-click CSV or Parquet exports of chats, transactions and fans.

4based data export

Works with the tools you already use

Meta
TikTok
Snapchat
Google Ads
Claude
ChatGPT
Cursor
Manus
n8n
Make.com
Zapier
Airtable
Meta
TikTok
Snapchat
Google Ads
Claude
ChatGPT
Cursor
Manus
n8n
Make.com
Zapier
Airtable

Stop wasting time on partial and unreliable services

One platform instead of scrapers, spreadsheets and guesswork.

Feature4based APIDIY scrapers
Complete login (2FA)YesNo
Open Auth ModuleYesNo
No-code (n8n, Make, Zapier)Native + guidesNo
API coverageFull, 200+ endpointsPartial
Server-side ads tracking (Meta, TikTok, Snap, Google)YesNo
Tracking-link revenue attributionYesNo
Webhooks + realtime eventsYesNo
Data Download toolOne-click exportsNo
Dedicated proxy infrastructureYesNo
Team managementMembers, roles, auditNo
SupportTelegram, email, dedicatedNone

Build with 4based API

Ready to build?

Tell us what you want to automate, measure or build on top of 4based. Agencies, developers and automation teams all get a tailored next step from our team.

Frequently asked questions

4based API is the developer platform for 4based.com. It exposes 200+ REST endpoints, webhooks, server-side ads tracking and an MCP server so agencies and developers can build CRMs, automations, AI agents and ad attribution on top of 4based.