API Reference
Create Short URL
This API allows you to create a short link by providing the original URL.
Header Parameters
Authorization*string
API key
Request Body
application/json
request
custom_slug?string
custom_slug is the custom slug
Length
length <= 255domain*string
domain is the domain name
Default
"s.ee"Length
length <= 255expiration_redirect_url?string
expiration_redirect_url is the URL to redirect to when the short URL expires
Length
length <= 255expire_at?integer
expire_at is the expiration timestamp for the short URL
password?string
password is the password for the short URL
Length
3 <= length <= 32tag_ids?array<integer>
tag_ids are the tag IDs to associate with the short URL
target_url*string
target_url is the original URL
Length
length <= 255title?string
title is the title of the short URL
Length
length <= 255Response 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"
}