# LeonAI Links — Developer Docs > Developer documentation for the LeonAI Links REST API: create and manage short links, read click analytics, receive signed webhooks, generate QR codes and build link-in-bio pages, over plain HTTP with an OpenAPI 3.1 spec. API base URL: https://api.short.leonai.io/api/v1. Authenticate with an API key in the `X-API-Key` header, or a JWT as `Authorization: Bearer `. OpenAPI 3.1 spec: https://api.short.leonai.io/api/v1/openapi.json The full text of every page listed below, in one file: https://developers.leonai.io/llms-full.txt ## Getting started - [Introduction](https://developers.leonai.io/docs/intro.md): Overview of the LeonAI Links API — base URL, capabilities, and subscription tiers. - [Authentication](https://developers.leonai.io/docs/authentication.md): JWT vs API keys, scopes, creating a key, and rate limiting for the LeonAI API. - [Quickstart](https://developers.leonai.io/docs/quickstart.md): Create your first LeonAI short link in three steps: set your API key, create the link with curl, and read its click count, then go on to the guides. ## Guides - [Links](https://developers.leonai.io/docs/guides/links.md): Create, read, list, update and delete short links with the LeonAI Links API: filtering and pagination, lifetime stats, bulk import and export. - [Folders](https://developers.leonai.io/docs/guides/folders.md): Organize short links into nested folders and filter your library by folder. - [Link types](https://developers.leonai.io/docs/guides/link-types.md): Shorten mailto, tel, and sms destinations in addition to regular URLs. - [Social previews (OG)](https://developers.leonai.io/docs/guides/og-previews.md): Give links custom Open Graph titles, descriptions, and images for rich unfurls. - [Import from Bitly](https://developers.leonai.io/docs/guides/bitly-import.md): One-click import of your existing Bitly links using a Bitly access token. - [Analytics & Conversions](https://developers.leonai.io/docs/guides/analytics.md): Read click analytics and attribute revenue with the lc_id conversion flow. - [Shareable analytics](https://developers.leonai.io/docs/guides/shareable-analytics.md): Publish a public, PII-free analytics page for a link via a revocable share link. - [Bot detection](https://developers.leonai.io/docs/guides/bot-detection.md): Automatic bot and fraud classification that keeps Business+ analytics clean. - [Webhooks](https://developers.leonai.io/docs/guides/webhooks.md): Subscribe to events, read the exact payloads, and verify HMAC-SHA256 signatures in Node and Python. - [QR Codes](https://developers.leonai.io/docs/guides/qr-codes.md): Build a public QR image URL for any LeonAI short link, with no API key: size, PNG, SVG or data URL, colors, error correction, margin, and direct use. - [Link-in-bio](https://developers.leonai.io/docs/guides/link-in-bio.md): Build link-in-bio landing pages with the LeonAI Links API: create a page, add and reorder its items, read and update it, and publish or unpublish it. - [Smart Routing](https://developers.leonai.io/docs/guides/smart-routing.md): Route a single short link by geo, device, time, or A/B split (Business+). - [Retargeting pixels](https://developers.leonai.io/docs/guides/retargeting-pixels.md): Fire ad-platform retargeting pixels on redirect, with GPC consent awareness (Business+). - [Custom domains](https://developers.leonai.io/docs/guides/domains.md): Add a branded short domain — one-click Cloudflare auto-connect or manual DNS verification. - [Teams](https://developers.leonai.io/docs/guides/teams.md): Collaborate with multiple users — create teams, invite members, manage roles. - [Billing (Sumit)](https://developers.leonai.io/docs/guides/billing.md): Subscriptions, the client-side card tokenization flow, invoices, and VAT — powered by Sumit (OfficeGuy). - [White-label branding](https://developers.leonai.io/docs/guides/white-label.md): Theme public bio and analytics pages with your logo and colors (Enterprise). - [Two-factor auth (2FA)](https://developers.leonai.io/docs/guides/two-factor.md): Enroll TOTP two-factor authentication and complete the two-step login. - [AI features](https://developers.leonai.io/docs/guides/ai.md): Slug suggestions, link insights, and anomaly detection — with a deterministic fallback. ## Tooling & integrations - [SDKs](https://developers.leonai.io/docs/sdks.md): The planned TypeScript and Python clients for the LeonAI Links API. Not published yet — call the REST API meanwhile. - [MCP Server](https://developers.leonai.io/docs/mcp-server.md): The planned LeonAI MCP server for AI assistants — its tools and resources. Not published yet. - [Integrations](https://developers.leonai.io/docs/integrations.md): The planned Zapier and Make.com apps and browser extension for LeonAI Links, and their API-key scopes. Not published yet — call the REST API meanwhile. ## Reference - [Self-hosting & running the SaaS](https://developers.leonai.io/docs/self-hosting.md): Run LeonAI locally, seed demo data, and deploy to GCP — including the production secrets the env-guard enforces. - [API Reference](https://developers.leonai.io/docs/api-reference.md): The full OpenAPI 3.1 spec and interactive Swagger UI for the LeonAI API. - [Errors](https://developers.leonai.io/docs/errors.md): The LeonAI Links API error envelope, validation errors, HTTP status codes and rate-limit responses, and how to handle each one well in your code. - [What's documented](https://developers.leonai.io/docs/coverage.md): A checklist of every REST endpoint and webhook event, and where each is documented. - [Changelog](https://developers.leonai.io/docs/changelog.md): Notable changes to the LeonAI Links API, SDKs and MCP server, newest first and dated, and what is planned next on the roadmap.