LinkSmith API Docs

Create short links, track clicks, and manage your brand.

1. Create a Short Link

POST /api/protected/links
Content-Type: application/json
Cookie: token=<jwt>

{ "url": "https://example.com", "customSlug": "launch" }

2. Retrieve Link Stats

GET /api/protected/links
Cookie: token=<jwt>

3. Error Codes

  • 403 plan_limit — Upgrade to create more links.
  • 409 slug_taken — Custom slug already exists.
  • 401 Unauthorized — Missing or expired session.