cutt.kz
  • 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

    How to use the API

    Base URL: https://cutt.kz/api/v1. Send the key in the Authorization: Bearer cutt_… header. The request body is JSON. Links created via the API appear in your account and count toward your plan limit.

    POST/linksCreate a link: url, optionally code (custom code) and title
    GET/linksList links: page, per_page up to 100
    GET/links/{code}Get a link by code
    PATCH/links/{code}Update: url, title, enabled (true or false)
    DELETE/links/{code}Delete a link and its stats
    GET/links/{code}/statsStats: days — period in days, no more than your plan allows
    GET/links/{code}/qrQR image (redirect to SVG)
    GET/accountPlan, limits and how many links you've created

    Example

    curl -X POST https://cutt.kz/api/v1/links \
      -H "Authorization: Bearer cutt_…" \
      -H "Content-Type: application/json" \
      -d '{"url":"https://example.kz/sale","code":"sale2026","title":"Акция"}'
    {
      "id": 1024,
      "code": "sale2026",
      "short_url": "https://cutt.kz/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.kz/qr/?text=…"
    }
    curl "https://cutt.kz/api/v1/links/sale2026/stats?days=30" -H "Authorization: Bearer cutt_…"

    Errors come with an HTTP status and a body {"error":{"code":"…","message":"…"}}: 401 — invalid key, 403 — limit reached or custom codes not on your plan, 404 — no such link, 409 — code taken, 422 — invalid data, 429 — too many requests.