BizKitHub
DokumentationAPI-ExplorerLink Shorten/api/v1/link-shorten/create-link
postLink ShortenÖffentliche 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

Parameter

JSON-Body

Request-Body

application/json
urlstringPflicht

The original URL to shorten.

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

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

Beispielmy-link
expiresAtstringOptional

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

Beispiel2026-12-31T23:59:59Z

Antwortschema

1 dokumentierter Statuscode

200ErfolgShortened link result.
originalUrlstringPflicht

The original URL that was shortened.

shortUrlstringPflicht

The generated short URL.

Beispielhttps://xhp.cz/my-link

Antwortbeispiel

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

Anfragebeispiel

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

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten