Construye sobre tus enlaces
Crea enlaces con tu marca, genera códigos QR y extrae analíticas desde tus propias apps. Endpoints REST predecibles, JSON en todas partes y webhooks para eventos en tiempo real.
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);
Autenticación
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.
Límites de solicitudes
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 base
Todas las solicitudes y respuestas usan JSON. Los errores devuelven un mensaje "error" con un código de estado HTTP significativo. Los endpoints de listado están paginados con page y per_page.
La referencia completa con los esquemas de solicitud y respuesta está disponible en tu panel.
| Método | Endpoint | Descripción |
|---|---|---|
| GET | /links | List links with search and filters |
| POST | /links | Crear un enlace corto |
| GET | /links/{id} | Obtener un enlace |
| PATCH | /links/{id} | Update destination, alias or options |
| DELETE | /links/{id} | Eliminar un enlace |
| GET | /links/{id}/stats | Clicks, countries, devices and referrers |
| GET | /qr | Listar códigos QR |
| POST | /qr | Create a dynamic QR code |
| GET | /domains | List your branded domains |
| GET | /campaigns | Listar campañas |
| GET | /account | Current user and plan usage |
Verificar las firmas de los webhooks
Cada entrega incluye las cabeceras X-ShortGo-Timestamp y X-ShortGo-Signature. La firma es sha256= seguido del HMAC-SHA256 hexadecimal de "timestamp.body" con el secreto de tu webhook. Compárala en tiempo constante y rechaza las marcas de tiempo antiguas.
{
"event": "link.clicked",
"created_at": "2026-01-01T12:00:00Z",
"data": {
"link_id": 42,
"country": "DE",
"device": "mobile",
"referrer": "instagram.com"
}
}