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.

webhook

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(16진수) 값이 붙은 형태입니다. 일정한 시간으로 비교하고 오래된 타임스탬프는 거부하세요.

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

이 사이트를 운영하는 데 필요한 필수 쿠키를 사용합니다. 자세히 알아보기