Documentation
The Snip.link API
The Snip.link API is one HTTPS host, https://snip.link, under /v1. Every endpoint returns JSON and every error uses the same shape, so you can write one error handler and be done. Short links, their QR codes and their analytics are free on every plan, the free one included; the only metered call is the QR code generator for content that is not a link.
1. Create a key
Every account gets keys, the free plan included. Sign up, then open API keys and create one. The key is shown once. Store it as an environment variable, never in source control.
2. Send it with every request
Use the Authorization header. If your client cannot set it, send the same value in X-API-Key instead.
Authorization: Bearer snip_live_4Qm7xB2vTnK9pLdW3sHc8YrJf6QaZ1eU5oM3. Shorten, print, change, measure
Four calls cover the whole life of a printed code:
# 1. Shorten a link into your account
curl "https://snip.link/v1/links" \
-X POST \
-H "Authorization: Bearer $SNIP_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/menus/spring-2026",
"ending": "spring-menu"
}'
# 2. Print its QR code (free, no key): the qr_png_url from the answer
curl "https://snip.link/qr.png?data=https%3A%2F%2Fsnip.link%2Fspring-menu%3Fqr%3D1&size=1024" \
-o spring-menu.png
# 3. Later, point the printed code somewhere new
curl "https://snip.link/v1/links/spring-menu" \
-X PATCH \
-H "Authorization: Bearer $SNIP_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/menus/summer-2026"
}'
# 4. See how it is doing
curl "https://snip.link/v1/links/spring-menu/stats?days=30" \
-H "Authorization: Bearer $SNIP_KEY"Every response carries X-Request-Id; log it, it is the fastest way to get an answer about a specific call. The OpenAPI 3.1 document this page is generated from produces a typed client in most languages.
Guides
- Links: How short links work in the API: ids and endings, destination screening, the free QR code image URLs, switching links off and plan allowances.
- Saved pages and any format: Save the page a link points to in every format, read it at the link with an ending (.md, .txt, .jpg, .pdf), wait for it in one call, reuse recent copies, keep copies private and check them by fingerprint.
- Sharing files: Send a file with curl, the API or MCP and get a short link that shows it, serves it at its own extension and converts it at any other (.pdf, .png, .md, .json). Sizes, storage and what is refused.
- Link rules: Rules that send a link's visits to different pages by device, system, browser, country, region, language, time, day, dates, QR scan or click, referring site, a link parameter or a share of visitors. Free on every plan.
- QR code images: QR code images from a URL with no key and no sign-up: PNG or SVG, colours, dot style, error correction and size, and a Markdown line for showing a code in a chat.
- Analytics: What every click records, the per-link and account-wide stats routes, date ranges by plan, and click exports as JSON pages or CSV.
- Errors: The JSON error shape and every status and code the API returns, with what to do about each.
- Rate limits and plans: Requests per second per key, plan limits side by side, which calls cost credits and the response headers that report them.
Every endpoint has its own reference page in the sidebar, with parameters, an example request in curl, JavaScript and Python, the response shape and its errors.
Model Context Protocol
AI assistants do all of this over MCP with the same key, limits and plan: https://snip.link/mcp is open (QR codes and short links with no sign-in), and a key in the Authorization header or a sign-in through https://snip.link/mcp/account unlocks the account tools: list_links, update_link, delete_link, get_link_stats and get_account_stats. Set it up in Claude, ChatGPT, Cursor and other clients.
/llms.txt describes the product and its API in plain text for agents that prefer to read rather than introspect, and /openapi.json is the machine-readable spec this page is generated from.
Schemas
The spec defines 76 schemas: LinkListResponse, Link, LinkRoute, RouteCondition, LinkPreview, QrStyle, Watch, File, Error, LinkCreated, Snapshot, LinkCreate, LinkBulkResponse, LinkBulkRow, LinkBulkCreate, LinkResponse, LinkPatch, Deleted, EndingAvailability, ClaimedLinks, ClaimLinks, LinkDefaultsResponse, LinkDefaults, LinkDefaultsInput, LinkStats, AccountStats, ClicksResponse, ClickRow, SnapshotList, SnapshotResponse, SnapshotCreate, DropCreated, Upload, UploadPart, UploadFinished, UploadCancelled, DomainList, Domain, DomainResponse, DomainCreate, DomainPatch, CollectionList, Collection, CollectionWithLinks, CollectionCreate, CollectionPatch, CollectionLinks, CollectionLinkAdded, CollectionLinkAdd, CollectionLinkRemoved, LibraryItem, WebhookList, Webhook, WebhookWithSecret, WebhookCreate, WebhookDetail, WebhookDelivery, WebhookResponse, WebhookPatch, WebhookTestResult, MemberList, Member, MemberResponse, MemberInvite, MemberRole, ActivityPage, Activity, QrCodeResponse, QrCodeResult, RunMeta, QrCodeInput, Ledger, AccountExport, UsageResponse, MeResponse, ConversionCatalog. Generate a typed client from /openapi.json rather than hand writing types.

