Personal Workspace
Shorten Link
Developer Platform

REST API Engine & Authentication

Programmatically shorten URLs, retrieve real-time analytics heatmaps, and generate matrix QR codes via secure Bearer authentication tokens.

Your Secret API Token
Keep this token secure; it grants programmatic access to shorten links under your workspace.
smx_live_9481a8b27c1092e4
POSThttps://s-mx.cc/api/shorten

Creates a new shortened URL with optional custom alias, password protection, and redirect type selection (Direct, Frame, Splash, Custom, Overlay).

curl -X POST https://s-mx.cc/api/shorten \
  -H "Authorization: Bearer smx_live_9481a8b27c1092e4" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/long-product-launch",
    "custom": "product-launch",
    "type": "splash"
  }'
JSON Response:
{
  "success": true,
  "alias": "product-launch",
  "shortUrl": "https://s-mx.cc/product-launch",
  "targetUrl": "https://example.com/long-product-launch",
  "id": "673891040..."
}
GEThttps://s-mx.cc/api/links/:id/stats

Retrieves aggregated total clicks, country metrics, operating systems, top referrer domains, and browser distribution for a specific short link.