Construisez à partir de vos liens
Créez des liens de marque, générez des QR codes et récupérez des statistiques depuis vos propres applications. Endpoints REST prévisibles, JSON partout et webhooks pour les événements en temps réel.
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);
Authentification
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.
Limites de débit
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.
Endpoints
URL de base
Toutes les requêtes et réponses utilisent JSON. Les erreurs renvoient un message "error" avec un code de statut HTTP pertinent. Les endpoints de liste sont paginés avec page et per_page.
La référence complète avec les schémas de requête et de réponse est disponible dans votre tableau de bord.
| Méthode | Endpoint | Description |
|---|---|---|
| GET | /links | List links with search and filters |
| POST | /links | Créer un lien court |
| GET | /links/{id} | Récupérer un lien |
| PATCH | /links/{id} | Update destination, alias or options |
| DELETE | /links/{id} | Supprimer un lien |
| GET | /links/{id}/stats | Clicks, countries, devices and referrers |
| GET | /qr | Lister les QR codes |
| POST | /qr | Create a dynamic QR code |
| GET | /domains | List your branded domains |
| GET | /campaigns | Lister les campagnes |
| GET | /account | Current user and plan usage |
Vérifier les signatures des webhooks
Chaque envoi inclut les en-têtes X-ShortGo-Timestamp et X-ShortGo-Signature. La signature est sha256= suivi du HMAC-SHA256 hexadécimal de « timestamp.body » avec votre secret de webhook. Comparez-la en temps constant et rejetez les anciens horodatages.
{
"event": "link.clicked",
"created_at": "2026-01-01T12:00:00Z",
"data": {
"link_id": 42,
"country": "DE",
"device": "mobile",
"referrer": "instagram.com"
}
}