Getting Started

U2L Developer Hub

Build powerful integrations with the U2L API. Create short links, generate QR codes, manage folders, and access analytics programmatically.

Base URL - https://u2l.ai/api/v1 · OpenAPI spec - /developers/openapi.json

Quick Start

  1. Get your API key - Go to Settings → API in your dashboard and create an API key. Available on every plan, including Free.
  2. Make your first request - Send a POST request to /api/v1/links with your API key in the Authorization header.
  3. Build your integration - Explore the full API reference to create links, manage folders, and access analytics.

Your First Request

curl -X POST https://u2l.ai/api/v1/links \
  -H "Authorization: Bearer u2l_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/my-page",
    "alias": "my-link"
  }'
const response = await fetch("https://u2l.ai/api/v1/links", {
  method: "POST",
  headers: {
    "Authorization": "Bearer u2l_live_your_api_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://example.com/my-page",
    alias: "my-link",
  }),
});

const link = await response.json();
console.log(link.shortLink); // https://u2l.ai/my-link
import requests

response = requests.post(
    "https://u2l.ai/api/v1/links",
    headers={
        "Authorization": "Bearer u2l_live_your_api_key",
        "Content-Type": "application/json",
    },
    json={
        "url": "https://example.com/my-page",
        "alias": "my-link",
    },
)

link = response.json()
print(link["shortLink"])  # https://u2l.ai/my-link

Tools & SDKs

API Reference