Quick Start
Sign in or create an account to start using the tny.dev API.
Implementation
Sign up for a free account to get your API key.
Add your API key to the X-API-Key header in all requests.
curl -X POST https://www.tny.dev/api/v1/shorten \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"url": "https://example.com"}'{
"short_url": "https://www.tny.dev/abc123",
"slug": "abc123",
"long_url": "https://example.com",
"created_at": "2025-01-07T10:00:00Z"
}Reference
/api/v1/shortenCreate a shortened URL
/api/v1/analytics/{slug}Get analytics for a short link
/api/v1/linksList all links created with your API key