S.EE Docs
API Reference

Create Short URL

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

POST
/api/v1/shorten

Header Parameters

Authorization*string

API key

Request Body

application/json

request

custom_slug?string

custom_slug is the custom slug

Lengthlength <= 255
domain*string

domain is the domain name

Default"s.ee"
Lengthlength <= 255
expiration_redirect_url?string

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

Lengthlength <= 255
expire_at?integer

expire_at is the expiration timestamp for the short URL

password?string

password is the password for the short URL

Length3 <= length <= 32
tag_ids?array<integer>

tag_ids are the tag IDs to associate with the short URL

target_url*string

target_url is the original URL

Lengthlength <= 255
title?string

title is the title of the short URL

Lengthlength <= 255

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"
}