cutt.im
  • Shorten a link
  • Pricing
  • Blog
  • API
  • Sign in

    Short link API

    Shorten links, change their addresses and pull stats from your CRM, messaging service or your own app.

    1. Sign in to your account with your email — no password needed.
    2. In the API section, create a key and store it on your server.
    3. Send requests with the Authorization: Bearer cutt_… header — links appear in your account with stats.
    Sign in and get a key

    Getting started

    Base URL
    https://cutt.im/api/v1
    Key
    Create it in your dashboard under API. Send it in the header Authorization: Bearer cutt_… or X-Api-Key: cutt_…
    Request body
    JSON (Content-Type: application/json) or form data
    Response
    UTF-8 JSON, dates in ISO 8601, Almaty time
    Rate limit
    Requests per minute depend on your plan. Remaining quota is in the headers X-RateLimit-Limit, X-RateLimit-Remaining

    Create a link

    POSThttps://cutt.im/api/v1/links

    Shortens a URL on behalf of the key owner. The link counts towards your plan limit. A custom code is available on plans that allow it; without one, a random code is assigned.

    Parameters

    NameInTypeDescription
    url requiredbodystringLong URL with http:// or https://, up to 4096 characters
    codebodystringCustom code: Latin letters and digits, 4–32 characters
    titlebodystringYour own label, up to 256 characters

    Request

    curl -X POST https://cutt.im/api/v1/links \
      -H "Authorization: Bearer cutt_…" \
      -H "Content-Type: application/json" \
      -d '{"url":"https://example.kz/sale","code":"sale2026","title":"Акция"}'

    Response 201

    {
        "id": 1024,
        "code": "sale2026",
        "short_url": "https://cutt.im/sale2026",
        "url": "https://example.kz/sale",
        "title": "Акция",
        "enabled": true,
        "custom": true,
        "views": 0,
        "created_at": "2026-11-24T10:00:00+05:00",
        "expires_at": "2027-11-24T10:00:00+05:00",
        "qr_url": "https://cutt.im/qr/?text=https%3A%2F%2Fcutt.im%2Fsale2026"
    }

    Error 409 The code is taken

    {
        "error": {
            "code": "LinkErrCodeBusy",
            "message": "This code is taken. Choose another one"
        }
    }

    List links

    GEThttps://cutt.im/api/v1/links

    The key owner's links, newest first, paginated.

    Parameters

    NameInTypeDescription
    pagequeryintegerPage number, from 1
    per_pagequeryintegerLinks per page: 1–100, default 50

    Request

    curl "https://cutt.im/api/v1/links?page=1&per_page=50" \
      -H "Authorization: Bearer cutt_…"

    Response 200

    {
        "items": [
            {
                "id": 1024,
                "code": "sale2026",
                "short_url": "https://cutt.im/sale2026",
                "url": "https://example.kz/sale",
                "title": "Акция",
                "enabled": true,
                "custom": true,
                "views": 37,
                "created_at": "2026-11-24T10:00:00+05:00",
                "expires_at": "2027-11-24T10:00:00+05:00",
                "qr_url": "https://cutt.im/qr/?text=https%3A%2F%2Fcutt.im%2Fsale2026"
            }
        ],
        "page": 1,
        "per_page": 50,
        "total": 1
    }

    Error 401 Missing, wrong or revoked key

    {
        "error": {
            "code": "ApiErrKey",
            "message": "Invalid or revoked API key"
        }
    }

    Get a link

    GEThttps://cutt.im/api/v1/links/{code}

    One of the key owner's links by its code.

    Parameters

    NameInTypeDescription
    code requiredpathstringLink code: sale2026 in cutt.im/sale2026

    Request

    curl https://cutt.im/api/v1/links/sale2026 \
      -H "Authorization: Bearer cutt_…"

    Response 200

    {
        "id": 1024,
        "code": "sale2026",
        "short_url": "https://cutt.im/sale2026",
        "url": "https://example.kz/sale",
        "title": "Акция",
        "enabled": true,
        "custom": true,
        "views": 37,
        "created_at": "2026-11-24T10:00:00+05:00",
        "expires_at": "2027-11-24T10:00:00+05:00",
        "qr_url": "https://cutt.im/qr/?text=https%3A%2F%2Fcutt.im%2Fsale2026"
    }

    Error 404 No such link among yours

    {
        "error": {
            "code": "ApiErrNotFound",
            "message": "No link with this code among yours"
        }
    }

    Update a link

    PATCHhttps://cutt.im/api/v1/links/{code}

    Changes only the fields you send. The destination URL can be changed on plans that allow it. POST works too.

    Parameters

    NameInTypeDescription
    code requiredpathstringLink code
    urlbodystringNew long URL
    titlebodystringNew label
    enabledbodybooleantrue to enable, false to disable

    Request

    curl -X PATCH https://cutt.im/api/v1/links/sale2026 \
      -H "Authorization: Bearer cutt_…" \
      -H "Content-Type: application/json" \
      -d '{"title":"Чёрная пятница","enabled":false}'

    Response 200

    {
        "id": 1024,
        "code": "sale2026",
        "short_url": "https://cutt.im/sale2026",
        "url": "https://example.kz/sale",
        "title": "Чёрная пятница",
        "enabled": false,
        "custom": true,
        "views": 37,
        "created_at": "2026-11-24T10:00:00+05:00",
        "expires_at": "2027-11-24T10:00:00+05:00",
        "qr_url": "https://cutt.im/qr/?text=https%3A%2F%2Fcutt.im%2Fsale2026"
    }

    Error 403 Changing the URL is not available on your plan

    {
        "error": {
            "code": "CabErrChangeURL",
            "message": "Changing the link address is available on Business and Team"
        }
    }

    Delete a link

    DELETEhttps://cutt.im/api/v1/links/{code}

    Deletes the link with its stats. The short URL stops working. This can't be undone.

    Parameters

    NameInTypeDescription
    code requiredpathstringLink code

    Request

    curl -X DELETE https://cutt.im/api/v1/links/sale2026 \
      -H "Authorization: Bearer cutt_…"

    Response 204

    (empty body)

    Error 404 No such link among yours

    {
        "error": {
            "code": "ApiErrNotFound",
            "message": "No link with this code among yours"
        }
    }

    Link stats

    GEThttps://cutt.im/api/v1/links/{code}/stats

    Clicks over the last days, excluding bots and messenger previews: total, per day (Almaty time), sources and devices.

    Parameters

    NameInTypeDescription
    code requiredpathstringLink code
    daysqueryintegerPeriod in days, default 30, capped by your plan's stats depth

    Request

    curl "https://cutt.im/api/v1/links/sale2026/stats?days=7" \
      -H "Authorization: Bearer cutt_…"

    Response 200

    {
        "code": "sale2026",
        "days": 7,
        "views_total": 37,
        "views": 21,
        "daily": {
            "2026-11-18": 2,
            "2026-11-19": 5,
            "2026-11-20": 3,
            "2026-11-21": 0,
            "2026-11-22": 4,
            "2026-11-23": 6,
            "2026-11-24": 1
        },
        "referers": {
            "direct": 9,
            "Instagram": 7,
            "Telegram": 3,
            "example.kz": 2
        },
        "devices": {
            "iphone": 10,
            "android": 8,
            "desktop": 3
        }
    }

    Error 404 No such link among yours

    {
        "error": {
            "code": "ApiErrNotFound",
            "message": "No link with this code among yours"
        }
    }

    Link QR code

    GEThttps://cutt.im/api/v1/links/{code}/qr

    Redirects (302) to a QR image of the short link. Download it from the Location header.

    Parameters

    NameInTypeDescription
    code requiredpathstringLink code
    formatquerystringsvg (default) or png

    Request

    curl -L "https://cutt.im/api/v1/links/sale2026/qr?format=png" \
      -H "Authorization: Bearer cutt_…" -o qr.png

    Response 302

    Location: https://cutt.im/qr/?text=…&format=png

    Error 404 No such link among yours

    {
        "error": {
            "code": "ApiErrNotFound",
            "message": "No link with this code among yours"
        }
    }

    Plan and limits

    GEThttps://cutt.im/api/v1/account

    The key owner's plan, paid-until date, link limit and usage, stats depth and request rate.

    Request

    curl https://cutt.im/api/v1/account \
      -H "Authorization: Bearer cutt_…"

    Response 200

    {
        "tariff": "business",
        "tariff_title": "Бизнес",
        "paid_until": "2026-12-24T23:59:59+05:00",
        "links_limit": 1000,
        "links_period": "month",
        "links_used": 128,
        "custom_codes": true,
        "stats_days": 365,
        "requests_per_minute": 120
    }

    Error 429 Rate limit exceeded

    {
        "error": {
            "code": "ApiErrRate",
            "message": "No more than 120 requests per minute. Please wait a little"
        }
    }

    Errors

    Errors come with an HTTP status and the same body: code for your program, message for people.

    {
        "error": {
            "code": "LinkErrCodeBusy",
            "message": "This code is taken. Choose another one"
        }
    }
    HTTPcodeWhen
    400ApiErrJsonBody is not JSON
    401ApiErrKeyMissing or wrong key
    403LinkErrQuotaPlan link limit reached
    403LinkErrCustomCustom codes not available on your plan
    403CabErrChangeURLChanging the URL not available on your plan
    404ApiErrNotFoundNo link with this code among yours
    404ApiErrRouteNo such API route
    405ApiErrMethodMethod not allowed
    409LinkErrCodeBusyCode is taken
    422LinkErrBadURL looks invalid
    422LinkErrCodeBadCode breaks the rules
    422LinkErrCodeReservedReserved name
    429ApiErrRateToo many requests per minute