Developer API

Build with the SlightURL API

Create short links programmatically, pull click analytics, and automate your workflows — all from a single REST endpoint.

REST
Protocol
JSON
Format
Api key
Auth
Free
Tier
👤
STEP 01

Create a free account

Sign up in seconds — no credit card. Your account unlocks analytics, link management, and full API access.

Create Account →
🔑
STEP 02

Generate your API token

Dashboard → Settings → API Keys. One click to generate. Rotate or revoke any time — each token is scoped to your account.

API Token (example)

sk_live_7f4a2b9c1e3d8f6a0b5c2e4d7f1a3b6c

Go to Dashboard →
🚀
STEP 03

Make your first API call

POST to /api/links with your Bearer token in the Authorization header. Short URL returned instantly — no polling.

📊
STEP 04

Track clicks & analytics

Every link is tracked automatically. Click counts, referrers, and geo data — all live in your dashboard.

View Dashboard →
AD PLACEMENT
📢Position: API Documentation Top

Recommended: 728x90AdSense

🚀 Getting Started

Generate an API key from Dashboard → API Keys, then send requests using HTTP.

Example (cURL)

curl -X POST https://slighturl.com/api/links/create \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"longUrl":"https://example.com","alias":"custom_alias"}'
bash

🔑 Authentication

Include your API key in the Authorization header.

Authorization: YOUR_API_KEY
http

🌐 Base URL

https://slighturl.com
text

📦 Required Headers

Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: application/json
http

⚡ API Endpoints

POST/api/links/create

Create a new short URL.

Request Body

{
  "longUrl": "https://example.com",
  "alias": "custom_alias",
  "expiresAt": "2026-12-31T23:59:59Z"
}
json

📦 SDKs & Libraries

SDKs will be available soon. For now, use fetch/axios/cURL.

💬 Support

Need help? Contact support or check the help center.

AD PLACEMENT
📢Position: API Documentation Bottom

Recommended: 970x250AdSense