Build Engine

Monetization

The Build Engine gives you everything you need to monetize your app and engage your users. Design paywalls with a visual builder, run A/B experiments with automatic statistical significance detection, send targeted push notifications, manage feature flags with remote config, and optimize ad placements. All paywall and config changes are server-driven, so you can iterate without shipping app updates.

Key Features

Visual Paywall Builder
Design paywalls with a drag-and-drop editor. Configure products, pricing, copy, and layout. Changes go live instantly via server-driven UI without app store review.
Server-Driven UI
Paywall layouts, product lists, and promotional offers are delivered from the server. The SDK renders them natively, letting you update the purchase experience on the fly.
Experiment Engine
Run A/B and multivariate tests on paywalls, pricing, and copy. Automatic sample size calculation, statistical significance detection, and revenue impact analysis.
Push Campaigns
Create scheduled or triggered push notification campaigns. Segment users by behavior, subscription status, or custom properties. Track open rates and conversions.
Feature Flags & Remote Config
Toggle features and update configuration values in real time. Target specific user segments with different values. Roll out features gradually with percentage-based targeting.
Ad Slot Management
Define ad placements, manage mediation waterfall priorities, and track eCPM, fill rates, and ad revenue per user across multiple ad networks.

API Examples

All endpoints require an Authorization: Bearer YOUR_API_KEY header. The base URL for all requests is https://api-v2.appflow.ai.

GET/v1/paywalls

List all paywalls configured for an app. Returns paywall ID, name, status (draft, active, archived), associated products, and the current experiment assignment if any.

cURL
curl -X GET "https://api-v2.appflow.ai/v1/paywalls?app_id=app_xxx" \
  -H "Authorization: Bearer YOUR_API_KEY"
GET/v1/sdk/paywall/main_paywall

Fetch the full paywall configuration as rendered by the SDK. Returns the product list, layout definition, localized copy, and any active promotional offers. This is the endpoint the SDK calls at runtime.

cURL
curl -X GET "https://api-v2.appflow.ai/v1/sdk/paywall/main_paywall?app_id=app_xxx" \
  -H "Authorization: Bearer YOUR_API_KEY"
POST/v1/experiments

Create a new A/B experiment. Define the control and variant paywalls, traffic allocation, target metrics (conversion rate, revenue per user), and minimum sample size.

cURL
curl -X POST "https://api-v2.appflow.ai/v1/experiments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "app_id": "app_xxx",
    "name": "Paywall Price Test",
    "type": "ab",
    "control": {"paywall_id": "pw_001"},
    "variant": {"paywall_id": "pw_002"},
    "traffic_allocation": 0.5,
    "target_metric": "revenue_per_user"
  }'
POST/v1/push/campaigns

Create and schedule a push notification campaign. Define the audience segment, message content (title, body, deep link), and delivery schedule.

cURL
curl -X POST "https://api-v2.appflow.ai/v1/push/campaigns" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "app_id": "app_xxx",
    "name": "Win-back Campaign",
    "segment_id": "seg_churned_7d",
    "message": {
      "title": "We miss you!",
      "body": "Come back and get 20% off your first month.",
      "deep_link": "appflow://promo/winback"
    },
    "schedule": "2025-03-10T09:00:00Z"
  }'
GET/v1/configs

Retrieve all remote config entries for an app. Each entry includes its key, current value, value type, and targeting rules. Use PUT to update individual config values.

cURL
curl -X GET "https://api-v2.appflow.ai/v1/configs?app_id=app_xxx" \
  -H "Authorization: Bearer YOUR_API_KEY"

Related Guides