Tạo URL rút gọn
Tạo URL rút gọn mới cho liên kết đích. Bạn có thể tùy chọn đặt slug tùy chỉnh, bảo vệ bằng mật khẩu, thời gian hết hạn và thẻ để phân loại.
Header Parameters
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"
}