Developer API
Create tracked short links and QR codes from your own apps and scripts, and change where a printed QR code points without reprinting it. Two ways in: a free MCP server at https://sharecut.site/mcp — QR generation needs no API key and no account — and a REST API, part of the Business plan.
Authentication
Every request is authenticated with an API key. Create and manage keys from your Profile (API & MCP tab) — you need the Business plan. A key is shown once on creation; store it securely.
Send it as a Bearer token (or an X-API-Key header):
Authorization: Bearer sc_live_xxxxxxxxxxxxxxxxxxxxxxxxBase URL: https://sharecut.site/api/v1
Create a short link
POST /api/v1/links — returns a tracked short link (with click analytics) plus its QR as SVG.
Body: url (required), customCode, title, description, utm (object: source, medium, campaign, term, content) — all optional.
Send links (an array, up to 25) instead of url to create several at once; each entry succeeds or fails on its own.
curl -X POST https://sharecut.site/api/v1/links \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/very/long/link","customCode":"launch"}'Response:
{
"shortCode": "launch",
"shortUrl": "https://sharecut.site/launch",
"originalUrl": "https://example.com/very/long/link",
"qr": { "svg": "<svg ...>" }
}Change where a link points
PATCH /api/v1/links/{ref} — ref is the short code or the link id. A ShareCut QR code encodes the short link, not the destination, so changing the destination redirects every copy already printed, shared or stuck on a wall. The short code, the QR artwork and the click history all stay as they are.
Body: any of url, title, description, utm. The new destination is re-screened with Google Safe Browsing.
curl -X PATCH https://sharecut.site/api/v1/links/launch \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/autumn-campaign"}'The short code itself cannot be changed here, on purpose: it is the part already printed. Rename it from the Link Studio if you really need to, and reprint.
List, read and delete links
GET /api/v1/links— your links with click counts. Query:limit,offset,type(short, linktree, menu),q,sort(created or clicks).GET /api/v1/links/{ref}— one link.DELETE /api/v1/links/{ref}— permanent: every QR pointing at it stops working and the short code is released.
curl "https://sharecut.site/api/v1/links?sort=clicks&limit=5" \
-H "Authorization: Bearer YOUR_KEY"A link owned by another account answers 404, never 403 — the API cannot be used to find out which short codes exist.
Analytics and QR code of a link
GET /api/v1/links/{ref}/analytics — total clicks, a daily series (days, default 30) and breakdowns by country, device, operating system, browser and referrer.
GET /api/v1/links/{ref}/qr — the QR code, ready to print. Returns the artwork saved on the link (frames, colours, logo) when there is one, otherwise a plain code. Query: style, format, color.
curl "https://sharecut.site/api/v1/links/launch/analytics?days=7" \
-H "Authorization: Bearer YOUR_KEY"Account and quota
GET /api/v1/account — the plan behind the key, what it entitles, how many calls are left this month and when the counter resets, plus how many links you hold and their total clicks. Worth reading before a bulk run.
Create a QR code
POST /api/v1/qr — returns a static QR code for any URL or text.
Body: data (required), format (optional: svg default, or png), color (optional hex).
curl -X POST https://sharecut.site/api/v1/qr \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"data":"https://example.com","format":"svg"}'For an editable, trackable QR, create a link first and encode its shortUrl.
Rate limits & errors
- 401 — missing, malformed or revoked API key.
- 403 — the key’s account is not on the Business plan.
- 429 — monthly quota exceeded.
- 400 — invalid input (bad URL, missing field).
Errors return JSON: { "error": "..." }.
MCP server (AI agents) — free tier
ShareCut runs a remote Model Context Protocol server, so an AI assistant can create links and QR codes for you directly. There is nothing to install: point your client at the URL below.
claude mcp add --transport http sharecut https://sharecut.site/mcpWorks with any MCP client (Claude Code, Claude Desktop, Cursor). For clients configured by file, use the endpoint https://sharecut.site/mcp with the Streamable HTTP transport.
Free — no key, no account
create_qr— any URL or text as a QR code (SVG, optionally PNG). Static: the destination is fixed once printed.expand_short_link— where a ShareCut link really goes, and how often it has been used.check_short_code— whether a custom code is still available.
With an API key — Business
update_link— re-point a printed QR code at a new destination, keeping the code and the clicks.shorten_url,shorten_urls_bulk— create one link, or up to 25.list_links,get_link,delete_link— manage what you have.get_link_analytics,get_link_qr— clicks by country, device and referrer; artwork to print.get_account— plan, entitlements and quota left this month.
Twelve tools in all. They use the same quota as the REST API, because each one calls it.
Pass your key as an Authorization: Bearer header. Machine-readable descriptions live at /openapi.json and /.well-known/mcp/server-card.json.
Ready to build?
Get your API keys from your Profile on the Business plan.