Create a workspace
Sign up and a workspace is provisioned for you with isolated workflows, credentials, and hook URLs.
Developers
Everything the studio does is plain JSON over HTTPS, and the same API powers the studio itself. Official Python and JavaScript/TypeScript SDKs install from PyPI and npm.
Quick start
Sign up and a workspace is provisioned for you with isolated workflows, credentials, and hook URLs.
Generate a workspace API key (flm_live_*) in settings. It is shown once and scoped to that workspace.
Add a trigger and steps in the studio. Test-run it with real sample data before activating anything.
Send a signed webhook to /hooks/{your-slug}/{path}, or call POST /api/workflows/{id}/run from your backend.
Code samples
curl -X POST https://your-gateway-host/api/workflows/YOUR_WORKFLOW_ID/trigger \ -H "Authorization: Bearer flm_live_your_key" { "id": "run-id", "workflowId": "YOUR_WORKFLOW_ID", "status": "queued" }
The gateway also serves this call at its short alias /run. Read the run back with GET /api/runs/{id}, list runs with GET /api/runs, and retry with POST /api/runs/{id}/retry.
# Python
pip install flowmation
# JavaScript/TypeScript
npm install flowmation
import { FlowMationClient } from 'flowmation';
const client = new FlowMationClient({
baseUrl: 'https://your-gateway-host',
apiKey: process.env.FLOWMATION_API_KEY,
});
const run = await client.workflows.trigger('YOUR_WORKFLOW_ID', {
reference: 'order-9182',
amount: 4500000,
});
# AI tools (MCP)
npx -y flowmation-mcp
Both SDKs install from public registries, with retries and typed errors built in. The Python package mirrors the same surface: from flowmation import FlowMationClient. Building with AI tools? flowmation-mcp connects Claude, Cursor, and other MCP clients to your workspace so agents can build workflows, trigger runs, and read run receipts; setup lives in its README on npm.
{
"to": "{{trigger.data.customer.email | trim | lower}}",
"subject": "Receipt for {{trigger.data.reference}}",
"amount": "{{trigger.amount_minor | format_money:KES}}",
"name": "{{trigger.data.customer.name | default:Customer}}",
"receipt": "{{steps.send_receipt.output}}"
}
Pipes: default, trim, lower, upper, format_money for exact currency exponents and e164 for country-aware phones. Never divide every amount by 100. Values come from the trigger payload and earlier steps.
curl -X POST https://your-gateway-host/hooks/lagos-ops/paystack \
-H "Content-Type: application/json" \
-H "x-paystack-signature: HEX_HMAC_SHA512_OF_BODY" \
-d '{"event":"charge.success","data":{"reference":"order-9182"}}'
Each workspace gets its own URL namespace, so two tenants can both use /hooks/paystack safely. Signatures are checked before any step runs.
Revenue operations REST surfaces
Authenticated operational routes remain workspace-scoped and role-gated. API credentials do not automatically inherit member access to financial records. Public status uses a separate bearer capability.
GET /api/payment-cases, POST /api/payment-cases and GET /api/payment-cases/{id} expose cases and bounded events. POST /api/payment-cases/{id}/cancel cancels an expectation.
POST /api/payment-cases/{id}/public-link accepts {"action":"rotate"}, disable or enable. Rotate increments the nonce and revokes old links. Disable stops access without changing the nonce; enable restores the current nonce, including its previously issued links. Owner, admin and operator members may act; viewers and API credentials cannot.
The receipt page reads /receipt#<token> and sends POST /api/public/payment-status with {"token":"fragment capability"} in its JSON body. Do not use GET or query parameters. The token is not part of the page request URL or Referer.
Responses, including errors, use Cache-Control: no-store and Referrer-Policy: no-referrer. A strict masked allowlist DTO omits internal payloads and credentials. Missing, disabled, rotated or invalid capabilities return a uniform unavailable response. Keep tokens out of logs and analytics.
GET /api/payment-exceptions lists bounded review items; POST /api/payment-exceptions/{id}/resolve supports match_case or dismiss. Matching locks the case and exception together; replay cannot double-credit. Dismissal never reverses money.
GET /api/suppressions is available to members including viewers. Owner, admin and operator members may POST a suppression; only owner/admin may DELETE /api/suppressions/{id}. Create and delete are audited. Recipient keys are channel-aware.
POST /api/billing/topup accepts {"packKey":"pack_500","currency":"KES"} for an owner, or a non-API super-admin. Other member roles and API credentials are rejected. The server catalog selects the exact amount; the signed successful Paystack billing event grants credits idempotently, not the browser redirect.
NGN, KES, GHS, ZAR, XOF and USD are fixed catalog references. Checkout only allows merchant-supported settlement currencies. Packs roll over and never expire; monthly included credits are spent first.
GET /api/solution-packs returns parameter schemas, defaults, regions and workflow previews. Owner/admin/operator members may POST /api/solution-packs/{id}/install with {"parameters":{"installStatus":"draft"}}; viewers inspect only.
The whole batch must fit maxWorkflows. Installation commits workflows and audit atomically, then returns workflows, generated webhook paths and a setup checklist. No credentials, callback relay or sample tenant data are provisioned.
The Go execcore policy layer enforces pinned outbound connector origins, exact minor-unit money normalization and the cryptographic approval_requests gate in both gateway and worker. Approved request plans cannot drift; Daraja refreshes only Timestamp and Password at execution without changing payment details.
Webhook verification
Every supported verification mode is applied to the raw request body before a workflow runs.
| Provider | Header | Scheme |
|---|---|---|
| Paystack | x-paystack-signature |
HMAC-SHA512 with your secret key |
| Flutterwave | verif-hash |
Secret hash comparison |
| Monnify | monnify-signature |
HMAC-SHA512 |
| Senviok | svk-signature |
HMAC-SHA256 |
| GitHub | x-hub-signature-256 |
HMAC-SHA256 |
wordpress (Bridge v2) | X-FlowMation-Signature: sha256=<hex> | HMAC-SHA256 of the raw body using the shared webhookSecret |
| Generic HMAC | configurable | HMAC-SHA256 of the body |
| Secret header | configurable | Constant-time header comparison |
fedapay | X-FEDAPAY-SIGNATURE: timestamp and rotating HMAC-SHA256 signatures over the raw body, 300-second window. Endpoint webhookSecret required. | Constant-time signature verification |
yoco | Standard Webhooks: webhook-id, webhook-timestamp and webhook-signature; decode the whsec_ base64 key. Delivery-ID dedupe and 300-second window. | Constant-time signature verification |
korapay / kora | x-korapay-signature: HMAC-SHA256 of raw data JSON. Falls back to the stored merchant secret. | Constant-time signature verification |
M-Pesa Daraja is not a direct signed webhook mode. Its callbacks require a trusted authenticated HTTPS relay that verifies Safaricom results and checkout identity, then forwards using the callback workflow secret. Daraja does not supply FlowMation HMAC headers; the installer does not provision this relay.
Native integrations and coordinated drafts
Configure the rails, install optional drafts and review every authentication boundary before activation.
Connect M-Pesa Daraja with an encrypted Consumer Key, Consumer Secret, Business ShortCode and Lipa Na M-Pesa Online Passkey. Choose Production https://api.safaricom.co.ke or Sandbox https://sandbox.safaricom.co.ke; OAuth and payment calls are pinned to these hosts. Saved secrets are never returned to the form.
Studio and Canvas support mpesa.stk_push (Send Lipa Na M-Pesa STK Push) and mpesa.stk_query (Query STK Push status). Push accepts Kenyan 07/01 local phones, +254 numbers or expressions, whole KES shillings, PayBill or BuyGoods, an accountReference of at most 12 ASCII characters, transactionDesc and optional partyB. With explicit minor units, the amount must be divisible by 100. Fractional shillings are rejected, never rounded. Query uses {{steps.<step>.body.CheckoutRequestID}}. Supervised Mode refreshes Timestamp and Password at execution without changing approved payment details.
Trusted authenticated HTTPS relay required. Daraja cannot attach FlowMation HMAC headers. Deploy a relay that authenticates Safaricom results, verifies checkout identity and forwards using the callback workflow secret. Never send unsigned public callback JSON directly into payment reconciliation. Packs do not deploy or provision this relay.
Blueprints includes optional packs for commerce, collections and agencies: invoice intake, split-transfer reconciliation and guarded follow-up; M-Pesa checkout, callback reconciliation and receipt; WooCommerce order-to-cash and unpaid-order follow-up. Cards show the exact workflow previews, regions and recommended plan. Nothing is seeded or installed automatically.
Authenticated GET /api/solution-packs returns pan_african_invoice_collections, east_africa_mpesa_checkout and woocommerce_order_to_cash. Configure clientPrefix, namePrefix, currency, reminderChannel, webhookBasePath, locale, dueDays, paymentProvider and installStatus from the returned schema; the M-Pesa pack also accepts callbackUrl and restricts currency to KES and receipt channels to WhatsApp or SMS. Blank optional namespaces and paths are generated by the server. Use the draft default until every workflow has been reviewed.
Owners, admins and operators may POST /api/solution-packs/{id}/install with a parameters object. Viewers may inspect but cannot install. The entire pack must fit maxWorkflows; a quota failure creates no workflows. Installation returns created workflows, generated webhook paths and a Post-Install Setup Checklist. Bind required Connections, verify webhook signatures and recipients, and review IANA quiet hours and caps before activation. Senviok BYO credentials take immediate priority and consume 0 platform credits. Platform messaging settings remain optional.
Bridge v2 retains WordPress post and comment events. WooCommerce hooks are opt-in: order_created, order_payment_complete, order_status_changed and order_refunded. Amounts use exact integer amount_minor values and currency exponents, not floating-point arithmetic. Enable the relevant order and payment event settings, use the generated events webhook path, and match the WordPress connection webhookSecret.
The wordpress webhook verifier checks X-FlowMation-Signature: sha256=<hex>, an HMAC-SHA256 over the raw request body using the shared secret. WooCommerce payment completion represents the full order total, not a bank split transfer. Do not reconcile both completion and provider callbacks for the same money. Refund and status events require an explicit review policy; they do not automatically refund or credit the ledger. Delivery retry and deduplication are best-effort, not exactly-once guarantees.
Architecture
Small enough to understand in an afternoon. Each service does one job and talks JSON.
The HTTP boundary: auth, workspaces, workflow management, inbound webhooks, billing, and the admin API.
Consumes the Redis run queue and executes steps with retries, backoff, timeouts, and metering.
Evaluates expressions, pipes and condition rules, including zero-float minor-unit money math, format_money currency exponents and 11-country e164 phone normalization.
Durable workflow, run, billing, payment and approval_requests records in PostgreSQL, with Redis for queues and dispatch. Gateway and worker share execcore policies for host-pinned outbound calls and fingerprinted approval plans.
Payment rails, verified settlement
Encrypted Connections, typed Studio actions and visual Canvas steps share the same pinned backend request builders. Choose the rail, verify settlement and reconcile exact amounts into Collections.
Create XOF, XAF or GNF transactions with fedapay.create_transaction, generate hosted checkout tokens with fedapay.create_payment_token, then check authoritative status with fedapay.verify_transaction. These currencies have zero decimals. Choose pinned Production or Sandbox in Connections; API keys and endpoint webhook secrets are separate.
X-FEDAPAY-SIGNATURE uses timestamp and signature parts, t=<seconds>,s=<hex>. HMAC-SHA256 covers timestamp, a dot and the raw body, with multiple rotation signatures and a 300-second replay window.
pawapay.initiate_deposit supports MTN MoMo, Airtel Money, Orange Money and Vodacom M-Pesa correspondents, such as MTN_MOMO_GHA, ORANGE_CIV and AIRTEL_OAPI_UGA. Use exact major-unit amount strings and E.164 phones or supported local country hints. Optional customerMessage and clientReferenceId require 4 to 22 characters.
An omitted depositId is deterministic for the workspace, run, step and loop iteration, keeping Supervised Mode approval-safe and retries stable. Verify successful status, identity, amount and currency through pawapay.verify_deposit or a trusted authenticated HTTPS relay before crediting payment_case. There is no native signed callback verifier here; no relay is provisioned automatically.
yoco.create_checkout uses ZAR minor units (integer cents) by default; explicit major units convert exactly, without rounding. yoco.get_checkout retrieves authoritative checkout status. Return URLs must be clean HTTPS URLs, not payment confirmations.
Standard Webhooks require webhook-id, webhook-timestamp and webhook-signature. The whsec_ secret is base64-decoded before HMAC verification. Delivery IDs are deduped and timestamps allow a 300-second replay window.
korapay.initialize_charge accepts an exact major-unit amount, currency, reference and required customer email. korapay.verify_charge checks authoritative status. NGN, KES, GHS, ZAR, XOF, XAF and USD use their explicit currency exponents; do not divide every amount by 100.
x-korapay-signature is HMAC-SHA256 over the exact raw top-level data object, without reordering JSON keys. Connect Catch-Hook storefronts such as Selar using signed/header webhook triggers through an authenticated source or relay; this is generic intake, not a native Selar connector. Never credit unsigned checkout redirects.
These connectors do not expand platform billing settlement currencies or install tenant data. Solution Pack options come from the server's schema; use individual connector steps for these rails where a pack does not expose them. Credentials and callback relays must be configured before activation.
Every endpoint, request shape, and error code is documented for customers, with SDKs that mirror it.