URL Shortener

API documentation

Shorten links from your own app or website.

Authentication

Create a key in API Keys and send it as Authorization: Bearer us_…. Limit: 60 requests/minute.

POST /shorten

cURL
curl -X POST https://softwearapp.com/url-shortener/api/v1/shorten \
  -H 'Authorization: Bearer us_xxx' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com/long","alias":"promo"}'

# → {"ok":true,"short_url":"https://softwearapp.com/s/promo","code":"promo"}

GET /links

Your latest 100 links.

cURL
curl https://softwearapp.com/url-shortener/api/v1/links -H 'Authorization: Bearer us_xxx'

GET /stats/{code}

Clicks with device, browser and referrer breakdown.

cURL
curl https://softwearapp.com/url-shortener/api/v1/stats/promo -H 'Authorization: Bearer us_xxx'