콘텐츠로 이동

라우트(관리 API)

Markdown으로 보기

라우트는 /product/:token처럼 딥 링크 경로예요. {route}를 받는 엔드포인트는 라우트의 ID, 접두사, 짧은 코드 또는 이름을 모두 받아요. 각 설정이 무엇을 하는지는 사용자 가이드를 참고하세요.

모든 경로는 /v1/manage/appspaces/{appspace} 아래에서도 동작해요. OAuth 토큰이 Appspace를 둘 이상 가리킬 때 이 경로가 필요해요. 로그인, 오류, 드라이 런, 페이징은 관리 API 개요를 참고하세요.

메서드경로설명권한
GET/v1/manage/routes라우트 목록 조회읽기
POST/v1/manage/routes라우트 만들기읽기 및 쓰기
GET/v1/manage/routes/{route}라우트 조회읽기
PATCH/v1/manage/routes/{route}라우트 변경읽기 및 쓰기
DELETE/v1/manage/routes/{route}라우트 삭제읽기 및 쓰기
PUT/v1/manage/routes/qr-styleQR 코드 스타일 설정읽기 및 쓰기
POST/v1/manage/routes/{route}/restore삭제한 라우트 복원읽기 및 쓰기
POST/v1/manage/routes/{route}/short-code새 짧은 코드 만들기읽기 및 쓰기
GET/v1/manage/routes

권한: 읽기.

Appspace의 라우트를 오래된 순서로 보여주며, cursor로 페이지를 나눠요.

쿼리 매개변수:

매개변수타입필수설명
searchstring아니요이름이나 접두사에 이 텍스트가 포함된 라우트만
limitinteger아니요반환할 개수. 1~100 (기본값 50)
cursorstring아니요이전 페이지의 next_cursor 값으로 다음 페이지 조회

응답 200: data에 결과 한 페이지가, next_cursor에 다음 페이지 값이 담겨요(페이징 참고). 각 항목:

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
POST/v1/manage/routes

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

대시보드의 규칙이 그대로 적용돼요. 요금제의 라우트 한도(403 plan_limit), 다른 라우트가 이미 응답하는 경로(409 conflict), 예약된 접두사, 커스텀 템플릿의 랜딩 페이지 규칙이 여기에 해당해요. 재시도해도 두 개가 만들어지지 않도록 Idempotency-Key를 보내세요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

요청 본문 (JSON):

필드타입필수설명
namestring예라우트 이름. 팀에서 보는 이름이며, 예: “Product pages”
prefixstring아니요라우트가 응답하는 경로. 예: product(링크는 /product/42 형태) 또는 값이 가운데 있을 때 product/:token/reviews. 영문자, 숫자, 하이픈을 쓰며 최대 3개 부분. static 라우트는 생략할 수 있고, 이 경우 짧은 코드가 경로가 됨
descriptionstring or null아니요라우트 용도를 팀에 남기는 메모. 방문자에게는 보이지 않음
typedynamic, static아니요dynamic(기본값): 링크에 /product/42처럼 값이 담기고, 앱이 그 값을 받음. static: /spring-sale처럼 값 없이 고정된 링크 하나
templatestandard, generic, custom, none아니요앱이 없는 사람에게 보이는 화면. standard(generic이라고도 씀): 앱 아이콘과 스토어 버튼이 있는 Tolinku 페이지. custom: 직접 만든 랜딩 페이지(landing_page_id 설정). none: 페이지 없이 앱, 스토어, 웹 대체 주소로 바로 이동. 새 dynamic 라우트의 기본값은 standard, 새 static 라우트는 none
landing_page_idstring or null아니요커스텀 템플릿에서 보여 줄 랜딩 페이지. 이 Appspace의 랜딩 페이지 중 하나여야 함
web_fallback_urlstring or null아니요데스크톱 방문자(none 템플릿이고 스토어 링크가 없을 때는 앱이 없는 휴대폰 사용자도)가 이동하는 주소. {token}을 포함할 수 있으며, 링크 값으로 바뀜. 비우면 Appspace의 웹 대체 주소
root_urlstring or null아니요dynamic 라우트만: 값 없이 열었을 때(/product만 있을 때) 이동할 주소. 비우면 {token}을 뺀 웹 대체 주소
data_endpointstring or null아니요앱이 링크 데이터를 가져올 주소(데이터 엔드포인트). 링크와 함께 앱에 전달됨
social_titlestring or null아니요채팅이나 게시물에 링크를 붙여넣을 때 보이는 제목(og:title)
social_descriptionstring or null아니요링크 미리보기의 설명(og:description)
social_imagestring or null아니요링크 미리보기 이미지 주소(og:image)
social_from_fallbackboolean아니요대신 웹 대체 페이지에서 링크 미리보기를 가져옴
universal_linksboolean아니요iPhone이 이 라우트에서 앱을 바로 여는지 여부(Universal Links). 기본값 true. false이면 iOS가 먼저 Tolinku로 보냄
forward_query_paramsboolean아니요링크의 쿼리 매개변수(?utm_source=…)를 앱과 웹 대체 주소로 넘김
prefer_web_on_mobileboolean아니요none 템플릿에서: 앱이 없는 휴대폰을 스토어 대신 웹 대체 주소로 보냄
return_to_fallbackboolean아니요none 템플릿과 웹 대체 주소를 쓸 때: 스토어 다음에 웹 대체 주소로 이동. 기본값 true
expires_atstring or null아니요라우트가 작동을 멈추는 시점(ISO 8601, 예: 2026-12-31T23:59:00Z). 새로 만들 때 과거 시각이면 만료 없음. 변경할 때는 현재 만료 값을 그대로 보내면 지난 시각이어도 유지됨. 비우면 만료 없음
max_clicksinteger or null아니요이 클릭 수 이후 작동 중지. 비우면 제한 없음
expired_redirect_urlstring or null아니요라우트가 만료되거나 클릭 제한에 도달한 뒤 이동할 주소. 비우면 만료 페이지

응답 201: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
GET/v1/manage/routes/{route}

권한: 읽기.

라우트 하나의 전체 정보: 목적지, Universal Links, 쿼리 전달, 만료와 클릭 제한, 링크 미리보기.

경로 매개변수:

매개변수설명
route라우트. ID, 접두사(product), 짧은 코드 또는 이름. 슬래시가 있는 접두사는 URL 인코딩

응답 200: data에 결과가 담겨요.

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
PATCH/v1/manage/routes/{route}

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

보낸 필드만 바뀌어요. expected_updated_at(읽은 updated_at 값)을 보내면, 그 사이 바뀐 내용이 있을 때 덮어쓰지 않고 412로 거부돼요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

경로 매개변수:

매개변수설명
route라우트. ID, 접두사(product), 짧은 코드 또는 이름. 슬래시가 있는 접두사는 URL 인코딩

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

요청 본문 (JSON):

필드타입필수설명
namestring아니요새 이름
prefixstring아니요새 경로. 이전 경로로 이미 공유된 링크는 작동을 멈춤
descriptionstring or null아니요라우트 용도를 팀에 남기는 메모. 방문자에게는 보이지 않음
typedynamic, static아니요dynamic(기본값): 링크에 /product/42처럼 값이 담기고, 앱이 그 값을 받음. static: /spring-sale처럼 값 없이 고정된 링크 하나
templatestandard, generic, custom, none아니요앱이 없는 사람에게 보이는 화면. standard(generic이라고도 씀): 앱 아이콘과 스토어 버튼이 있는 Tolinku 페이지. custom: 직접 만든 랜딩 페이지(landing_page_id 설정). none: 페이지 없이 앱, 스토어, 웹 대체 주소로 바로 이동. 새 dynamic 라우트의 기본값은 standard, 새 static 라우트는 none
landing_page_idstring or null아니요커스텀 템플릿에서 보여 줄 랜딩 페이지. 이 Appspace의 랜딩 페이지 중 하나여야 함
web_fallback_urlstring or null아니요데스크톱 방문자(none 템플릿이고 스토어 링크가 없을 때는 앱이 없는 휴대폰 사용자도)가 이동하는 주소. {token}을 포함할 수 있으며, 링크 값으로 바뀜. 비우면 Appspace의 웹 대체 주소
root_urlstring or null아니요dynamic 라우트만: 값 없이 열었을 때(/product만 있을 때) 이동할 주소. 비우면 {token}을 뺀 웹 대체 주소
data_endpointstring or null아니요앱이 링크 데이터를 가져올 주소(데이터 엔드포인트). 링크와 함께 앱에 전달됨
social_titlestring or null아니요채팅이나 게시물에 링크를 붙여넣을 때 보이는 제목(og:title)
social_descriptionstring or null아니요링크 미리보기의 설명(og:description)
social_imagestring or null아니요링크 미리보기 이미지 주소(og:image)
social_from_fallbackboolean아니요대신 웹 대체 페이지에서 링크 미리보기를 가져옴
universal_linksboolean아니요iPhone이 이 라우트에서 앱을 바로 여는지 여부(Universal Links). 기본값 true. false이면 iOS가 먼저 Tolinku로 보냄
forward_query_paramsboolean아니요링크의 쿼리 매개변수(?utm_source=…)를 앱과 웹 대체 주소로 넘김
prefer_web_on_mobileboolean아니요none 템플릿에서: 앱이 없는 휴대폰을 스토어 대신 웹 대체 주소로 보냄
return_to_fallbackboolean아니요none 템플릿과 웹 대체 주소를 쓸 때: 스토어 다음에 웹 대체 주소로 이동. 기본값 true
expires_atstring or null아니요라우트가 작동을 멈추는 시점(ISO 8601, 예: 2026-12-31T23:59:00Z). 새로 만들 때 과거 시각이면 만료 없음. 변경할 때는 현재 만료 값을 그대로 보내면 지난 시각이어도 유지됨. 비우면 만료 없음
max_clicksinteger or null아니요이 클릭 수 이후 작동 중지. 비우면 제한 없음
expired_redirect_urlstring or null아니요라우트가 만료되거나 클릭 제한에 도달한 뒤 이동할 주소. 비우면 만료 페이지
expected_updated_atstring아니요읽은 updated_at 값. 그 사이 변경됐다면 저장되지 않고 412 precondition_failed가 반환되니, 다시 읽고 재시도하세요

응답 200: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
DELETE/v1/manage/routes/{route}

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

링크는 즉시 작동을 멈춰요. 라우트(A/B 테스트 포함)는 휴지통으로 이동하며 30일 안에 복원할 수 있어요. install 라우트는 삭제할 수 없어요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

경로 매개변수:

매개변수설명
route라우트. ID, 접두사(product), 짧은 코드 또는 이름. 슬래시가 있는 접두사는 URL 인코딩

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

응답 200: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
deletedtrue
idstring
namestring
trash_idstring휴지통 항목. POST /trash/{id}/restore 또는 POST /routes/{route}/restore로 복원 가능
restorable_untilstring
PUT/v1/manage/routes/qr-style

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

Appspace의 QR 코드 스타일이며, 모든 라우트의 QR 코드에 쓰여요. 바뀌는 항목만 보내세요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

요청 본문 (JSON):

필드타입필수설명
dotssquare, rounded, dots, classy, classy-rounded, extra-rounded아니요점의 모양
cornerssquare, extra-rounded, dot아니요세 모서리 사각형의 모양
corner_dotssquare, dot아니요각 모서리 사각형 안 점의 모양
dot_colorstring아니요점의 색, #RRGGBB
corner_colorstring아니요모서리의 색, #RRGGBB(corners_match_dots가 true인 동안 무시됨)
backgroundstring아니요배경 색, #RRGGBB
corners_match_dotsboolean아니요모서리에 점과 같은 색 적용
logoapp, logo, media, none아니요가운데에 들어갈 항목: app(앱 아이콘), logo(Appspace의 로고), media(Media의 이미지, logo_media_id 설정), none
logo_media_idstring or null아니요logo가 “media”일 때 쓸 Media 항목. 이 Appspace의 Media에 있어야 함
logo_sizes, m, l아니요s, m 또는 l
logo_shapesquare, rounded, circle아니요로고 모서리: 사각형, 둥근 사각형 또는 원

응답 200: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
dotssquare, rounded, dots, classy, classy-rounded, extra-rounded점의 모양
cornerssquare, extra-rounded, dot세 모서리 사각형의 모양
corner_dotssquare, dot각 모서리 사각형 안 점의 모양
dot_colorstring점의 색, #RRGGBB
corner_colorstring모서리의 색, #RRGGBB(corners_match_dots가 true인 동안 무시됨)
backgroundstring배경 색, #RRGGBB
corners_match_dotsboolean모서리에 점과 같은 색 적용
logoapp, logo, media, none가운데에 들어갈 항목: app(앱 아이콘), logo(Appspace의 로고), media(Media의 이미지, logo_media_id 설정), none
logo_media_idstring or nulllogo가 “media”일 때 쓸 Media 항목. 이 Appspace의 Media에 있어야 함
logo_sizes, m, ls, m 또는 l
logo_shapesquare, rounded, circle로고 모서리: 사각형, 둥근 사각형 또는 원
POST/v1/manage/routes/{route}/restore

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

최근 30일 안에 삭제한 라우트를 같은 ID, 짧은 코드, A/B 테스트와 함께 복원해요. {route}에는 이전 ID, 접두사, 짧은 코드, 이름 또는 휴지통 항목 ID를 넣어요. 다른 라우트가 그 경로에 응답하거나 짧은 코드를 쓰고 있으면 409 conflict로 거부되고, 요금제의 라우트 한도에 도달했을 때도 409로 거부돼요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

경로 매개변수:

매개변수설명
route삭제된 라우트. 이전 ID, 접두사, 짧은 코드, 이름 또는 휴지통 항목 ID

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

응답 200: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
POST/v1/manage/routes/{route}/short-code

권한: 읽기 및 쓰기. 변경 작업: dry_run과 Idempotency-Key를 받고, Standard 요금제 이상이 필요해요.

라우트에 새 짧은 링크가 생기고, 이전 링크는 이미 인쇄된 QR 코드까지 포함해 즉시 작동을 멈춰요. dry_run을 쓰면 아무것도 바뀌지 않고, 응답은 { dry_run: true, before, after, changes, warnings } 형태예요.

경로 매개변수:

매개변수설명
route라우트. ID, 접두사(product), 짧은 코드 또는 이름. 슬래시가 있는 접두사는 URL 인코딩

쿼리 매개변수:

매개변수타입필수설명
dry_runtrue, false아니요true: 변경하지 않고 확인과 미리보기만(요청 본문의 dry_run과 같음)

응답 200: data에 결과가, warnings와 함께 담겨요. dry_run을 쓰면 대신 미리보기를 반환해요.

필드타입설명
idstring라우트의 ID. {route}를 받는 엔드포인트에서는 접두사, 짧은 코드, 이름도 사용 가능
namestring
prefixstring라우트가 응답하는 경로. {token}은 링크 값이 들어가는 자리
linkstring기본 도메인의 전체 링크. 값이 들어갈 자리에 :token이 있음
short_linkstring or null
typestatic, dynamic
templatestring앱이 없는 사람에게 보이는 내용(텍스트)
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstring변경 시 expected_updated_at으로 전달(그 사이 바뀐 내용을 덮어쓰지 않게 함)
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
이 페이지가 도움이 됐나요?