create_short_url
Create custom short URLs from long links using specified domains, titles, and optional codes with expiration settings for efficient link management.
Instructions
创建一个新的短网址。支持自定义域名、短代码、标题和描述信息。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
custom_code | No | 自定义短代码(可选,如果不提供将自动生成) | |
description | No | 短网址的描述信息(可选) | |
domain | Yes | 短网址使用的域名(必填) | |
expire_at | No | 过期时间(可选,ISO 8601格式,不填表示永不过期) | |
original_url | Yes | 原始URL地址(要缩短的长链接) | |
title | Yes | 短网址的标题(必填) |
Input Schema (JSON Schema)
{
"properties": {
"custom_code": {
"description": "自定义短代码(可选,如果不提供将自动生成)",
"examples": [
"abc123",
"mylink",
"promo2024"
],
"pattern": "^[a-zA-Z0-9]{3,50}$",
"type": "string"
},
"description": {
"description": "短网址的描述信息(可选)",
"examples": [
"这是我们的新产品页面",
"2024年春节促销活动"
],
"maxLength": 500,
"type": "string"
},
"domain": {
"description": "短网址使用的域名(必填)",
"examples": [
"dwz.test",
"link.example.com"
],
"pattern": "^[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
"type": "string"
},
"expire_at": {
"description": "过期时间(可选,ISO 8601格式,不填表示永不过期)",
"examples": [
"2024-12-31T23:59:59Z",
"2025-01-01T00:00:00+08:00"
],
"format": "date-time",
"type": "string"
},
"original_url": {
"description": "原始URL地址(要缩短的长链接)",
"examples": [
"https://www.example.com/very/long/path",
"https://github.com/user/repo"
],
"format": "uri",
"type": "string"
},
"title": {
"description": "短网址的标题(必填)",
"examples": [
"产品官网",
"活动页面",
"技术文档"
],
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"original_url",
"domain",
"title"
],
"type": "object"
}