API リファレンス
短縮URLを作成
リンク先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"
}