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
- Get your API key - Go to Settings → API in your dashboard and create an API key. Available on every plan, including Free.
- Make your first request - Send a POST request to /api/v1/links with your API key in the Authorization header.
- 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-linkimport 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
Official typed JS/TS client. npm install @u2l/sdk — Node, browsers, Workers, Deno, Bun.
Official Python client. pip install u2l — zero dependencies, Python 3.9+.
Shorten links from your terminal. npm install -g @u2l/cli — the command is u2l.
Let AI assistants like Claude and Cursor manage your links via Model Context Protocol.
Machine-readable OpenAPI 3.1 spec — generate a client for any language.
API Reference
Create, list, update, and delete short links and QR codes. 5 endpoints.
Organize links into folders for easy management. 4 endpoints.
Access click analytics and account-level statistics. 2 endpoints. Advanced+
List all available domains including custom domains. 1 endpoint.
Retrieve account info, plan details, and usage limits. 1 endpoint.