Custom API

Integration

Custom API

Plandalf integrates with Custom API as a sdk platform.

What it does

Product surfaces

Where Custom API fits in the buying workflow

Integrations work best when the checkout surface, payment state, invoice record, and post-purchase automation all point at the same commercial object. These product screens show the Plandalf controls that should be configured before Custom API receives checkout, payment, tax, or workflow context.

The Numi offer editor showing layout, product, theme, automation, invoice, and settings controls.
The Numi checkout elements palette showing content, interactive, and selling blocks.
The Numi offer editor automation tab showing sequence controls beside the checkout canvas.

Purchase events can start follow-up

Custom API should fit into the work after checkout: fulfilment, records, CRM updates, support context, webhooks, and sequences.

The Numi offer editor showing hosted checkout mode controls.

Builder paths

Stack guides that use Custom API

Use these stack guides when a builder needs the whole path: sales surface, Plandalf offer, payment handoff, automation, fulfilment, records, and downstream integrations.

Overview

For teams that write their own code, Plandalf’s enrolment catch URL is a plain HTTP endpoint you can call from anywhere — your own backend, a serverless function, a scheduled job, a webhook receiver.

Not a third-party platform in the usual sense; it’s a catalog entry because the Emails tab renders “here’s how to enrol participants via your own code” the same way it renders Zapier or MailerLite instructions — one template, one code path, no special casing.

What Plandalf does here

  • Direct enrolment API — the catch URL on each enrolment sequence accepts a simple JSON body with email and ref. No SDK required.
  • Stable ref-keyed participants — repeat POSTs with the same ref re-resolve an existing participant rather than creating duplicates.

Setup templates

Drop-in implementations

Copy-paste setups for the most common ways to wire Custom API into Plandalf.

promo · automation

Enrol participants from your own code

If Zapier and your ESP's built-in automations don't cover the signal you want, POST directly to the promo's catch URL from anywhere — a server-side controller, a cron job, a form-submit handler, a Cloudflare Worker.

curl -X POST {{ promo.catch_url }} \
  -H 'Content-Type: application/json' \
  -d '{"email": "jane@example.com", "ref": "jane@example.com"}'

Notes:

  • The ref field is the participant's identifier — any stable string per person works (email, customer ID, UUID). Returning visitors with the same ref stay on the same deadline.
  • email is optional when ref is not itself an address; it's used for email-tagged merge fields in timer URLs.

Automation graph

Connecting Custom API

How Custom API participates in Plandalf sequences: what events it exposes upward, and what actions Plandalf can perform on it.

Triggers from Custom API

Events Plandalf can subscribe to through webhooks, API work, checkout state, payment context, and connected integrations.

custom-api.webhook
Fires when Custom API POSTs to a Plandalf webhook URL — use for anything not covered by a native trigger.

Actions on Custom API

Things Plandalf sequences can do after checkout, payment, invoice, customer, or deadline events.

custom-api.custom_api_call
Hit any Custom API REST endpoint with a templated payload.
Example sequence
trigger: plandalf.checkout.completed
actions:
  - custom-api.custom_api_call:
      endpoint: /v1/event
      payload:
        email: ${customer.email}
        plan: ${product_slug}

Integration methods

How Custom API connects to Plandalf

Each method below is the minimum viable setup. Pick the one closest to how you already use Custom API with checkout, payments, invoices, webhooks, API work, SDK checkout, and integrations.

  1. Method 1

    REST API webhook

    For anything not covered by a native trigger, configure a Custom API webhook to POST to Plandalf. The payload is forwarded into the sequence as `${event}`.

    curl -X POST https://api.plandalf.com/v1/webhooks/custom-api \
      -H "Authorization: Bearer $PLANDALF_API_KEY" \
      -H "Content-Type: application/json" \
      -d @event.json
Official Custom API docs and sign-up: plandalf.dev/docs/promos/api

FAQ

Common questions about the Custom API integration

Do I need a paid plan to use Custom API with Plandalf?

Plandalf itself is free to connect to Custom API. You only need a Custom API account that allows API access, which is almost every paid plan.

How long does setup take?

Under 10 minutes. OAuth (or paste an API key), pick the lists/segments you care about, and you're live. No code unless you want it.

Can I disconnect Custom API later without losing data?

Yes. Disconnecting only revokes the credentials — historical events Plandalf fired stay in your sequence logs, and Custom API's own records are untouched. You can reconnect any time and resume from the last seen event.

Does Plandalf store Custom API data?

Plandalf stores the minimum IDs needed to address a record in Custom API plus a log of events Plandalf fired. Source-of-truth data stays in Custom API.

What if my sdk need isn't covered by the actions or triggers listed here?

Use the generic `custom-api.custom_api_call` action or the inbound `custom-api.webhook` trigger. Anything Custom API's REST API can do, a Plandalf sequence can drive.

Is there a usage limit?

Plandalf respects Custom API's API rate limits and backs off on 429s. For very high-volume use cases, ask about a dedicated worker pool.

Where do I find Custom API's own documentation?

Custom API's homepage at https://plandalf.dev/docs/promos/api links to their developer docs. For Plandalf-side questions about the Custom API integration, see the Plandalf docs.

Feature detail