API & MCP
Bring your own AI.
Affilikit doesn't write your kit for you with a model we picked. Connect the assistant you already use: it writes the emails, posts and scripts, and Affilikit hosts them, keeps them current and shares them with your affiliates.
Make a key in your workspace under Connect your AI. A key works for one brand, on Affilikit only.
MCP server
Streamable HTTP, with the key in the Authorization header.
https://affilikit.com/mcp
get_workspace· Brand and kitsShows the brand this key belongs to, its kits (status, access, asset count, links) and the upload limits. Use it first to find a kit's id.
list_asset_kinds· Asset kindsLists the kinds of asset a kit can hold (banner, logo, email, social post, text ad, video script, article, talking points, file), the fields each takes in "data", and which need a file. Text may contain the placeholders {{link}}, {{coupon}} and {{name}}, which each affiliate fills in with their own.
get_kit· Read a kitReads one of the brand's kits in full: program facts, promotion rules, brand voice, access settings and every asset with its fields and file.
create_kit· Create a kitCreates a new kit as a draft (not visible to anyone until published). Needs a name; can also set a summary, access ("public" or "private"), program facts (commission, cookie window, payouts, sign-up link, affiliate contact, promo codes), promotion rules, an allow list for private kits, and brand voice notes.
update_kit· Edit a kitChanges a kit's settings. Send the kitId and only the fields to change. Changing access to public opens the kit to anyone with the link once it is live.
set_kit_status· Publish or unpublish a kitPublishes a kit ("live") so affiliates can open its link, or takes it down ("draft"). Confirm with the person before publishing.
add_asset· Add an assetAdds an asset to a kit. Pick a kind and fill its fields in "data" (see the asset kinds). Banners, logos and files need fileUrl: a public https link the server downloads once (PNG, JPEG, WebP, GIF or SVG for images; PDF or ZIP for files). Use {{link}}, {{coupon}} and {{name}} in text where each affiliate’s own details belong.
update_asset· Edit an assetChanges an asset: a new title, some of its fields (the rest stay), or a replacement file via fileUrl.
delete_asset· Delete an assetDeletes an asset and its file from a kit. This cannot be undone; confirm with the person first.
get_kit_usage· Kit usageViews, copies and downloads of a kit over the last 30 days, per asset, and for private kits the most active affiliates.
list_access_requests· Access requestsLists who asked to open a private kit, with status: unverified (email not confirmed yet), pending (waiting for the brand), approved or revoked.
decide_access_request· Approve or revoke accessApproves someone who confirmed their email (they are emailed a link to the kit), or revokes their access. Confirm with the person before deciding.
REST API
JSON over HTTPS. Answers are { "data": … } or { "error": { "code", "message" } }. 120 requests a minute per key.
| GET | /api/v1 | The brand behind the key, its kits and the upload limits |
| GET | /api/v1/kinds | Asset kinds and the fields each takes (no key needed) |
| GET | /api/v1/kits | Your kits |
| POST | /api/v1/kits | Create a kit (a draft) |
| GET | /api/v1/kits/:id | A kit with every asset |
| PATCH | /api/v1/kits/:id | Change only the fields sent |
| POST | /api/v1/kits/:id/status | Publish ("live") or unpublish ("draft") |
| POST | /api/v1/kits/:id/assets | Add an asset: JSON with fileUrl, or multipart with a file |
| PATCH | /api/v1/kits/:id/assets/:asset | Change an asset (fields not sent stay) |
| DELETE | /api/v1/kits/:id/assets/:asset | Delete an asset and its file |
| GET | /api/v1/kits/:id/usage | Views, copies and downloads over 30 days |
| GET | /api/v1/kits/:id/requests | Who asked to open a private kit |
| POST | /api/v1/kits/:id/requests/:request | Approve or revoke ({"decision": "approve" | "revoke"}) |
Create a kit
curl https://affilikit.com/api/v1/kits \
-H "Authorization: Bearer awk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Spring affiliate kit", "access": "public",
"facts": {"commission": "30% recurring", "cookie": "60 days"}}'Add an email
curl https://affilikit.com/api/v1/kits/KIT_ID/assets \
-H "Authorization: Bearer awk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"kind": "email", "title": "Launch email",
"data": {"subjects": ["Meet our new plan"], "body": "Hi! ... {{link}}"}}'Upload a banner
curl https://affilikit.com/api/v1/kits/KIT_ID/assets \ -H "Authorization: Bearer awk_YOUR_KEY" \ -F kind=banner -F title="Leaderboard" -F file=@banner-728x90.png
Asset kinds
Put each kind's fields in data. In any text, {{link}}, {{coupon}} and {{name}} are filled in with each affiliate's own details on the kit page.
Banner banner
Display ads in standard sizes. The size is read from the image.
File: required image (PNG, JPEG, WebP, GIF or SVG)
altstringnotestring
Logo logo
Logos and marks, with a note on which background each is for.
File: required image (PNG, JPEG, WebP, GIF or SVG)
notestring
Email email
Swipe emails affiliates send to their own list.
File: none
subjects* array of stringspreviewstringbody* string
Social post social
Ready-to-post copy for each network, with an optional image.
File: optional image
network* one of the options: x, linkedin, instagram, facebook, tiktok, threads, youtube, pinteresttext* string
Text ad text_ad
A headline and a line or two, for newsletters, link pages and search ads.
File: none
headline* stringdescription* stringdisplayUrlstring
Video script script
Scripts for YouTube, TikTok, Reels and podcasts, with the hook up front.
File: none
platform* one of the options: youtube, shorts, tiktok, reels, podcast, otherlengthstringhookstringscript* string
Article article
A review or blog post template.
File: none
body* markdown string
Talking points talking_points
Key facts, approved claims and answers to common questions.
File: none
points* array of strings
File file
A PDF or ZIP: media kit, product sheet, brand guide.
File: required file (PDF or ZIP)
notestring