REST API to create, manage, and track short links. Authenticate with an API key (Pro/Business).
All protected endpoints require an API key in the header:
x-api-key: your_api_key_here
API keys can be generated at Dashboard > Settings (Pro/Business).
https://cut2.link
/api/linksAPI-KeyList all links
Parameters
?tag=...&bioPageId=.../api/linksAPI-KeyCreate a new short link
Request Body
{
"url": "https://example.com",
"slug": "custom-slug",
"title": "My Link",
"tags": "marketing",
"utmSource": "newsletter",
"utmMedium": "email",
"utmCampaign": "launch",
"startsAt": "2026-04-01T00:00:00Z",
"expiresAt": "2026-05-01T00:00:00Z",
"noIndex": true,
"password": "secret123"
}/api/links/:idAPI-KeyGet a single link
/api/links/:idAPI-KeyUpdate a link
Request Body
{
"url": "https://new-url.com",
"title": "Updated Title",
"isActive": false,
"utmSource": "twitter",
"noIndex": true,
"password": "secret123"
}/api/links/:idAPI-KeyDelete a link (soft delete)
/api/links/:id/statsAPI-KeyGet click statistics
Parameters
?days=30Response
{
"link": { "id": "...", "slug": "abc", "url": "..." },
"period": { "days": 30, "since": "2026-03-02" },
"total": 142,
"byDay": { "2026-04-01": 12, "2026-04-02": 8 },
"byCountry": { "DE": 80, "US": 30 },
"byDevice": { "mobile": 90, "desktop": 52 },
"byBrowser": { "Chrome": 70, "Safari": 40 },
"byReferrer": { "google.com": 30, "direct": 50 }
}/api/links/:id/qrGenerate QR code
Parameters
?size=300&format=svg&fg=000000&bg=ffffff/api/bioAPI-KeyList all bio pages
/api/bioAPI-KeyCreate a bio page
Request Body
{
"slug": "mypage",
"title": "My Bio",
"bio": "Welcome to my page",
"theme": "dark"
}/api/healthHealth check
Create a link via cURL
curl -X POST https://cut2.link/api/links \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"url": "https://example.com", "slug": "my-link"}'Pro
Unlimited links
50.000 clicks/month
Business
Everything unlimited
5 Custom Domains
QR
Public
No API key required