API Reference

REST API — all responses are JSON

Base URL

https://urlshortner-onhm.onrender.com

Authentication

Most endpoints require a JWT token. Get one by calling POST /api/auth/login, then pass it as:

Authorization: Bearer <your_token>

Or use API keys (for server-to-server): go to Settings → API Keys to generate one.

Authentication

Short Links

Analytics

API Keys

Rate Limiting

The API is rate-limited to 100 requests / 15 minutes per IP address. API keys have configurable limits (up to 1000 req/hour). Exceeding limits returns 429 Too Many Requests.

Welcome to TrimLink! 🎉

TrimLink is your all-in-one link management platform. Shorten links, build pages, generate QR codes, and track clicks — all in one place.