Public endpoint to create a short link. No login required. Rate limiting should be applied at server/app level.
Endpoint
POST http://url.na/api/shorten
Request (JSON)
{
"url": "https://example.com"
}
Response
{
"short_url": "http://url.na/aB3x",
"code": "aB3x",
"preview_url": "http://url.na/p/aB3x",
"qr_png": "http://url.na/qr/aB3x.png",
"qr_svg": "http://url.na/qr/aB3x.svg"
}
Redirect note: The short link
http://url.na/aB3x performs a fast 302 redirect and does not load GA/AdSense.