BizKitHub
DokumentacePrůzkumník APILink Shorten/api/v1/link-shorten/create-link
postLink ShortenVeřejné 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

Parametry

JSON tělo

Tělo požadavku

application/json
urlstringPovinné

The original URL to shorten.

Příkladhttps://example.com/very/long/path
customAliasstringVolitelné

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

Příkladmy-link
expiresAtstringVolitelné

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

Příklad2026-12-31T23:59:59Z

Schéma odpovědi

1 zdokumentovaný stavový kód

200ÚspěchShortened link result.
originalUrlstringPovinné

The original URL that was shortened.

shortUrlstringPovinné

The generated short URL.

Příkladhttps://xhp.cz/my-link

Ukázka odpovědi

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

Ukázka požadavku

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

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč