4based/API
API Automation

Automate creator operations across 4based

4based API automation connects 4based events and actions to your CRM, data warehouse, messaging stack and internal tools.

What does a 4based workflow look like?

Every run follows the same traceable path, from event to audit log.

  1. 4based event

    ppv.purchased

  2. Webhook

    HMAC ✓

  3. Rules

    amount > 20

  4. API action

    chats.send_message

  5. Audit log

    run_8812 ✓

Note: event names such as ppv.purchased belong to the 4based API product's normalized event model and are not native 4based.com endpoints.

Product concepts covered

Subscriptions, paid unlocks, tips, PPV, credits, chats, fans and creator-level reporting.

Event-driven workflows

React in seconds to new subscribers, tips, PPV purchases and messages.

Scheduled jobs

Cron-based reports, price updates and cleanups per creator or roster.

Bulk operations

Tag, message or export thousands of fans in batches with progress tracking.

Retries and idempotency

Exponential backoff and Idempotency-Key headers prevent duplicate actions.

Webhooks

HMAC-signed delivery to your endpoints with one-click replay.

Agency roster scopes

Limit workflows, keys and teammates to selected creators.

Observability

Every run logged with input, output, duration and result in the audit log.

Code examples

The same automation in cURL, TypeScript and Python.

curl -X POST https://api.4basedapi.com/v1/automations \
  -H "Authorization: Bearer sk_live_..." \
  -H "Idempotency-Key: welcome-flow-v1" \
  -d '{ "trigger": "fan.subscribed", "action": "4based.chats.send_message",
        "params": { "text": "Welcome! Your media pack is on the way." } }'

Frequently asked questions

4based API automation connects 4based events such as subscriptions, tips, PPV purchases and messages to rules and API actions, so creator operations run automatically across your whole roster.

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.