Build With
ShortLink API
A simple, powerful REST API for URL shortening, QR code generation, analytics, and bio pages. Integrate in minutes with your API token.
API access is available on Pro and Business plans.
Simple to integrate
Shorten a URL in one API call. No SDK required.
# Shorten a URL
curl -X POST https://api.shortlink.app/v1/links \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/very/long/url/that/needs/shortening",
"alias": "my-campaign",
"expires_at": "2026-12-31",
"password": null,
"tags": ["marketing", "q4-campaign"]
}'
# Response
{
"data": {
"id": "01HXYZ...",
"short_url": "https://short.link/my-campaign",
"original_url": "https://example.com/very/long/url/that/needs/shortening",
"alias": "my-campaign",
"clicks": 0,
"expires_at": "2026-12-31T00:00:00Z",
"created_at": "2026-04-20T10:32:00Z"
}
}
Everything you need in an API
A well-documented, predictable REST API with consistent JSON responses and clear error codes.
REST API
Standard HTTP verbs (GET, POST, PATCH, DELETE), JSON request/response bodies, and predictable resource-oriented URLs.
API Tokens
Generate multiple named API tokens with scoped permissions. Revoke individual tokens without affecting others.
Rate Limiting
Pro plan: 1,000 requests/min. Business plan: 10,000 requests/min. Rate limit headers included in every response.
Webhooks
Receive real-time HTTP POST events when a link is clicked, expires, or hits its click limit. Sign webhooks with HMAC-SHA256.
Full Resource Coverage
Manage links, QR codes, bio pages, tags, domains, teams, and analytics — everything in the dashboard is available via API.
OpenAPI Spec
Full OpenAPI 3.1 specification available for import into Postman, Insomnia, or to auto-generate a client SDK in any language.
Rate Limits by Plan
| Plan | Requests / minute | Requests / day | Webhooks |
|---|---|---|---|
| Free | — | — | No |
| Starter | 60 | 10,000 | No |
| Pro | 1,000 | 100,000 | Yes (5 endpoints) |
| Business | 10,000 | Unlimited | Yes (unlimited) |
Start building today
Get your API token from your dashboard. API access is included on Pro and Business plans.