REST API v1 · Paid Plans OnlyOpenAPI 3.1 Spec

Kutti Public API

Create, pause, expire, update, and analyze short links programmatically. Base URL: https://kutti.link/api/v1

Bearer Authentication

Generate named API keys (kutti_live_...) from Dashboard → Settings. Keys are shown once at creation and stored as SHA-256 hashes.

Anti-DDoS & Circuit Breaker

Limits apply per account across all keys. Sustained 429 violations (≥250 blocks in 5m) trigger an automatic 15–60 minute cooldown.

Plan Quotas & Rate Limits

PlanBurst (10s)Sustained / minWrites / minNew Links / hrDaily Quota
Kutti FreeAPI disabled (`403 PLAN_REQUIRED`)
Kutti Plus1530151003,000
Kutti Pro401505040015,000

Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-DailyQuota-Remaining. Request bodies above 16 KB return 413 PAYLOAD_TOO_LARGE.

Endpoints

POST/api/v1/links

Create a new shortened link (supports optional custom slug, expiresAt ISO date, and Idempotency-Key header).

curl -X POST https://kutti.link/api/v1/links \
  -H "Authorization: Bearer kutti_live_your_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: release-v2-post" \
  -d '{
    "url": "https://adithyan.co",
    "name": "Personal Site",
    "shortUrl": "adi"
  }'
GET/api/v1/links

List your links with pagination (`limit <= 100`), search query, and `activeOnly` filter.

curl "https://kutti.link/api/v1/links?page=1&limit=20" \
  -H "Authorization: Bearer kutti_live_your_key"
GET / PATCH / DELETE/api/v1/links/{id}

Fetch, update destination/slug/isActive/expiresAt, or soft-delete a link owned by your account.

GET/api/v1/links/{id}/analytics

Retrieve time-series visits and browser/OS/device/country/referrer breakdowns (`days=7|30|90`).

curl "https://kutti.link/api/v1/links/clx123abc/analytics?days=30" \
  -H "Authorization: Bearer kutti_live_your_key"
GET/api/v1/me

Inspect current user tier, link usage, active API keys count, and remaining daily quota.

Error Envelope

All errors return { error: { code, message, details? } }:

  • 401 UNAUTHORIZED — invalid or revoked key
  • 403 PLAN_REQUIRED — paid tier required
  • 409 SLUG_CONFLICT — shortUrl already taken
  • 410 ENDPOINT_DEPRECATED — legacy `/api/kutti/shorten`
  • 413 PAYLOAD_TOO_LARGE — body exceeds 16 KB
  • 429 ABUSE_COOLDOWN — repeated limit flood block