BizKitHub
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

JSON body

Request body

application/json
urlstringRequired

The original URL to shorten.

Examplehttps://example.com/very/long/path
customAliasstringOptional

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

Examplemy-link
expiresAtstringOptional

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

Example2026-12-31T23:59:59Z

Response schema

1 status code documented

200SuccessShortened link result.
originalUrlstringRequired

The original URL that was shortened.

shortUrlstringRequired

The generated short URL.

Examplehttps://xhp.cz/my-link

Response example

application/json
{
  "originalUrl": "example_originalUrl",
  "shortUrl": "https://xhp.cz/my-link"
}

Request example

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

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key