API
All requests require an API key from your dashboard. Rate limit: 60 requests per minute on Pro, 300 on Team.
Create a link
POST https://api.short2.click/v2/links
Authorization: Bearer <key>
Content-Type: application/json
{"url": "https://example.com/very/long/path", "slug": "spring-sale"}
Response
{"id": "lk_8f2c1d", "short_url": "https://short2.click/spring-sale", "clicks": 0}
Get statistics
GET https://api.short2.click/v2/links/lk_8f2c1d/stats?period=30d
Errors
Errors return JSON with an error code: unauthorized, rate_limited, slug_taken, blocked_destination.