URL Shortener API

Short links, programmatically.

A clean REST API to create links, update destinations, read click analytics and render QR codes. API keys are free on every plan.

Bearer token authJSON everywhere500 calls/day free
POST /api/v1/links
# Request curl -X POST https://your-domain/api/v1/links \ -H "Authorization: Bearer $SLY_KEY" \ -d '{"url":"https://example.com","alias":"launch"}' # Response · 201 { "link": { "code": "launch", "shortUrl": "https://your-domain/launch", "clicks": 0 } }
Endpoints

Everything the dashboard does, in code.

Create links

Aliases, tags, UTM, expiry, passwords and device targeting.

Update & delete

Change destinations or switch links off from your own systems.

Read stats

Daily series, countries, devices, browsers and referrers as JSON.

QR codes

Render PNG or SVG QR codes in any colour and size.

Your API key
sly_••••••••••••••••••••Copy

Find it in Dashboard → Settings. Regenerate it any time.

Auth

One key, no setup.

Every account gets an API key. Send it as a Bearer token and you're ready. If a key leaks, regenerate it from Settings and the old one stops working.

Rate limits

Generous daily quotas.

Free500requests / day
Pro10,000requests / day
Business100,000requests / day

Frequently asked questions

Is the API free?

Yes. Every plan includes API access. Paid plans only raise the daily request quota.

What happens when I hit the limit?

The API returns status 429 until the next day. Your existing links keep redirecting normally.

Where is the full documentation?

See the developer docs for every endpoint, field and response.

Ship your first link in a minute.

Free API key with every account.

Create free account →
Keep exploring

Related features and use cases.

All features All use cases Pricing