DEVELOPER CENTER

Urlmigo REST API v1 Documentation

Automate short link generation, inspect click telemetry, and subscribe to webhook events using Bearer token authentication.

Authentication & Security

Generate an API key from Dashboard → API Keys. Full secret keys are displayed only once upon creation and stored as SHA-256 hashes. Pass your key in the Authorization: Bearer um_live_... header.

1. Create Short Link (POST /api/v1/shorten)

curl -X POST https://urlmigo.com/api/v1/shorten \
  -H "Authorization: Bearer um_live_your_secret_key" \
  -H "Content-Type: application/json" \
  -d '{
    "destination_url": "https://example.com/product-launch",
    "custom_alias": "launch26",
    "link_type": "standard",
    "redirect_type": 302
  }'

2. Fetch Link Analytics (GET /api/v1/links/{code}/stats)

curl -X GET https://urlmigo.com/api/v1/links/launch26/stats \
  -H "Authorization: Bearer um_live_your_secret_key"

Standard HTTP Error Codes

  • 401 Unauthorized — Missing or revoked API key.
  • 403 Forbidden — Developer API is currently disabled by administrator.
  • 422 Unprocessable Entity — Invalid destination URL or SSRF security block.
  • 429 Too Many Requests — Per-minute API rate limit exceeded.