DocsAPI ReferenceLink Shorten/api/v1/link-shorten/create-link
postLink ShortenPublic API v1

/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

3 total
Body · 3
urlstringRequired

The original URL to shorten.

customAliasstring

Custom short URL alias. If omitted, a random alias is generated.

expiresAtstring

Expiration date in ISO 8601 format. Link becomes invalid after this date.

Request

POST /api/v1/link-shorten/create-link

post
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.

Get API Key