Create Short URL
Creates a short URL for a destination link. Optional settings include a custom slug, password, expiration time, and tags.
Short URL configuration
application/json- body
custom_slug?stringYour preferred custom slug (e.g., "my-link"). If not provided, a random slug will be generated.
length <= 255domain*stringThe domain to use for your short URL (e.g., "s.ee")
length <= 255"s.ee"expiration_redirect_url?stringURL to redirect visitors to after this short link expires
length <= 2000expire_at?integerUnix timestamp when this short link should expire (e.g., 1735689600)
password?stringOptional password to protect this short link (3-32 characters)
3 <= length <= 32tag_ids?array<integer>Array of tag IDs to organize this link (get available tags via /api/v1/tags)
target_url*stringThe destination URL you want to shorten (required)
length <= 2000title?stringA descriptive title for this short link (for your reference)
length <= 255OK
application/json- response
code?integerResponse status code (200 indicates success)
data?Short URL creation response
message?stringHuman-readable status message
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"}SM.MS Compatibility
Migrate from SM.MS to S.EE with minimal code changes
Create Short URL (Simple Mode) GET
Creates a short URL using query parameters instead of a JSON body. Returns plain text by default; set json=true for a JSON response. This endpoint can be used in bookmarklets and other integrations that send query parameters.