Skip to content
Read API · Webhooks · MCP

Flendy for your own tools

Pull views, spend and creators into your budget and KPI tools, hear about launches and milestones as they happen, or ask Claude.

Get a key

An owner or admin makes keys in Settings › API. Name each key after the tool that uses it; we show it once, so copy it into your tool's secret settings straight away. A key reads one company (every brand in it) and can't change anything. Revoke a key there and calls with it stop at once.

Your first call
curl https://flendy.co/api/v1/campaigns?status=live \
  -H "Authorization: Bearer fl_live_your_key"

How answers look

  • Money is { "amount_minor": 125000000, "currency": "NGN", "formatted": "₦1,250,000" }: whole minor units (kobo, pesewas, cents) and the ISO currency. Each brand works in its own currency; we never add currencies together.
  • Views: verified_views are the views counted toward the target and paid for (the field keeps its name); total_views are all the views the platform shows. When there isn't enough yet to judge, a number comes back with "state": "too_early" instead of a guess.
  • Dates are ISO 8601 in UTC.
  • Lists are { "data": [...], "has_more": true, "next_cursor": "…" }. Pass cursor to get the next page and limit (1 to 200, default 50).
  • Errors are { "error": { "type": "not_found", "message": "…", "param": "brand_id" } } with the HTTP status: 400 invalid_request, 401 unauthorized, 404 not_found, 405 method_not_allowed, 429 rate_limited, 500 internal. An id from another company is always a 404.
  • Limits: 120 calls a minute per key. Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 also has Retry-After in seconds.
  • Privacy: creators come with who they are and their public numbers, never their email, phone or WhatsApp.

Endpoints

All under https://flendy.co/api, all GET.

  • GET /v1/workspace Your company: name, kind, country and how many brands.
  • GET /v1/brands Every brand in the company, with its country and currency.
  • GET /v1/campaigns Campaigns, newest first. Filters: brand_id, status (comma-separated), created_after, created_before, updated_since.
  • GET /v1/campaigns/{id} One campaign.
  • GET /v1/campaigns/{id}/kpis Views counted and paid for, all views on the posts, spend, cost per 1,000 views, engagement, posts live, creators and budget left: the numbers on the results page.
  • GET /v1/deals Creator deals with who the creator is, the status and the fee. Filters: brand_id, campaign_id, status, updated_since.
  • GET /v1/posts Campaign posts with the URL, platform, views counted and all views. Filters: brand_id, campaign_id, posted_after.
  • GET /v1/spend Budget locked, spent, processing fees and refunds by brand, campaign and month. Filters: brand_id, month (2026-11).
  • GET /v1/creators Creators your company has worked with or saved to a list, with their accounts and public numbers.
A campaign's results
curl https://flendy.co/api/v1/campaigns/7f0c…/kpis -H "Authorization: Bearer $FLENDY_KEY"

{
  "object": "campaign_kpis",
  "verified_views": 412300,
  "total_views": 588900,
  "target_views": 1000000,
  "spend": { "amount_minor": 618450000, "currency": "NGN", "formatted": "₦6,184,500" },
  "cost_per_1000_verified_views": { "value": { "amount_minor": 1500000, "currency": "NGN", "formatted": "₦15,000" }, "state": "ok" },
  "engagement_rate": { "value": 0.071, "state": "ok" },
  "posts_live": 38,
  "creators": 21,
  "budget_left": { "amount_minor": 881550000, "currency": "NGN", "formatted": "₦8,815,500" }
}
Every page of deals
cursor=""
while :; do
  page=$(curl -s "https://flendy.co/api/v1/deals?limit=200&cursor=$cursor" -H "Authorization: Bearer $FLENDY_KEY")
  echo "$page" | jq -c '.data[]'
  [ "$(echo "$page" | jq -r .has_more)" = "true" ] || break
  cursor=$(echo "$page" | jq -r .next_cursor)
done

Webhooks

Add an https endpoint in Settings › Webhooks and pick the events it hears. We POST JSON to it within about a minute of each event:

  • campaign.launched A campaign goes live and its budget is locked.
  • campaign.completed A campaign ends; unspent budget returns to the wallet.
  • deal.approved Your team approves a creator's delivery and the fee is released.
  • post.live A creator's post is found and tracking starts.
  • views.milestone A post's views pass a milestone (1K, 5K, 10K …).
  • budget.threshold A live campaign has spent 80% of its budget.
  • report.ready A weekly, final or scheduled report is ready.
What arrives
POST /your/endpoint
Flendy-Event: campaign.launched
Flendy-Delivery: 5b1d…
Flendy-Signature: t=1793520000,v1=6f1c…

{
  "id": "evt_0c4e…",
  "type": "campaign.launched",
  "created_at": "2026-11-01T09:00:00.000Z",
  "workspace_id": "…",
  "data": { "campaign": { "object": "campaign", "id": "…", "title": "Glow Harmattan", "budget": { … } } }
}

Answer with any 2xx within 10 seconds. Anything else (or a redirect: we don't follow them) is retried up to 8 times over about 12 hours, waiting 1, 3, 9, 27 and 81 minutes, then 4 and 6 hours. The same event can arrive twice: use id to ignore repeats. After 50 failures in a row we switch the endpoint off and tell you in Settings. Send test sends one now and shows what your endpoint answered; the delivery log keeps the last attempts, with Retry for any that failed.

Check the signature

The signing secret (whsec_…) is shown once when you add the endpoint. Compute an HMAC-SHA256 of <t>.<raw body> with it, compare with v1 in constant time, and refuse a t more than five minutes old.

Node
import crypto from "node:crypto";

export function fromFlendy(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(parts.v1 ?? "");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
Python
import hmac, hashlib, time

def from_flendy(raw_body: bytes, header: str, secret: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t = int(parts.get("t", "0"))
    if abs(time.time() - t) > 300:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts.get("v1", ""))

Connect Claude (MCP)

Flendy is an MCP server at https://flendy.co/api/mcp (Streamable HTTP). Connect with an API key, or on Claude.ai by signing in with Flendy. Claude can then answer questions like “which campaigns are behind on views this month?” or “find Lagos food creators for Mama's Kitchen” from your live numbers. Read-only tools:

  • list_campaigns your campaigns, filtered by brand or status
  • campaign_results one campaign's KPIs
  • spend_summary money by brand, campaign and month
  • find_creators search creators in plain words for one of your brands
  • creator_profile_summary one creator: accounts, track record, past brands, your deals with them
Claude Code
claude mcp add --transport http flendy https://flendy.co/api/mcp \
  --header "Authorization: Bearer fl_live_your_key"
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "flendy": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://flendy.co/api/mcp", "--header", "Authorization:Bearer ${FLENDY_KEY}"],
      "env": { "FLENDY_KEY": "fl_live_your_key" }
    }
  }
}

Claude.ai

On Claude.ai, add Flendy as a custom connector and sign in with your Flendy account. No key needed:

  1. In Claude.ai, open Settings › Connectors and choose Add custom connector.
  2. Name it Flendy and set the URL to https://flendy.co/api/mcp.
  3. Choose Connect, sign in to Flendy, pick the company Claude should read and choose Connect.

Connecting needs an owner, admin, finance or campaign manager seat that covers every brand, because Claude will read every brand's results and spend. Access is read-only, lasts until you disconnect, and stops if the person who connected it leaves the company. Owners and admins see every connected app in Settings › API and can disconnect any of them.

Claude Desktop and Claude Code can use the same sign-in: add the URL without a key header. Or use a key as above; make a separate one for Claude so you can revoke it on its own.

Something missing for your tool? Email hello@flendy.co.