서비스 안내
기업회원 신청 서류 안내
신청자 구분에 따라 재직증명서 또는 위임장을 함께 제출해 주세요.
신청자 구분에 따라 재직증명서 또는 위임장을 함께 제출해 주세요.
A PRACTICAL GUIDE
샌드고 짧은 URL 로 긴 링크를 줄이고, 누가 언제 눌렀는지 통계를 확인하는 방법. 문자 바이트 절약과 반응 측정.
POST /api/v2/short-urls문자 본문에 긴 URL 을 그대로 넣으면 두 가지 손해를 봅니다. 바이트를 잡아먹고, 누가 눌렀는지 알 수 없습니다.
[이벤트] 가을 특가! https://shop.example.com/promotions/autumn-2026?utm_source=sms&utm_campaign=autumn
→ 90바이트를 훌쩍 넘겨 LMS 로 승격되고, 반응은 측정되지 않는다.
[이벤트] 가을 특가! https://sendgo.io/s/k7Rm2xQ
→ SMS 안에 들어가고, 클릭이 집계된다.
POST /api/v2/short-urls
| 파라미터 | 필수 | 설명 |
|---|---|---|
targetUrl |
✅ | 원본 URL. http/https 만 허용, 최대 2,048자 |
title |
관리 화면에서 구분할 이름 | |
expiresAt |
이 시각 이후 410 Gone. Y-m-d H:i:s |
|
forceNew |
true 면 같은 URL 이어도 새 코드 발급 |
const created = await sendgo.shortUrl.create({
targetUrl: 'https://shop.example.com/promotions/autumn-2026',
title: '가을 세일 랜딩',
expiresAt: '2026-09-30 23:59:59',
});
const { code, shortUrl } = created.data;
await sendgo.sms.sendSms({
content: `[이벤트] 가을 특가! ${shortUrl}`,
contacts: [{ contact: '01012345678' }],
});
created = client.short_url.create(
target_url="https://shop.example.com/promotions/autumn-2026",
title="가을 세일 랜딩",
)
link = created["data"]["shortUrl"]
client.sms.send_sms(
content=f"[이벤트] 가을 특가! {link}",
contacts=[{"contact": "01012345678"}],
)
<?php
$short = $sendgo->shortUrl->create([
'targetUrl' => 'https://shop.example.com/promotions/autumn-2026',
'title' => '가을 세일 랜딩',
]);
$link = $short['data']['shortUrl'];
$sendgo->sms->sendSms([
'content' => "[이벤트] 가을 특가! {$link}",
'contacts' => [['contact' => '01012345678']],
]);
const stats = await sendgo.shortUrl.stats(code, { from: '2026-09-01' });
await sendgo.shortUrl.list({ count: 10 }); // 목록
await sendgo.shortUrl.show(code); // 상세
await sendgo.shortUrl.deactivate(code); // 리다이렉트 중지 (통계는 남는다)
stats = client.short_url.stats(code, from_="2026-09-01")
client.short_url.list(count=10)
client.short_url.show(code)
<?php
$stats = $sendgo->shortUrl->stats($code, ['from' => '2026-09-01']);
$sendgo->shortUrl->list(['count' => 10]);
$sendgo->shortUrl->show($code);
$sendgo->shortUrl->deactivate($code);
같은 랜딩 페이지를 여러 캠페인에서 쓴다면 forceNew 로 코드를 따로 발급받으세요. 그러지 않으면 통계가 한 코드에 합쳐져 어떤 캠페인이 효과가 있었는지 알 수 없습니다.
const augustLink = await sendgo.shortUrl.create({
targetUrl: 'https://shop.example.com/sale',
title: '8월 세일 - 알림톡',
forceNew: true,
});
const septemberLink = await sendgo.shortUrl.create({
targetUrl: 'https://shop.example.com/sale', // 같은 목적지
title: '9월 세일 - 문자',
forceNew: true, // 다른 코드
});
#{var3} 자리에 짧은주소를 넣으세요.카카오 알림톡 템플릿을 등록하고 심사를 통과하는 방법. 정보성/광고성 구분, 변수 사용법, 자주 반려되는 문안과 고치는 방법.
카카오 채널 등록, 알림톡 템플릿 검수 요청, 발신번호 심사 접수, 수신거부 동기화까지 sendgo.io에 들어오지 않고 API로 끝내는 방법. 웹훅으로 심사 결과를 받는 법까지.
알림톡·문자 발송 실패 시 나오는 오류 코드 전체 목록과, 재시도해도 되는 실패와 그렇지 않은 실패를 구분하는 방법.