Developer Documentation
Everything you need to integrate rus.sh into your applications. Simple, powerful, well-documented.
Quick Start
Create your first short link in under 60 seconds
1. Get Your API Key
Sign up for a free account and get your API key from the dashboard
Create Free Account2. Make Your First Request
curl -X POST https://api.rus.sh/v1/links \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"destination": "https://example.com/long-url",
"slug": "my-link"
}'3. Get the Response
{
"id": "abc123",
"shortUrl": "https://rus.sh/my-link",
"destination": "https://example.com/long-url",
"slug": "my-link",
"createdAt": "2025-10-28T10:00:00Z",
"clicks": 0
}API Endpoints
RESTful API with predictable, resource-oriented URLs
/v1/linksCreate a new short link
/v1/linksList all your links
/v1/links/:slugGet details for a specific link
/v1/links/:slugUpdate a link
/v1/links/:slugDelete a link
/v1/links/:slug/analyticsGet analytics for a link
/v1/qrGenerate a QR code
/v1/domainsList your custom domains
Official SDKs & Libraries
Type-safe SDKs for your favorite programming languages
JavaScript / TypeScript
npm install @rush/sdkPython
pip install rush-sdkPHP
composer require rush/sdkGo
go get github.com/russh/go-sdkAuthentication
All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYKeep your API key secure and never share it publicly
Rate Limits
Free Plan
100 requests/hour
Pro Plan
1,000 requests/hour
Business & Premium
10,000 requests/hour
Enterprise
Custom rate limits
Webhooks
Get real-time notifications when events happen
Available Events
link.createdlink.updatedlink.deletedlink.clickedqr.generateddomain.verifiedExample Payload
{
"event": "link.clicked",
"timestamp": "2025-10-28T10:00:00Z",
"data": {
"slug": "my-link",
"destination": "https://example.com",
"referrer": "https://twitter.com",
"country": "US",
"device": "mobile"
}
}