ShortGo
सुविधाएँकीमत ब्लॉगसहायतालॉग इन करें
REST · JSON · Webhooks

अपने लिंक के ऊपर निर्माण करें

ब्रांडेड लिंक बनाएँ, QR कोड जनरेट करें और अपने ऐप्स से एनालिटिक्स प्राप्त करें। अनुमानित REST एंडपॉइंट, हर जगह JSON, और रियल-टाइम इवेंट के लिए webhook।

POST /links
curl -X POST https://shortgo.io/api/v1/links \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/launch","alias":"launch"}'
const res = await fetch("https://shortgo.io/api/v1/links", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ url: "https://example.com/launch" }),
});
const { short_url } = await res.json();
import requests

r = requests.post("https://shortgo.io/api/v1/links",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"url": "https://example.com/launch"})
print(r.json()["short_url"])
$ch = curl_init("https://shortgo.io/api/v1/links");
curl_setopt_array($ch, [
  CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["Authorization: Bearer $apiKey", "Content-Type: application/json"],
  CURLOPT_POSTFIELDS => json_encode(["url" => "https://example.com/launch"]),
]);
$link = json_decode(curl_exec($ch), true);
201 Created → {"id": 42, "short_url": "https://go.example/launch", …}

ऑथेंटिकेशन

Create an API key in your dashboard and send it as a Bearer token in the Authorization header. Keys can be read-only or read/write and revoked at any time.

रेट लिमिट

Limits depend on your plan (requests per minute). Every response includes X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers; exceeding the limit returns 429.

Webhooks

Subscribe to link.created, link.clicked, link.deleted and overlay.response events. Payloads are signed with HMAC-SHA256 so you can verify they came from us.

एंडपॉइंट

बेस URL

https://shortgo.io/api/v1

सभी अनुरोध और प्रतिक्रियाएँ JSON का उपयोग करती हैं। त्रुटियाँ सार्थक HTTP स्टेटस कोड के साथ "error" संदेश लौटाती हैं। सूची एंडपॉइंट page और per_page से पेजिनेटेड हैं।

अनुरोध और प्रतिक्रिया स्कीमा के साथ पूरा रेफ़रेंस आपके डैशबोर्ड में उपलब्ध है।

तरीकाएंडपॉइंटविवरण
GET/linksList links with search and filters
POST/linksशॉर्ट लिंक बनाएँ
GET/links/{id}लिंक प्राप्त करें
PATCH/links/{id}Update destination, alias or options
DELETE/links/{id}लिंक हटाएँ
GET/links/{id}/statsClicks, countries, devices and referrers
GET/qrQR कोड की सूची
POST/qrCreate a dynamic QR code
GET/domainsList your branded domains
GET/campaignsकैंपेन की सूची
GET/accountCurrent user and plan usage

webhook सिग्नेचर सत्यापित करें

हर डिलीवरी में X-ShortGo-Timestamp और X-ShortGo-Signature हेडर होते हैं। सिग्नेचर sha256= के बाद आपके webhook सीक्रेट से "timestamp.body" का हेक्स HMAC-SHA256 होता है। इसे कॉन्स्टेंट टाइम में तुलना करें और पुराने टाइमस्टैम्प अस्वीकार करें।

{
  "event": "link.clicked",
  "created_at": "2026-01-01T12:00:00Z",
  "data": {
    "link_id": 42,
    "country": "DE",
    "device": "mobile",
    "referrer": "instagram.com"
  }
}

हम इस साइट को चलाने के लिए आवश्यक कुकी का उपयोग करते हैं। और जानें