Help centre › Your team

Using the DappFactory API

On Enterprise, your own systems can read your projects, members, entries, claims, bonuses and earnings with one key — the same data as the console's lists and exports.

API access is part of the Enterprise plan. It is read-only: it reads the same records as the console's lists and exports, for your business only.

Make a key

Open Settings → API access and press Create key. The whole key — it starts dfk_live_ — is shown once, right then. Copy it into your system's secrets. We keep only a fingerprint of it, so it can't be shown again; afterwards the card shows its first characters.

  • Rotate key makes a new key and stops the old one at once.
  • Turn off stops the key without making a new one.
  • A call acts as the teammate who made the key. If they leave your team the key stops working — rotate it from another account.

Call the API

Every call is a GET with the key in the Authorization header:

curl https://api.dappfactory.io/api/public/v1/projects \
  -H "Authorization: Bearer dfk_live_…"

Every answer has the same envelope: { "ok": true, "data": … }, or { "ok": false, "error": { "status": 403, "message": "…" } }.

PathWhat it returns
/projectsEvery project of your business
/projects/{projectId}/membersA project's members (farmers, influencers, affiliates)
/entriesCompleted tasks and the points they earned
/claimsPoints converted into your token, with each payout's status
/bonusesBonus offers your farmers claimed
/earningsCommission earnings

/entries, /claims, /bonuses and /earnings cover every project; add ?projectId=… for one. Lists are paged: ?page=1&pageSize=100 (100 at most), and each answer carries total, page and pageSize. The other filters are the console's: search, from and to dates where the list has them, and status on claims.

Token amounts are in the token's smallest units, as the console stores them.

Limits and refusals

  • 120 calls a minute per key (DappFactory may set a different limit for your business); past that you get 429 until the minute is up.
  • 401 — the key is missing, wrong, rotated or turned off.
  • 403 — the key can't be used right now, and the message says why: your plan no longer includes the API (a lapsed subscription counts — the key works again when you renew), the teammate who made the key left the team, DappFactory switched the API off for your business or locked it while looking into a security concern, or your business is suspended. It also comes back when your business hasn't been allowed that endpoint.
  • 404 — a project that isn't yours.

Webhooks

Webhooks tell your systems when something happens, so they don't have to keep asking. Set one up in Settings → Webhooks (Enterprise):

  • Endpoint URL — an https address on the internet. To reach a CRM or work tool without writing code, paste a Zapier or Make "catch hook" URL.
  • Events — Member joined a project, Task completed, Bonus claimed, and Claim paid out where your projects use tokens. Only events after you save are sent, each once.
  • Signing secret — shown once, when you first save; Rotate makes a new one. Every call carries X-DappFactory-Signature: the hex HMAC-SHA256 of the exact body with your secret. Check it and refuse anything that doesn't match.

Each call is a POST with a JSON body: { "id", "type", "occurredAt", "business": { "id", "name" }, "data": { … } }, and an X-DappFactory-Event header naming the event. Answer with any 2xx within 10 seconds.

If your endpoint doesn't answer 2xx, we try again after 1 minute, 10 minutes, 1 hour, 4 hours and 12 hours. After the sixth failure, deliveries pause and the team gets an alert; fix the endpoint and press Save to resume. Send test event sends a signed ping straight away, and the card lists your last 20 deliveries.

Still stuck? Contact support.