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
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",
    "target_url": "string",
    "title": "string"
  }'

OK

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