API 레퍼런스
단축 URL 생성
대상 링크에 대한 새 단축 URL을 생성합니다. 사용자 지정 슬러그, 비밀번호 보호, 만료 시간, 분류용 태그를 선택적으로 설정할 수 있습니다.
Header Parameters
Authorization*string
Your API key
Request Body
application/json
Short URL configuration
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://s.ee/api/v1/shorten" \ -H "Authorization: string" \ -H "Content-Type: application/json" \ -d '{ "domain": "s.ee", "target_url": "string" }'{
"code": 0,
"data": {
"custom_slug": "string",
"short_url": "string",
"slug": "string"
},
"message": "string"
}