curl --request GET \ --url https://api.example.com/{url_code}
{ "RedirectResponse": {}}
Public Endpoints
URL Redirect
GET
/
{url_code}
URL Redirect
curl --request GET \ --url https://api.example.com/{url_code}
{ "RedirectResponse": {}}
Redirect to the destination URL associated with a short URL code. This is the core functionality that makes short URLs work - when users visit the short URL, they are automatically redirected to the target destination.
For password-protected URLs, the hit counter is updated asynchronously:
Uses FastAPI’s BackgroundTasks to avoid blocking the redirect
Increments url_hits field in the URLStats collection by 1
Runs after the redirect response is sent to the client
Does not affect redirect performance
Paused URLs: When a password-protected URL is paused (via the /pause endpoint), attempting to access it will return a 423 Locked error instead of redirecting. Use /resume to reactivate the URL.