BizKitHub
DokumentáciaPrieskumník APILink Shorten/api/v1/link-shorten/create-link
postLink ShortenVerejné 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

Parametre

JSON telo

Telo požiadavky

application/json
urlstringPovinné

The original URL to shorten.

Príkladhttps://example.com/very/long/path
customAliasstringVoliteľné

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

Príkladmy-link
expiresAtstringVoliteľné

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

Príklad2026-12-31T23:59:59Z

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechShortened link result.
originalUrlstringPovinné

The original URL that was shortened.

shortUrlstringPovinné

The generated short URL.

Príkladhttps://xhp.cz/my-link

Ukážka odpovede

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

Ukážka požiadavky

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

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč