
Developers
REST API
A URL shortening API for creating short links, reading their clicks and making QR codes from your own code. Create API keys under Dashboard → Settings. Available on Pro and Enterprise plans. Rate limit: 60 requests per minute.
Authentication
Authorization: Bearer nx_your_api_keyCreate a link
curl -X POST https://minisnip.com/api/v1/links \ -H "Authorization: Bearer nx_..." \ -H "Content-Type: application/json" \ -d '{ "originalUrl": "https://example.com/launch", "shortCode": "launch", "title": "Launch post", "utmSource": "twitter", "iosUrl": "https://apps.apple.com/app/id123", "geoTargets": "DE=https://example.de\nUS=https://example.com" }'
Responds with 201 and the link object including shortUrl. Only originalUrl is required.
Other fields: shortCode, domainId (a verified custom domain), title, notes, tags, password, activeFrom, expiresAt, expiredUrl, maxClicks, iosUrl, androidUrl, geoTargets, allowedCountries, allowedReferrers, blockedUrl, abVariants, ogTitle, ogDescription, ogImage, publicStats, openInApp (phones open YouTube, Instagram, Spotify, Amazon and other app links in the app), trackConversions (see Conversions below), pixelIds and utmSource, utmMedium, utmCampaign, utmTerm, utmContent. folder files the link in a folder by name (created if new); folderId takes a folder’s id instead.
List links
GET https://minisnip.com/api/v1/links?page=1&limit=50&q=launch&folder=Spring%20sale
Newest first. limit is 1 to 100 (default 50); the response includes page, limit and total. The optional q searches aliases, destinations, titles and tags; folder lists one folder by name or id, or none for links not in a folder. Each link includes its folder ({ id, name } or null).
Get a link with analytics
GET https://minisnip.com/api/v1/links/{id}
Returns the link plus top countries, devices, sources and referrers (bots excluded), qrScans (people who opened it from its MiniSnip QR code), its folder, and a breakdown of bots by name.
Update a link
PATCH https://minisnip.com/api/v1/links/{id} { "title": "New title", "tags": ["launch"], "isActive": false, "abVariants": "https://example.com/b | 50" }
Send only the fields you want to change; any field from create works except domainId. A new shortCode renames the alias on the same domain (409 if it is taken). Set an optional field to null or "" to clear it; a password is removed only by null. "folder": null takes the link out of its folder.
Bulk create
POST https://minisnip.com/api/v1/links/bulk { "links": [ { "originalUrl": "https://a.com" }, { "originalUrl": "https://b.com", "shortCode": "b", "tags": "promo" } ] }
Up to 500 links per request; more returns 400. Each row takes the same fields as creating one link. Responds with 201, data.created and data.failed, which lists { index, error } for every row that was not created. A top-level folder or folderId files every new link in that folder.
Folders
GET https://minisnip.com/api/v1/folders POST https://minisnip.com/api/v1/folders { "name": "Spring sale" }
Lists your folders A to Z with how many links each holds, or creates one (an existing folder with the same name is returned instead). Up to 100 folders.
Click events
GET https://minisnip.com/api/v1/links/{id}/clicks?page=1&limit=100
Newest first, bots included and marked. limit is 1 to 500 (default 100).
Latest clicks across all links
GET https://minisnip.com/api/v1/clicks?limit=25&linkId={optional}
People only (bots left out), newest first, in the same shape as the link.clicked webhook: linkId, shortUrl, country, city, device, os, browser, source, referrer, variant, campaign, adName, placement and clickedAt. limit is 1 to 100.
Webhooks
POST https://minisnip.com/api/v1/webhooks { "url": "https://hooks.example.com/minisnip", "events": ["link.created", "link.clicked"] } GET https://minisnip.com/api/v1/webhooks DELETE https://minisnip.com/api/v1/webhooks/{id}
Events: link.created, link.updated, link.deleted, link.clicked (people only), conversion.created, and link.broken and link.recovered from the link health check (Pro). Creating a webhook returns its signing secret once. Each delivery is a POST of { id, event, createdAt, data } with an X-MiniSnip-Signature header: the hex HMAC-SHA256 of timestamp.body with your secret, where the timestamp (Unix time in milliseconds) is in X-MiniSnip-Timestamp. A webhook is paused after 20 failed deliveries in a row. Zapier, Make and n8n use these endpoints to subscribe.
Conversions
With trackConversions on, a link adds ms_click=<click id> to its destination. Add the script to your site; it keeps that id in a first-party cookie for 90 days. Then report a sign-up or sale from the page:
<script src="https://minisnip.com/track.js"></script> <script> minisnip.conversion("purchase", { value: 49.99, currency: "USD", orderId: "1001" }); </script>
Or from your server, with the saved click id (for example from a payment webhook):
POST https://minisnip.com/api/v1/conversions { "clickId": "3f2b8c1e-…", "event": "purchase", "value": 49.99, "currency": "USD", "orderId": "1001" } GET https://minisnip.com/api/v1/conversions?limit=25&linkId={optional}
event defaults to conversion; value, currency (three letters) and orderId are optional. The same click, event and order id count once, so a reload or a retry doesn’t double a sale. Clicks older than 90 days get 422; a click on someone else’s link 404. Each conversion keeps the source, country and ad tags of its click, so the Meta ads report shows conversions per ad. Pro and Enterprise.
Use MiniSnip from Claude or ChatGPT
The MCP server at https://minisnip.com/api/mcp lets AI assistants shorten links and read clicks for you. Setup for each app: MCP connector guide.
Your account
GET https://minisnip.com/api/v1/me
Returns the email, name and plan the key belongs to. Useful to test a key.
QR codes
GET https://minisnip.com/api/qr?data=https://minisnip.com/launch&size=600&fg=10231c&bg=ffffff&format=png
No API key needed. data is required (up to 2,048 characters); size 64 to 2000 pixels (default 300); format svg (default) or png; margin 0 to 10; ecc L, M (default), Q or H. Higher error correction holds less data: text too long for the chosen level returns 400. PNGs larger than 600 pixels are limited to 30 a minute per IP address.
Delete a link
DELETE https://minisnip.com/api/v1/links/{id}
Errors
400 Invalid request (the message says what to fix) 401 Invalid or missing API key 402 Plan limit reached 403 API access requires Pro 409 Alias already taken 429 Rate limit exceeded