CreatorLift API
A REST API over everything CreatorLift measures — campaigns, creators, tracking links and promo codes, sales and refunds, revenue and ROI, payouts and deliverables — and signed webhooks when sales, refunds and deliverables change. Base URL: https://creatorlift.mnbresearch.com/api/v1. Machine-readable reference: /api/v1/openapi.json (OpenAPI 3.1).
Keys
Workspace owners and admins create keys in Settings → API. A key belongs to exactly one workspace and can never read another. It is shown once; we store only a peppered one-way verifier. Send it as Authorization: Bearer cl_live_…. A personal key stops working when its creator stops being an owner or admin; a service account key belongs to a calling product (for example abrobot-crm) and is revoked independently. Rotation can keep the old secret working for up to seven days; revocation is immediate. Keys are rate-limited per key (60–600 requests a minute, chosen at creation) and answer 429 with Retry-After beyond it.
Scopes
campaigns:read— List and read campaigns.campaigns:write— Create campaigns, edit them and archive them.creators:read— List and read creators, including the email you stored.creators:write— Create and edit creators. Plan creator limits still apply.assignments:read— Read which creator is on which campaign, with tracking links and promo codes.assignments:write— Put a creator on a campaign, which mints their tracking link and promo code.conversions:read— List and read attributed and unattributed sales and refunds.conversions:write— Record sales and refunds. These change revenue, ROI and commission owed.metrics:read— Read revenue, spend, ROI and clicks — the same figures as the dashboard.payouts:read— Read the payout ledger.deliverables:read— Read content deliverables and their status.deliverables:write— Change a deliverable's status, due date, post URL or notes.
Examples
Check the key: who am I, what can I do
curl -sS "https://creatorlift.mnbresearch.com/api/v1/integration/status" \ -H "Authorization: Bearer $CREATORLIFT_API_KEY"
Headline figures for September (same numbers as the dashboard)
curl -sS "https://creatorlift.mnbresearch.com/api/v1/metrics/summary?from=2026-09-01&to=2026-09-30" \ -H "Authorization: Bearer $CREATORLIFT_API_KEY"
Revenue, cost and ROI per creator, last 30 days
curl -sS "https://creatorlift.mnbresearch.com/api/v1/metrics/creators?days=30" \ -H "Authorization: Bearer $CREATORLIFT_API_KEY"
Attributed sales, newest first, 50 per page
curl -sS "https://creatorlift.mnbresearch.com/api/v1/conversions?attributed=true&limit=50" \ -H "Authorization: Bearer $CREATORLIFT_API_KEY"
Follow next_cursor until it is null.
Record a sale — attributed by promo code, safe to retry
curl -sS -X POST "https://creatorlift.mnbresearch.com/api/v1/conversions" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Idempotency-Key: order-10432" \
-H "Content-Type: application/json" \
-d '{"order_id":"10432","amount":129.5,"currency":"USD","code":"RIYA10","occurred_at":"2026-10-13T09:30:00Z"}'Re-sending the same order_id returns the recorded sale (200) instead of a second one.
Refund part of it
curl -sS -X POST "https://creatorlift.mnbresearch.com/api/v1/conversions" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"order_id":"10432","kind":"refund","refund_id":"rf-1","amount":29.5}'Create a creator by your own id (upsert)
curl -sS -X POST "https://creatorlift.mnbresearch.com/api/v1/creators" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Riya Sharma","handle":"@riya","platform":"instagram","external_ref":"crm-4471"}'Posting the same external_ref again updates that creator and answers 200.
Put the creator on a campaign — mints their tracking link and promo code
curl -sS -X POST "https://creatorlift.mnbresearch.com/api/v1/assignments" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"campaign_id":"8f14e45f-ceea-467a-9575-1b2c3d4e5f60","creator_id":"45c48cce-2e2d-4fbd-8a7e-3b4c5d6e7f80","fee":500,"commission_rate":10}'Archive a campaign
curl -sS -X PATCH "https://creatorlift.mnbresearch.com/api/v1/campaigns/8f14e45f-ceea-467a-9575-1b2c3d4e5f60" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"archived"}'Mark a deliverable posted
curl -sS -X PATCH "https://creatorlift.mnbresearch.com/api/v1/deliverables/c9f0f895-fb98-4b91-8c1d-2e3f4a5b6c7d" \
-H "Authorization: Bearer $CREATORLIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"posted","post_url":"https://www.instagram.com/p/Cx123/"}'Errors
Every error has one shape: {"error":{"code":"…","message":"…","field":"…"}}. Branch on code; message is for people and may be reworded. 400 invalid input (the field is named; unknown fields are refused, not ignored), 401 missing/invalid/revoked/expired key, 403 missing scope, inactive workspace or plan limit, 404 not in this workspace (another workspace's ids also answer 404), 409 conflict, 413 body over 64 KB, 422 refused, 429 rate limited.
Money and dates
Amounts are numbers in major units of the row's currency, never converted. Metric endpoints compute exactly what the dashboard shows for the same window and return a currencies block; a total is only meaningful when mixed is false. Date windows are from/to (YYYY-MM-DD, inclusive, UTC) or days=N; a reversed or unreadable range is refused rather than guessed.
Webhooks
Add an https endpoint in Settings → API and choose events. Private, loopback, link-local and cloud-metadata addresses are refused when you save and again, after resolving DNS, on every send. Events:
conversion.created— A sale was recorded — from any source: manual entry, CSV import, Shopify, Stripe, the universal sales endpoint or this API.conversion.reversed— A refund or cancellation was recorded against a sale. The amount is negative.conversion.attribution_changed— A sale was credited to a different creator, or detached from one. Carries the previous assignment id.deliverable.status_changed— A content deliverable moved between planned, brief sent, in progress, submitted, approved and posted.conversion.flagged— A sale was flagged for review — a possible leaked code, self-referral, click burst or bot click, or a click outside the attribution window or an ambiguous match that was not credited. Carries the flag type and its evidence (never buyer details).
Each delivery is a JSON envelope {id, type, created_at, api_version, workspace_id, data} signed with CreatorLift-Signature: t=…,v1=… — HMAC-SHA256 of `${t}.${raw_body}` with your endpoint secret. Refuse anything older than 5 minutes, and store id to ignore repeats: delivery is at-least-once. Answer 2xx within 10 seconds; anything else is retried up to 9 attempts, backing off from 60 seconds to a day. After 10 consecutive failures lasting more than a day the endpoint is switched off and the workspace owner is emailed.
Verify in Node
import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody: the exact string received. Do NOT JSON.parse and re-stringify first.
export function verifyCreatorLift(rawBody, header, secret, toleranceSeconds = 300) {
const t = Number((header.match(/(?:^|,)t=(\d+)/) || [])[1]);
const sigs = [...header.matchAll(/(?:^|,)v1=([0-9a-f]{64})/g)].map((m) => m[1]);
if (!t || sigs.length === 0) return false;
if (Math.abs(Date.now() / 1000 - t) > toleranceSeconds) return false; // replay window
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest();
return sigs.some((s) => {
const got = Buffer.from(s, "hex");
return got.length === expected.length && timingSafeEqual(got, expected);
});
}Verify in Python
import hmac, hashlib, re, time
def verify_creatorlift(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
m = re.search(r"(?:^|,)t=(\d+)", header)
sigs = re.findall(r"(?:^|,)v1=([0-9a-f]{64})", header)
if not m or not sigs:
return False
t = int(m.group(1))
if abs(time.time() - t) > tolerance: # replay window
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return any(hmac.compare_digest(expected, s) for s in sigs)On this deployment there is one daily scheduler, so a due retry is sent on the next API request from the workspace, when someone presses “Deliver pending now”, or by the daily sweep — whichever is first. Events caused by API writes are sent within seconds.
Versioning
This is v1. Within v1 we only add: new endpoints, new optional request fields, new response fields, new error codes and new event types — so ignore fields you do not know. Removing or renaming anything, or changing a meaning, ships as /api/v2 with at least six months of overlap and notice to every workspace with an active key. The full integration guide, including data mappings and failure behaviour, is INTEGRATIONS.md in the repository; contact us for a copy.