s.ee

Create Short URL

This API allows you to create a short link by providing the original URL.

POST
/api/v1/shorten

Request Body

application/jsonRequired

request

custom_slugstring

custom_slug is the custom slug

Maximum length: 255
domainRequiredstring

domain is the domain name

Maximum length: 255
expiration_redirect_urlstring

expiration_redirect_url is the URL to redirect to when the short URL expires

Maximum length: 65535
expire_atinteger

expire_at is the expiration timestamp for the short URL

passwordstring

password is the password for the short URL

Minimum length: 3Maximum length: 32
tag_idsarray<integer>

tag_ids are the tag IDs to associate with the short URL

target_urlRequiredstring

target_url is the original URL

Maximum length: 65535
titlestring

title is the title of the short URL

Maximum length: 255

Header Parameters

AuthorizationRequiredstring

API key

curl -X POST "https://s.ee/api/v1/shorten" \
  -H "Authorization: <string>" \
  -H "Content-Type: application/json" \
  -d '{
    "custom_slug": "string",
    "domain": "string",
    "expiration_redirect_url": "string",
    "expire_at": 0,
    "password": "string",
    "tag_ids": [
      0
    ],
    "target_url": "string",
    "title": "string"
  }'

OK

{
  "code": 0,
  "data": {
    "custom_slug": "string",
    "short_url": "string",
    "slug": "string"
  },
  "message": "string"
}