/api/v1/link-shorten/create-link
Creates a shortened URL. Optionally accepts a custom alias and expiration date. Returns both the original and the shortened URL.
linkShortenpostApiV1Link-shortenCreate-link
Parameters
3 body
Body · 3
urlstringRequiredThe original URL to shorten.
customAliasstringCustom short URL alias. If omitted, a random alias is generated.
expiresAtstringExpiration date in ISO 8601 format. Link becomes invalid after this date.
Request
POST /api/v1/link-shorten/create-link
curl -X POST "https://api.bizkithub.com/api/v1/link-shorten/create-link" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"url": "https://example.com/very/long/path",
"customAlias": "my-link",
"expiresAt": "2026-12-31T23:59:59Z"
}'Response
Shortened link result.
{
"originalUrl": "example_originalUrl",
"shortUrl": "https://xhp.cz/my-link"
}All response codes
1 status code documented
Need an API key?
All BizKitHub API endpoints require authentication via API key.