IMPACTkituwa

Home / Docs

API & MCP

Every campaign and link is readable through one JSON API. Writing needs a scoped Bearer key created on the server; the public site never exposes one.

Authentication

Send Authorization: Bearer ik_…. Keys carry read or read,write. The allowance is 1,000 calls per key per month.

Endpoints

MethodPathWhat it does
GET/api/v1/healthLiveness, no key.
GET/api/v1/whoamiKey name and scopes.
GET/api/v1/programsApproved programs.
GET/api/v1/programs/<slug>One program and its campaigns.
GET/api/v1/campaignsCampaign list.
GET/api/v1/campaigns/<slug>Campaign with every link.
GET/api/v1/links?campaign=spaceshipFlat link list.
POST/api/v1/linksAdd one link or code.
POST/api/v1/importBulk-add a pasted batch.
PATCH/api/v1/links/<id>Change label, URL, code, notes.
DELETE/api/v1/links/<id>Remove a link.

Paste a batch

curl -sS https://impact.kituwa.com/api/v1/import \
  -H "Authorization: Bearer $IMPACT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"campaign":"spaceship","links":[
        {"label":"Launch offer","url":"https://…","code":"SPACE10"},
        {"label":"Homepage banner","url":"https://…","kind":"creative"}
      ]}'

kind is link, code, creative, deal or note. Up to 500 links per call.

MCP

The MCP server exposes the same data as eight tools and runs on the same host, published at https://impact.kituwa.com/mcp (streamable HTTP, Bearer auth). Its card is at /.well-known/mcp.json.

{
  "mcp": {
    "impact-kituwa": {
      "type": "remote",
      "url": "https://impact.kituwa.com/mcp",
      "headers": { "Authorization": "Bearer ik_…" }
    }
  }
}

Tools: list_programs, get_program, list_campaigns, get_campaign, list_links, search_links, add_link, import_links.

Sign-in contract

The machine-readable contract is /.well-known/auth-methods.json: passkey first, then MetaMask, Phantom and Backpack, then email/password, then a one-time backup code. Google sign-in and private-key login are not offered.