REST API for Creating and Managing Short Links

Create, edit and delete short links through a REST API. Use JSON responses, API keys, OpenAPI / Swagger documentation and webhook notifications for fast integration into products, services and automation workflows.

# Create a short link $ curl -X POST https://lix.li/api/1.0/links -H "X-Api-Key: lix_live_XXXX" -H "Content-Type: application/json" -d '{"url": "https://example.com/very/long/page", "alias": "demo", "tags" : ["sale", "promo"]}'
# Response { "id": "9053352", "alias": "demo", "short_url": "https://lix.li/demo", "url": "https://example.com/very/long/page", "title": null, "group": null, "created_datetime": "2023-05-23T22:56:57+03:00", "tags": ["sale", "promo"] }

Why Developers Choose the Lix.li API

Fast integration, clear documentation and an API built for real-world workflows and automation.

REST API

Clean REST conventions, clear HTTP methods and predictable response codes. Integration without custom patterns or unnecessary complexity.

JSON Responses

Structured JSON responses for all endpoints. Predictable fields, a consistent data format and easy client-side processing.

API Keys

Authentication via Bearer tokens. Key management, rotation and access revocation directly from the dashboard.

OpenAPI / Swagger

Interactive documentation with request examples, responses and API testing directly in the browser.

Predictable Endpoints

Logical resource and URL structure: /links, /groups, /analytics, /webhooks. Easy to read, use and maintain.

Fast Integration

Use the API with standard HTTP clients, backend applications, automation services or internal tools. Suitable for products, CRM, SaaS and backend workflows.

What the Lix.li API Can Do

Create short links, manage analytics, domains, groups and automation through a single REST API.

Short Links API

Create, edit, delete and retrieve short links through the API. Supports bulk operations, pagination, filtering and link management.

Groups & Tags API

Organize links via API using groups, tags, projects and workspaces. Ideal for teams, campaigns and large-scale integrations.

Automation API

Integrate link shortening with CRM systems, marketing platforms, internal services and automation workflows.

Link Analytics API

Access click data, countries, devices, browsers, traffic sources and UTM campaigns through the API.

Tracking Pixels API

Manage Google, Hotjar, Yandex, TikTok and other tracking pixels through the API and connect them to short links and workflows.

Custom Domains API

Connect and manage branded domains for short links through the API. Use your own short URLs across products and campaigns.

Webhooks API

Real-time events for clicks, link creation, updates and limits. Integrate with any service through webhooks.

Security & Expiration API Management

Configure passwords, expiration dates, click limits and access rules for links through the API.

API Documentation That’s Easy to Understand

OpenAPI / Swagger, interactive testing, ready-to-use request examples and clear documentation for fast integration.

  • OpenAPI 3.0 specification
  • Swagger UI for testing
  • Examples for curl, Python and Node.js
  • Field-by-field and response code documentation
  • Integration support
  • Straightforward API client generation
Open API Documentation
https://lix.li/api/1.0
POST /links Create Link
GET /links List Links
GET /links/{id} Get Link
PATCH /links/{id} Edit Link
DELETE /links/{id} Delete Link
GET /analytics Analytics
GET /groups Groups
POST /webhooks Create Webhook

Where Short Links API and URL Shortener API Are Used

Products, services and automation workflows where short link APIs power real-world use cases.

SaaS Products

Short links inside user interfaces, referral programs, onboarding flows, notifications and product workflows.

Marketing Platforms

Automatic link generation for campaigns, publications, channels and ads with UTM tags, analytics and tracking pixels.

CRM Systems

Personalized short links for customers, email sequences, deals and user workflow tracking inside CRM systems.

Automation Workflows

Integrations with Zapier, Make, n8n and internal workflows. Automatic link creation, updates and management through the API.

Internal Tools

Short links in admin panels, dashboards, service tools and internal products without manual URL management.

Analytics Pipelines

Retrieve click, traffic and analytics data through the API for BI systems, custom dashboards, data pipelines and internal reporting.

Start Using the Short Links API

Documentation, request examples, Swagger UI and a fast setup without unnecessary configuration. Connect the API to your product, service or automation workflow in minutes.

Frequently Asked Questions About the Short Links API

The API lets you create, edit, delete and retrieve short links, manage groups, tags, custom domains, tracking pixels, analytics and webhook notifications. Everything is available through a REST API with JSON responses.
Yes. The API uses standard HTTP methods (GET, POST, PATCH, DELETE), a clear URL structure, semantic endpoints and predictable response codes. All responses are returned in JSON format.
JSON. Every endpoint returns structured data with predictable fields. Errors include a code, message and additional context for troubleshooting and debugging.
Yes. An OpenAPI 3.0 specification is available with interactive Swagger UI, request examples and API testing directly in the browser.
Authentication uses tokens in the X-Api-key header. API keys can be created, rotated and revoked through the dashboard.
API limits depend on your selected plan. Current restrictions and rate limit status are available in API responses and documentation.
Webhooks send HTTP requests to your endpoint when system events occur: link creation, clicks, updates or limit events. This allows you to receive real-time data without continuously polling the API.
Yes. The analytics endpoint provides data on clicks, countries, devices, browsers, traffic sources and other metrics. Filters by dates, links, groups and data ranges are supported.
Basic API access is available for testing. Available features and limits depend on your plan. Advanced functionality is included in paid plans.
Yes. The API is actively evolving with new endpoints, expanded documentation, additional webhook events and new automation capabilities. Changes are versioned to maintain compatibility.
Bank cards, Bitcoin (BTC), TON and USDT (TRC20) are supported. Invoice billing is available for Enterprise customers.