Build with a clean JSON API for links & QR codes.
Programmatically create short links, generate QR codes, and read analytics. Simple auth, predictable responses, and fast endpoints.
Quick start
Base URL & authentication
https://api.url.onl/v1 Authorization header
Include your secret key in every request.
Authorization: Bearer ur_sk_XXXXExample
Create a short link
curl -X POST https://api.url.onl/v1/links \
-H "Authorization: Bearer ur_sk_XXXX" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourlongurl.com/blog/summer-campaign",
"slug": "summer-24",
"expires_at": null,
"password": null
}'Need schemas, pagination, errors, and rate limits? See Docs.
Reference
Core endpoints
/v1/linksLinksCreate a new short link with optional expiry, password and metadata.
/v1/links/{id}LinksFetch full details for a single short link by ID or slug.
/v1/linksLinksList all links with filtering and pagination.
/v1/qr-codesQR CodesGenerate a QR code image for an existing link or a raw URL.
/v1/analytics/links/{id}AnalyticsRetrieve clicks by country, device and referrer for a specific link.
Rate limits
Limits vary by plan. Use retries with backoff for bursts.
Errors
Consistent error shape with codes and messages for easy handling.
Ready to build?
Create your first key and start shipping in minutes.