DocumentationQuickstart

DocsGet started02

Your first short link, in five minutes.

Sign in through Elixpo Accounts, mint an API key, and shorten a URL from the command line.

1. Sign in with Elixpo

Lixrl uses your Elixpo account — no separate password to manage. Hit the sign-in button in the navbar or go directly to /api/auth/login. You'll be redirected back to your dashboard after the OAuth round-trip completes.

2. Mint an API key

From your dashboard, open Profile → API Keys and click Create key. Copy the key the moment it appears — we hash it on save and you won't see it again.

Example key
elu_a1b2c3d4e5f6…  (example, your key will differ)

3. Shorten your first URL

Send a POST /api/urls with your destination URL and (optionally) a custom slug.

cURL
curl -X POST https://lixrl.com/api/urls \
  -H "Authorization: Bearer elu_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/your-long-url",
    "title": "Launch announcement",
    "custom_code": "launch"
  }'

You'll get back the resolved short link:

201 Created
{
  "short_url": "https://lixrl.com/launch",
  "short_code": "launch",
  "original_url": "https://example.com/your-long-url",
  "title": "Launch announcement",
  "created_at": "2026-03-20T12:00:00Z"
}

4. Watch clicks roll in

Every redirect is tracked on Cloudflare's edge. Pull analytics for any link with GET /api/urls/{code}/analytics or open it in your dashboard for the visual breakdown — see Click Analytics.

What's next

Quickstart — Shorten Your First URL with the API | Lixrl